Bullet screen display method, device, computing device and computer storage medium
By calculating the number and distribution of barrages, determining the peak moments and processing them, we solved the problems of barrage screen swiping and pollution, improved the viewing experience of barrages, and better integrated barrages with video content.
Patent Information
- Application Number
- CN202210696412.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2042-06-20
AI Technical Summary
In the existing technology, barrage screen flooding and irregular barrage appear at inappropriate times, affecting the user experience. Existing solutions such as raising the sending threshold can only partially suppress the problem but cannot fundamentally solve it.
By calculating the number and distribution of target barrages or special barrages, the peak time is determined, and the barrage list is processed according to the peak time to control the display time and number of barrages, giving priority to displaying barrages at peak times and deleting barrages at non-peak times.
It effectively controls the amount and timing of barrage exposure, solves the problems of barrage screen flooding and pollution, improves the viewing experience of barrage, and better integrates barrage with video content.
Smart Images

Figure CN117290527B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a bullet screen display method, device, computing equipment and computer storage medium. Background Art
[0002] With the continuous development of multimedia technology and users' demand for entertainment in media resources, many current multimedia platforms are equipped with barrage functions. When watching media resources, users can express their opinions by posting barrages, communicate with other users, and increase the interactivity of multimedia resources.
[0003] Users can post unusual or specific comments about media resources. However, these comments can negatively impact the perception of the media resource. For example, users post comments at inappropriate times or continuously spam the content from beginning to end. Summary of the Invention
[0004] The purpose of this application is to provide a barrage display method, device, computing equipment and computer storage medium to solve the problem of certain barrage screen flooding in the prior art, which affects the user's perception of the barrage.
[0005] According to one aspect of an embodiment of the present application, a bullet screen display method is provided, including:
[0006] According to the media resource playback request, obtain the bullet comment list corresponding to the media resource;
[0007] Determine the target number of barrages of the media resource in each unit time according to the release time of the target barrage in the barrage list;
[0008] Calculate the peak time of the target barrage based on the number of target barrages in each unit time;
[0009] Process the target bullet comments in the bullet comment list according to the peak time;
[0010] When the media resource is played, the processed bullet comment list is returned to display the bullet comments in the processed bullet comment list during the media resource playback process.
[0011] According to another aspect of an embodiment of the present application, a bullet screen display device is provided, comprising:
[0012] An acquisition module, adapted to acquire a bullet screen list corresponding to a media resource according to a media resource playback request;
[0013] A determination module, adapted to determine the target number of barrages of the media resource in each unit time according to the release time of the target barrage in the barrage list;
[0014] The first calculation module is adapted to calculate the peak time of the target barrage according to the number of target barrages in each unit time;
[0015] The first processing module is adapted to process target bullet comments in the bullet comment list according to the peak time;
[0016] The display module is adapted to return the processed bullet comment list when the media resource is played, so as to display the bullet comments in the processed bullet comment list during the media resource playback process.
[0017] According to another aspect of an embodiment of the present application, a computing device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0018] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned bullet screen display method.
[0019] According to another aspect of the embodiments of the present application, a computer storage medium is provided, in which at least one executable instruction is stored. The executable instruction enables a processor to perform operations corresponding to the above-mentioned barrage display method.
[0020] According to the solution provided in the embodiment of the present application, the peak time of the target barrage is calculated according to the number of target barrages, and the target barrages in the barrage list are processed according to the peak time, thereby effectively controlling the number and time points of the target barrages exposed, solving the problem of screen swiping and pollution of the target barrage from the source, and improving the viewing experience of the barrage.
[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0023] Figure 1 A schematic diagram of a process for displaying a bullet screen according to an embodiment of the present application is shown;
[0024] Figure 2A A schematic diagram showing a flow chart of a bullet screen display method according to another embodiment of the present application is shown;
[0025] Figure 2B is a schematic diagram of a specific implementation method of step S209;
[0026] Figure 2C This is a schematic diagram of the process of determining the display time period of the special-shaped barrage;
[0027] Figure 3 A schematic structural diagram of a bullet screen display device according to an embodiment of the present application is shown;
[0028] Figure 4 A schematic structural diagram of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0029] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0030] Figure 1 A flow chart of a bullet screen display method according to an embodiment of the present application is shown.
[0031] like Figure 1 As shown, the method includes the following steps:
[0032] Step S101: Obtain a bullet comment list corresponding to a media resource according to a media resource playback request.
[0033] Specifically, users can view media resources through the media application installed on the terminal device. The media application provides a play button. When any user wants to watch the media resource, he can trigger the play button in the media resource application to play the media resource. Therefore, the user's operation of triggering the play button is regarded as sending a media resource playback request. According to the media resource playback request, the barrage list corresponding to the media resource is obtained, where the barrage list is a collection of all barrages that have been published for the media resource before the current user plays the media resource. The media resource is a file recorded in advance, for example, it can be a video.
[0034] Step S102 , determining the target number of barrages of the media resource in each unit time according to the release time of the target barrage in the barrage list.
[0035] Targeted barrage is a specific barrage published for media resources. For example, the target barrage can be a special-shaped barrage or a target text barrage. Among them, the special-shaped barrage is a non-pure text barrage, for example, the special-shaped barrage is a picture barrage, an expression barrage, an avatar barrage, etc.
[0036] When any user is watching a media resource, they can post a target barrage based on their viewing preferences. However, it is easy for the target barrage to flood the screen. To prevent the target barrage from flooding the screen and affecting other users' viewing experience of the media resource, the target barrage needs to be processed. Specifically, the target barrage processing can be performed through steps S102 to S104:
[0037] Specifically, the release time of each barrage is recorded in the barrage list, where the release time is defined by the duration of the media resource. For example, if the total duration of the media resource is 5 minutes, the release time can be when the media resource is played for 1 minute, or 1 minute 15 seconds, or 2 minutes, etc., which is not specifically limited here. Therefore, the target number of barrages of the media resource in each unit time can be determined based on the release time of the target barrage in the barrage list. For example, the release time of the target barrage can be matched with each unit time of the media resource to group the target barrages in the barrage list, thereby obtaining the target number of barrages per unit time, where the unit time can be in seconds, and the target number of barrages per unit time refers to the number of target barrages released for the media resource in one unit time.
[0038] Step S103 , calculating the peak time of the target barrage according to the number of target barrages in each unit time.
[0039] Specifically, the peak time calculation rule is as follows: the number of target barrages in the previous unit time is less than the number of target barrages in the current unit time, and the number of target barrages in the current unit time is greater than the number of target barrages in the next unit time, and the previous unit time, the current unit time, and the next unit time are adjacent. Therefore, according to this calculation rule, the number of target barrages in each unit time can be compared to calculate the peak time of all target barrages in the media resource.
[0040] Step S104: Process the target bullet comments in the bullet comment list according to the peak time.
[0041] After determining the peak moment of the target barrage, the target barrage in the barrage list can be processed according to the peak moment. For example, the target barrage at the peak moment is displayed first, and other target barrages at non-peak moments in the barrage list are deleted; or, based on the peak moment, the target barrage display time period and the target barrage silent time period are determined, and the target barrage within the target barrage silent time period is deleted. There is no specific limitation on the processing method here.
[0042] Step S105 , when the media resource is played, the processed bullet comment list is returned to display the bullet comments in the processed bullet comment list during the media resource playback process.
[0043] When the media resource is played, the processed barrage list is returned. During the playback of the media resource, the barrage in the processed barrage list is combined with the release time of each barrage in the processed barrage list to display the barrage in the media resource, thereby effectively controlling the number and time points of exposure of the target barrage, solving the problem of screen swiping and pollution of the target barrage from the source, and improving the viewing experience of the barrage.
[0044] The solution provided by the present invention calculates the peak time of the target barrage according to the number of target barrages, and processes the target barrages in the barrage list according to the peak time, thereby effectively controlling the number and time points of exposure of the target barrages, solving the problem of screen swiping and pollution of the target barrage from the source, and improving the viewing experience of the barrage.
[0045] In order to better express the fun of barrage and better integrate barrage with video content, the display forms of barrage are becoming more and more diversified. For example, users can post special-shaped barrages. Currently, the more common special-shaped barrages include avatar barrages, expression barrages, picture barrages, etc.
[0046] However, in some cases, these unusual comments can negatively impact the viewing experience of a video. For example, users might send unusual comments at inappropriate times, or they might continuously spam the video from beginning to end. To address these issues, a common approach in existing technology is to raise the bar for users to post these comments, such as by increasing the user level limit.
[0047] In scenarios where alien barrages have a negative impact, users often send them out of curiosity and a desire to follow the crowd. Therefore, attempts to raise the threshold for users to send alien barrages can only curb the prevalence of the poor visual experience of alien barrages to a certain extent, but cannot fundamentally solve the problem. Secondly, raising the threshold for sending will also greatly reduce the experience of users who cannot send alien barrages. In order to better solve the above problems, Figure 2A In this embodiment, the target bullet screen is a special-shaped bullet screen and the media resource is a video. For example, the bullet screen display solution is described in detail:
[0048] Figure 2A FIG2 shows a flow chart of a bullet screen display method according to another embodiment of the present application. Figure 2A As shown, the method includes the following steps:
[0049] Step S201: Obtain the bullet comment list corresponding to the video according to the video playback request.
[0050] Specifically, users can view videos through a video application installed on a terminal device. The video application provides a play button. When any user wants to watch a video, he or she can trigger the play button in the video application to play the video. Therefore, the user's operation of triggering the play button is deemed to have sent a video playback request. According to the video playback request, the barrage list corresponding to the video is obtained, where the barrage list is a collection of all barrages that have been posted for the video before the current user plays the video.
[0051] Step S202: Count the total number of barrages and the total number of special-shaped barrages in the barrage list.
[0052] After obtaining the barrage list corresponding to the video, count the total number of all barrages in the barrage list and the total number of special-shaped barrages.
[0053] Step S203: Calculate the proportion of unusual barrages based on the total number of unusual barrages and the total number of barrages.
[0054] After obtaining the total number of barrages and the total number of special barrages, the proportion of special barrages is calculated based on the total number of special barrages and the total number of barrages. The proportion of special barrages is the percentage of special barrages in the total number of barrages. For example, the specific calculation method of the proportion of special barrages can be as follows: proportion of special barrages = total number of special barrages ÷ total number of barrages.
[0055] Step S204, determine whether the proportion of unusual barrages is greater than or equal to a first preset threshold. If so, execute step 205; if not, execute step S211.
[0056] Normally, when a video reaches its climax, many users may have the idea of posting unusual barrages, and the number of unusual barrages will be large. However, if the unusual barrages are flooding the screen, the number of unusual barrages will not be too large. Therefore, in order to identify whether there are unusual barrages refreshing, after calculating the proportion of unusual barrages according to step S203, the proportion of unusual barrages is compared with the first preset threshold to determine whether the proportion of unusual barrages is greater than or equal to the first preset threshold. Among them, the first preset threshold is a boundary value, which is used to measure whether there is a possibility of unusual barrages flooding the screen. If the proportion of unusual barrages is less than the first preset threshold, it indicates that the unusual barrages are flooding the screen; if the proportion of unusual barrages is greater than or equal to the first preset threshold, it indicates that the unusual barrages may not be flooding the screen, and the next step of processing can be carried out.
[0057] Step S205 , determining the number of special-shaped barrages in the video in each unit time according to the release time of the special-shaped barrages in the barrage list.
[0058] Specifically, the bullet list records the release time of each bullet, where the release time is defined by the length of the video. For example, if the total length of the video is 5 minutes, the release time can be when the video is played to 1 minute, or 1 minute 15 seconds, or 2 minutes, etc., which is not specifically limited here. Therefore, the number of special bullets in each unit time of the video can be determined based on the release time of the special bullets in the bullet list. For example, the release time of the special bullet can be matched with each unit time of the video to achieve grouping of the special bullets in the bullet list, thereby obtaining the number of special bullets per unit time, where the unit time can be in seconds. The number of special bullets per unit time refers to the number of special bullets released for the video within a unit time.
[0059] Step S206 , calculating the standard deviation of the distribution of the special-shaped barrages in the video according to the number of special-shaped barrages in each unit time.
[0060] After calculating the number of unusual barrages in each unit time, the standard deviation of the distribution of unusual barrages in the entire video can be calculated based on the number of unusual barrages in each unit time. The standard deviation of the distribution of unusual barrages reflects the distribution of unusual barrages posted for the video. The specific calculation process will not be described in detail here.
[0061] Step S207 , determining whether the standard deviation of the distribution of the irregular bullet comments is greater than or equal to a second preset threshold value, if so, executing step 208 ; if not, executing step S211 .
[0062] The standard deviation of the distribution of irregular barrages reflects the distribution of irregular barrages posted for the video. In order to determine whether there is a possibility that the irregular barrages posted for the video are flooding the screen, it is necessary to compare the standard deviation of the distribution of irregular barrages with the second preset threshold to determine whether the standard deviation of the distribution of irregular barrages is greater than or equal to the second preset threshold. The second preset threshold is a boundary value, which is used to measure whether there is a possibility that the irregular barrages are flooding the screen. If the standard deviation of the distribution of irregular barrages is less than the second preset threshold, it indicates that the irregular barrages are flooding the screen; if the standard deviation of the distribution of irregular barrages is greater than or equal to the second preset threshold, it indicates that the irregular barrages may not be flooding the screen, and the next step of processing can be carried out.
[0063] Step S208, calculating the peak time of the irregular barrage according to the number of irregular barrages in each unit time.
[0064] Specifically, the peak time calculation rule is as follows: the number of unusual barrages in the previous unit time is less than the number in the current unit time, and the number of unusual barrages in the current unit time is greater than the number in the next unit time, and the previous unit time, the current unit time, and the next unit time are adjacent. Therefore, according to this calculation rule, the number of unusual barrages in each unit time can be compared to calculate the peak time of all unusual barrages in the video.
[0065] Step S209: Determine the display time period and silent time period of the special-shaped barrage in the video according to the special-shaped barrage display rules and peak moments.
[0066] The Alien Barrage display rules define how the Alien Barrage is displayed. These rules include the Alien Barrage display duration and the Alien Barrage silence duration. The Alien Barrage display duration defines how long each Alien Barrage is displayed, while the Alien Barrage silence duration defines how long it takes to display the next Alien Barrage after each display.
[0067] Specifically, when determining the time period for displaying alien barrages and the time period for silence of alien barrages in the video, it is based on the alien barrage display rules and the peak moments. Here, combining the peak moments to determine the time period for displaying alien barrages and the time period for silence of alien barrages can ensure that the alien barrages at the peak moments are displayed first.
[0068] In an optional embodiment of the present invention, Figure 2B is a schematic diagram of a specific implementation method of step S209, as shown in Figure 2B As shown, this step can be implemented by the following method:
[0069] S2091, sort the peak moments according to the number of special-shaped barrages.
[0070] S2092, selecting the peak time with the highest number of special-shaped barrages from the sorting results, and determining the special-shaped barrage display time period according to the peak time and the display duration of the special-shaped barrages.
[0071] S2093, determine the alien barrage silence time period based on the two time endpoints of the alien barrage display time period and the alien barrage silence duration, delete the peak moments covered by the alien barrage silence time period from the sorting results, and jump to execute S2092 until all peak moments in the sorting results have been selected.
[0072] Specifically, each peak moment corresponds to a number of special-shaped barrages. Therefore, the peak moments can be sorted according to the number of special-shaped barrages. For example, the peak moments can be sorted in the order of the number of special-shaped barrages from large to small or from small to large. The sorting here is to ensure that the special-shaped barrages in the time period corresponding to the peak moment with a high number of special-shaped barrages are displayed first.
[0073] From the sorting results, select a peak moment with the highest number of unselected special-shaped barrages, and determine the special-shaped barrage display time period based on the peak moment and the display duration of the special-shaped barrage. For example, the peak moment is used as the middle moment of the special-shaped barrage display time period and the display duration of the special-shaped barrage is added to obtain the special-shaped barrage display time period, such as Figure 2C As shown. For example, the peak moment is the 10th second of the video, and the display time of the alien barrage is 5 seconds. Then, with the 10th second as the midpoint, the length of the alien barrage is superimposed, thereby determining that the display time period of the alien barrage is the 8th to 12th second of the video. After determining the display time period of the alien barrage, the silent time period of the alien barrage is determined based on the two time endpoints of the determined display time period of the alien barrage and the silent time period of the alien barrage. For example, the silent time period of the alien barrage is superimposed starting from the next unit time (for example, seconds) of the two time endpoints, thereby obtaining the silent time period of the alien barrage. For example, the silent time period of the alien barrage is 3 seconds, and the display time period of the alien barrage is 8 seconds to 12 seconds. Then 5 seconds to 7 seconds and 13 seconds to 15 seconds are the silent time periods of the alien barrage.
[0074] After determining the silent period of the alien barrage, the peak moments covered by the silent period are deleted from the sorting results. For example, if the silent period is determined to be 13 seconds to 15 seconds, and the 13th second is the peak moment, then the 13th second is deleted from the sorting results of the peak moments, and the process jumps to S2092 until all the peak moments in the sorting results have been selected. This is for illustration only and does not have any limiting effect. Other peak moments covered by the display period of the alien barrage will not be selected, and the peak moments covered by the display period of the alien barrage will be deleted from the sorting results.
[0075] In an optional embodiment of the present invention, before sorting the peak moments according to the number of unusual barrages, the method further includes: determining whether the number of unusual barrages at the peak moment is greater than or equal to a third preset threshold; if so, retaining the peak moment; if not, deleting the peak moment;
[0076] Specifically, when the video is long, there may be many peaks. If no filtering is performed, irregular barrages may be frequently displayed, which will affect the user's viewing experience. Therefore, a peak threshold, that is, the third preset threshold, is set to filter the peak moments. When the number of irregular barrages at the peak moment is greater than or equal to the third preset threshold, the peak moment is retained; when the number of irregular barrages at the peak moment is less than the third preset threshold, the peak moment is deleted.
[0077] Step S210: retain the special-shaped barrages covered by the special-shaped barrage display time period in the barrage list, and delete the special-shaped barrages covered by the special-shaped barrage silence time period in the barrage list.
[0078] After determining the display time period and silent time period of the alien barrage, the alien barrage in the barrage list can be processed according to the display time period and silent time period of the alien barrage. For example, the alien barrage covered by the display time period of the alien barrage in the barrage list is retained, and the alien barrage covered by the silent time period of the alien barrage in the barrage list is deleted, thereby controlling the display time period of the alien barrage and the number of displayed alien barrages, and jumping to execute step S212.
[0079] In an optional embodiment of the present invention, the rule for displaying the special-shaped barrage includes: presetting the number of special-shaped barrage displays, that is, stipulating the maximum number of special-shaped barrages displayed during the special-shaped barrage display period;
[0080] Therefore, retaining the special-shaped barrage covered by the special-shaped barrage display time period in the barrage list can be further achieved by the following method: determining whether the number of special-shaped barrages in the special-shaped barrage display time period is greater than the preset special-shaped barrage display number;
[0081] If yes, then retain the special-shaped barrages in the barrage list that are covered by the preset number of special-shaped barrages displayed during the special-shaped barrage display time period;
[0082] If not, the special-shaped barrages covered by the special-shaped barrage display time period in the barrage list will be retained.
[0083] Specifically, the number of alien barrages within the alien barrage display time period is compared with the preset alien barrage display number. If the number of alien barrages within the alien barrage display time period is greater than the preset alien barrage display number, it is determined that the number of alien barrages within the alien barrage display time period exceeds the maximum number of alien barrages that can be displayed in the time period, and the excess alien barrages need to be deleted, and the alien barrages within the preset alien barrage display number are retained. When deleting, the excess alien barrages can be deleted randomly, or the alien barrages with an earlier release time can be deleted. If there are many types of alien barrages within the alien barrage display time period, each type of alien barrage can be retained evenly, and the redundant alien barrages can be deleted. If the number of alien barrages within the alien barrage display time period is less than or equal to the preset alien barrage display number, the alien barrages covered by the alien barrage display time period in the barrage list are retained, and the alien barrages within the time period are not deleted.
[0084] Step S211, delete all target bullet comments in the bullet comment list.
[0085] If the proportion of unusual barrages is less than the first preset threshold, or if the standard deviation of the distribution of unusual barrages is less than the second preset threshold, all target barrages in the barrage list are deleted, and the process jumps to step S212.
[0086] Step S212, when the video is playing, the processed bullet comment list is returned to display the bullet comments in the processed bullet comment list during the video playback process.
[0087] When the video is playing, the processed barrage list is returned. During the video playback, the barrage in the processed barrage list is displayed in the video in combination with the release time of each barrage in the processed barrage list, thereby effectively controlling the number and time points of exposure of the target barrage, solving the problem of screen swiping and pollution of the target barrage from the source, and improving the viewing experience of the barrage.
[0088] The solution provided by the present invention calculates the peak moment of the irregular barrage according to the number of irregular barrages, determines the display time period and the silent time period of the irregular barrage in the video according to the display rules and peak moment of the irregular barrage, retains the irregular barrage covered by the display time period of the irregular barrage in the barrage list, and deletes the irregular barrage covered by the silent time period of the irregular barrage in the barrage list, thereby effectively controlling the number and time points of the exposed irregular barrages, solving the problem of screen swiping and pollution of irregular barrages from the source, improving the viewing experience of the barrage, and enabling the irregular barrage to be better integrated with the video content.
[0089] Figure 3 The structural diagram of the bullet screen display device according to one embodiment of the present application is shown. Figure 3 As shown, the device includes: an acquisition module 301 , a determination module 302 , a first calculation module 303 , a first processing module 304 , and a display module 305 .
[0090] The acquisition module 301 is adapted to acquire a bullet comment list corresponding to a media resource according to a media resource playback request;
[0091] A determination module 302 is adapted to determine the target number of barrages of the media resource in each unit time according to the release time of the target barrages in the barrage list;
[0092] The first calculation module 303 is adapted to calculate the peak time of the target barrage according to the number of target barrages in each unit time;
[0093] The first processing module 304 is adapted to process target bullet comments in the bullet comment list according to the peak time;
[0094] The display module 305 is adapted to return the processed bullet comment list when the media resource is played, so as to display the bullet comments in the processed bullet comment list during the media resource playback process.
[0095] Optionally, the first processing module is further adapted to: determine a target barrage display time period and a target barrage silence time period in the media resource according to a target barrage display rule and a peak time;
[0096] The target barrages in the barrage list that are covered by the display period are retained, and the target barrages in the barrage list that are covered by the silence period are deleted.
[0097] Optionally, the target barrage display rules include: target barrage display duration and target barrage silence duration.
[0098] Optionally, the first processing module is further adapted to: S1, sort the peak moments according to the number of target barrages;
[0099] S2, selecting the peak time with the highest number of target barrages from the sorting results, and determining the target barrage display time period based on the peak time and the target barrage display duration;
[0100] S3, determine the target barrage silence time period based on the two time endpoints of the target barrage display time period and the target barrage silence duration, delete the peak moments covered by the target barrage silence time period from the sorting results, and jump to execute S2 until all peak moments in the sorting results have been selected.
[0101] Optionally, the first processing module is further adapted to: take the peak moment as the middle moment of the target barrage display time period and superimpose the target barrage display duration to obtain the target barrage display time period.
[0102] Optionally, the target barrage display rule includes: presetting the target barrage display quantity;
[0103] The first processing module is further adapted to: determine whether the number of target barrages within the target barrage display time period is greater than a preset target barrage display number;
[0104] If yes, then retain the target barrages with the preset target barrage display quantity covered by the target barrage display time period in the barrage list;
[0105] If not, the target barrage covered by the target barrage display time period in the barrage list will be retained.
[0106] Optionally, the device further comprises: a first judgment module, adapted to judge whether the number of target barrages at the peak moment is greater than or equal to a third preset threshold;
[0107] The second processing module is adapted to retain the peak moment if the number of target barrages at the peak moment is greater than or equal to a third preset threshold; and to delete the peak moment if the number of target barrages at the peak moment is less than the third preset threshold.
[0108] Optionally, the device further comprises: a statistics module adapted to count the total number of barrages in the barrage list and the total number of target barrages;
[0109] The second calculation module is adapted to calculate the target barrage ratio according to the total number of target barrages and the total number of barrages;
[0110] The determination module is further adapted to: if the target barrage proportion is greater than or equal to a first preset threshold, determine the target barrage quantity of the media resource in each unit time according to the release time of the target barrage in the barrage list;
[0111] The deletion module is adapted to delete all target bullet comments in the bullet comment list if the target bullet comment ratio is less than a first preset threshold.
[0112] Optionally, the apparatus further comprises: a third calculation module adapted to calculate a target barrage distribution standard deviation of the target barrage in the media resource according to the number of target barrages in each unit time;
[0113] The determination module is further adapted to: if the target barrage distribution standard deviation is greater than or equal to a second preset threshold, calculate the peak time of the target barrage according to the number of target barrages in each unit time;
[0114] The deletion module is adapted to delete all target bullet comments in the bullet comment list if the target bullet comment ratio is less than a second preset threshold.
[0115] Optionally, the target barrage includes: special-shaped barrage and / or target text barrage.
[0116] The solution provided by the present invention calculates the peak time of the target barrage according to the number of target barrages, and processes the target barrages in the barrage list according to the peak time, thereby effectively controlling the number and time points of exposure of the target barrages, solving the problem of screen swiping and pollution of the target barrage from the source, and improving the viewing experience of the barrage.
[0117] An embodiment of the present application also provides a non-volatile computer storage medium, which stores at least one executable instruction, and the computer executable instruction can execute the bullet screen display method in any of the above method embodiments.
[0118] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the computing device.
[0119] like Figure 4 As shown, the computing device may include: a processor 402 , a communications interface 404 , a memory 406 , and a communication bus 408 .
[0120] in:
[0121] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0122] The communication interface 404 is used to communicate with other devices such as clients or other servers.
[0123] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the bullet screen display method.
[0124] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0125] Processor 402 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs, or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0126] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0127] Program 410 can be specifically used to enable processor 402 to execute the barrage display method in any of the above-mentioned method embodiments. The specific implementation of each step in program 410 can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned barrage display embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0128] The algorithm or demonstration provided here are not inherently relevant to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present application described here, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the present application.
[0129] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0130] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed application requires more features than those explicitly recited in each claim. More precisely, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present application.
[0131] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed herein may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0132] Furthermore, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, combinations of features from different embodiments are intended to be within the scope of this application and to form different embodiments. For example, in the claims below, any of the claimed embodiments may be used in any combination.
[0133] The various component embodiments of the present application can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present application. The application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for performing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0134] It should be noted that the above embodiments illustrate rather than limit the present application, and that a person skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application may be implemented by means of hardware comprising several different elements and by means of appropriately programmed computers. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments should not be understood as limiting the order of execution unless otherwise specified.
Claims
1. A bullet screen display method, comprising: According to the media resource playback request, obtain the bullet screen list corresponding to the media resource; Determine the target number of barrages of the media resource in each unit time according to the release time of the target barrage in the barrage list; Calculating the peak time of the target barrage according to the number of target barrages in each unit time; Processing the target bullet comments in the bullet comment list according to the peak time; When the media resource is played, the processed bullet comment list is returned to display the bullet comments in the processed bullet comment list during the media resource playback process; The processing of the target bullet comments in the bullet comment list according to the peak time further includes: Determine the target barrage display time period and the target barrage silence time period in the media resource according to the target barrage display rule and the peak time; The target barrage covered by the target barrage display time period in the barrage list is retained, and the target barrage covered by the target barrage silence time period in the barrage list is deleted.
2. The method according to claim 1, wherein The target barrage display rules include: target barrage display duration and target barrage silence duration.
3. The method according to claim 1, wherein The step of determining the target barrage display time period and the target barrage silence time period in the media resource according to the target barrage display rule and the peak time further includes: S1, sorting the peak moments according to the number of target bullet comments; S2, selecting the peak time with the highest number of target barrages from the sorting results, and determining the target barrage display time period based on the peak time and the target barrage display duration; S3, determine the target barrage silence time period based on the two time endpoints of the target barrage display time period and the target barrage silence duration, delete the peak moments covered by the target barrage silence time period from the sorting result, and jump to execute S2 until all peak moments in the sorting result have been selected.
4. The method according to claim 3, wherein: Determining the target bullet screen display time period according to the peak time and the target bullet screen display duration further includes: The peak moment is taken as the middle moment of the target barrage display time period and superimposed on the target barrage display duration to obtain the target barrage display time period.
5. The method according to any one of claims 1 to 4, wherein The target barrage display rules include: presetting the target barrage display quantity; The target bullet screen covered by the target bullet screen display time period in the retained bullet screen list further includes: Determine whether the number of target barrages within the target barrage display time period is greater than a preset target barrage display number; If yes, retain the target barrages with the preset target barrage display quantity covered by the target barrage display time period in the barrage list; If not, the target barrage covered by the target barrage display time period in the barrage list is retained.
6. The method according to any one of claims 1 to 4, wherein Before processing the target bullet comments in the bullet comment list according to the peak time, the method further includes: Determining whether the number of target bullet comments at the peak moment is greater than or equal to a third preset threshold; If yes, retain the peak moment; If not, the peak moment is deleted.
7. The method according to any one of claims 1 to 4, wherein Before determining the target number of barrages of the media resource in each unit time according to the release time of the target barrage in the barrage list, the method further includes: Count the total number of barrages in the barrage list and the total number of target barrages; Calculate the target barrage ratio based on the total number of target barrages and the total number of barrages; If the target barrage proportion is greater than or equal to a first preset threshold, determining the target barrage quantity of the media resource in each unit time according to the release time of the target barrage in the barrage list; If the target barrage proportion is less than a first preset threshold, all target barrages in the barrage list are deleted.
8. The method according to any one of claims 1 to 4, wherein Before calculating the peak time of the target barrage according to the number of target barrages in each unit time, the method further includes: Calculate the target barrage distribution standard deviation of the target barrage in the media resource according to the number of target barrages in each unit time; If the target barrage distribution standard deviation is greater than or equal to a second preset threshold, calculating the peak time of the target barrage according to the number of target barrages in each unit time; If the target barrage proportion is less than a second preset threshold, all target barrages in the barrage list are deleted.
9. The method according to any one of claims 1 to 4, wherein The target barrage includes: special-shaped barrage and / or target text barrage.
10. A bullet screen display device, comprising: An acquisition module, adapted to acquire a bullet screen list corresponding to a media resource according to a media resource playback request; A determination module, adapted to determine the target number of barrages of the media resource in each unit time according to the release time of the target barrages in the barrage list; A first calculation module is adapted to calculate the peak time of the target barrage according to the number of target barrages in each unit time; A first processing module, adapted to process a target bullet comment in the bullet comment list according to the peak moment; A display module, adapted to return a processed bullet comment list when a media resource is played, so as to display the bullet comments in the processed bullet comment list during the playback of the media resource; The first processing module is further adapted to: determine a target barrage display time period and a target barrage silence time period in the media resource according to the target barrage display rule and the peak time; The target barrages in the barrage list that are covered by the display period are retained, and the target barrages in the barrage list that are covered by the silence period are deleted.
11. A computing device comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the bullet screen display method as described in any one of claims 1 to 9.
12. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform operations corresponding to the barrage display method as described in any one of claims 1-9.
13. A computer program product comprising at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the bullet screen display method as described in any one of claims 1-9.
Citation Information
Patent Citations
Bullet screen display method, device and equipment and computer readable storage medium
CN112565916A