Method and device for displaying bullet screen information, storage medium, and electronic device
By receiving the barrage pull request from the user terminal, calculating and matching the number of barrages, the problem of being unable to dynamically control barrage information in the prior art is solved, and better barrage information display effect and user experience are achieved.
Patent Information
- Application Number
- CN202211630203.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-12-19
AI Technical Summary
The prior art cannot dynamically control the barrage information, resulting in the problem that when the number of barrage is too large, the information blocks each other and the content cannot be read. At the same time, the corresponding barrage information cannot be matched according to user preferences.
By receiving the barrage pull request sent by the user terminal, the number of first barrages is calculated according to the barrage request context, the data source decision result is matched to determine the second barrage number, and the corresponding barrage information to be displayed is obtained and feedback is fed back to the user terminal for display.
Dynamic control of barrage information is realized, information occlusion problems caused by excessive barrage information are reduced, and the readability and user experience of barrage information are enhanced.
Smart Images

Figure CN115988254B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology. More specifically, the embodiments of the present disclosure relate to a method for displaying barrage information, a device for displaying barrage information, a computer-readable storage medium, and an electronic device. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] In the existing method for displaying bullet screen information, when the bullet screen information input by the user for the played content is received, the bullet screen information is directly displayed. However, this method cannot dynamically control the bullet screen. Summary of the invention
[0004] However, in the prior art, on the one hand, since the display is based on the actual number of barrages, the barrage information may be blocked by too many barrages, making it impossible to read the barrage content; on the other hand, there is also the problem of being unable to match the corresponding barrage information for the user based on the user's preferences.
[0005] To this end, an improved method for displaying barrage information is urgently needed to calculate the corresponding number of barrages through the barrage request context, and display the barrage information corresponding to the number of barrages, thereby realizing dynamic control of the barrage information.
[0006] In this context, embodiments of the present disclosure are intended to provide a method for displaying barrage information, a device for displaying barrage information, a computer-readable storage medium, and an electronic device.
[0007] According to one aspect of the present disclosure, a method for displaying bullet screen information is provided, which is configured on a server side. The method for displaying bullet screen information includes:
[0008] Receive a barrage pull request sent by a user terminal, and calculate the first number of barrages according to the barrage request context included in the barrage pull request; match the data source decision result corresponding to the barrage request context, and determine the second number of barrages according to the data source decision result and the first number of barrages; obtain the barrage information to be displayed corresponding to the second number of barrages, and feed back the barrage information to be displayed to the user terminal where the barrage host is located for display.
[0009] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated according to the barrage request context included in the barrage pull request, including: parsing the barrage pull request to obtain the barrage request context; wherein the barrage request context includes one or more of the barrage capacity per unit time of the barrage host, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal; obtaining the full amount of host content information of the barrage host according to the host content identifier; calculating the first number of barrages according to the barrage capacity per unit time and the full amount of host content information; wherein the first number of barrages is the maximum number of barrages that the barrage host can accommodate within the total playback time.
[0010] In an example embodiment of the present disclosure, the full information of the host content includes the total playback time of the barrage host, or the total playback time and the segment playback time of a video segment with a preset content category; wherein, the first barrage quantity is calculated based on the barrage capacity per unit time and the full information of the host content, including: calculating the first barrage quantity based on the barrage capacity per unit time and the total playback time; or calculating the first barrage quantity based on the barrage capacity per unit time, the total playback time and the segment playback time.
[0011] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated based on the barrage capacity per unit time and the total playback time, including: configuring a first overflow ratio for the barrage host, and calculating a first product operation result between the first overflow ratio, the barrage capacity per unit time and the total playback time; determining the first number of barrages based on the first product operation result.
[0012] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated based on the barrage capacity per unit time, the total playback time, and the segment playback time, including: configuring a second overflow ratio for the video segment with a preset content category, and configuring a third overflow ratio for other video segments in the barrage host except for the video segment with the preset content category; calculating the first number of barrages based on the first overflow ratio, the third overflow ratio, the barrage capacity per unit time, the total playback time, and the segment playback time.
[0013] In an exemplary embodiment of the present disclosure, matching the data source decision result corresponding to the barrage request context includes: obtaining full user information according to the user identifier included in the barrage request context, and generating a decision request context according to the full user information and the full host content information of the barrage host; matching the data source decision result from a data source policy management center according to the decision request context; wherein the data source decision result includes at least one of the maximum number of sub-policy barrages that can be displayed by each sub-data source policy included in the data source policy management center, the minimum number of sub-policy barrages that each sub-data source policy must display, and the policy priority of each sub-data source policy.
[0014] In an exemplary embodiment of the present disclosure, the data source policy management center includes a sub-data source of the bullet screen information and a sub-data source policy corresponding to the sub-data source; wherein the sub-data source includes one or more of pre-configured bullet screen information corresponding to the host content of the bullet screen host, preset active bullet screen information associated with the host content, user-sent bullet screen information associated with the host content, and user comment information associated with the host content; the sub-data source policy includes one or more of a preset bullet screen policy corresponding to the pre-configured bullet screen information, an active bullet screen policy corresponding to the preset active bullet screen information, a user bullet screen policy corresponding to the user-sent bullet screen information, and a user comment policy corresponding to the user comment content.
[0015] In an exemplary embodiment of the present disclosure, the second number of barrages is determined based on the data source decision result and the first number of barrages, including: summing the maximum number of sub-strategy barrages that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first sum operation result; summing the minimum number of sub-strategy barrages that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; determining the second number of barrages based on the numerical relationship between the first number of barrages and the first sum operation result and the second sum operation result.
[0016] In an exemplary embodiment of the present disclosure, the second barrage number is determined according to the numerical relationship between the first barrage number and the first sum operation result and the second sum operation result, including: performing a difference operation on the first barrage number and the first sum operation result to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, using the first sum operation result as the second barrage number; when it is determined that the first difference operation result is less than or equal to the preset threshold, performing a difference operation on the first barrage number and the second sum operation result to obtain a second difference operation result; when it is determined that the second difference operation result is greater than the preset threshold, summing the second sum operation result and the second difference operation result to obtain a third sum operation result, and determining the second barrage number according to the third sum operation result; when it is determined that the second difference operation result is less than or equal to the preset threshold, using the first barrage number as the second barrage number.
[0017] In an example embodiment of the present disclosure, the barrage information to be displayed corresponding to the second number of barrages is obtained, including: when the second number of barrages is the result of the first sum operation, requesting the first barrage information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy from the data source strategy center, and generating the barrage information to be displayed based on the first barrage information.
[0018] In an example embodiment of the present disclosure, first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy is requested from a data source strategy center, including: obtaining original bullet screen information under each sub-data source strategy in the data source strategy center; wherein the original bullet screen information includes one or more of pre-configured bullet screen information, preset activity bullet screen information, and user-sent bullet screen information; comparing the total amount of information in the original bullet screen information and the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, and when it is determined that the total amount of information in the original bullet screen information is less than the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, performing data conversion on the user comment information in the data source strategy center to obtain newly added bullet screen information; generating the first bullet screen information according to the newly added bullet screen information and the original bullet screen information, and obtaining the first bullet screen information from the data source strategy center.
[0019] In an example embodiment of the present disclosure, data conversion is performed on the user comment information in the data source policy center to obtain newly added barrage information, including: inputting the user comment information in the data source policy center and the host content into a preset neural network model to obtain the time node of the user comment information in the host content; wherein the preset neural network model includes one or more of a recurrent neural network model, a convolutional neural network model, a deep neural network model and a decision tree model; and generating newly added barrage information according to the time node and the user comment information.
[0020] In an exemplary embodiment of the present disclosure, obtaining the to-be-displayed barrage information corresponding to the second number of barrages also includes: when the second number of barrages is the result of the third sum operation, generating a diversion request context according to the second difference operation result and the data source decision result; obtaining the number of barrages required to be provided by each sub-data source strategy from the diversion strategy center according to the diversion request context, and determining the target number of barrages required to be provided by each sub-data source strategy according to the minimum number of sub-strategies that must be displayed by each sub-data source strategy and the number of barrages required to be provided by each sub-data source strategy; requesting the second barrage information corresponding to the target number of barrages required to be provided by each sub-data source strategy from each sub-data source strategy of the data source strategy center, and generating the to-be-displayed barrage information according to the second barrage information.
[0021] In an example embodiment of the present disclosure, the number of bullet screens required to be provided by each sub-data source strategy is obtained from a diversion strategy center, including: calculating the diversion ratio of each sub-data source strategy according to the diversion request context by the diversion strategy center; calculating the number of bullet screens required to be provided by each sub-data source strategy according to the diversion ratio, the first number of bullet screens, and the minimum number of sub-strategies that must be displayed by each sub-data source strategy.
[0022] In an exemplary embodiment of the present disclosure, obtaining the to-be-displayed barrage information corresponding to the second barrage number also includes: S10, when the first barrage number is the same as the second barrage number, sorting each sub-data source strategy according to the strategy priority of each sub-data source strategy included in the decision result to obtain a strategy sorting result; wherein the strategy sorting result includes the first sub-data source strategy, ..., the Nth sub-data source strategy, and the first strategy priority, ..., the Nth strategy priority corresponding to the first sub-data source strategy, ..., the Nth sub-data source strategy decreases in sequence; S20, comparing the first sub-strategy minimum number of barrages and the first barrage number of the first sub-data source strategy, and when it is determined that the first sub-strategy minimum number of barrages is greater than or equal to the first barrage number, obtaining the third barrage information corresponding to the first barrage number from the first sub-data source strategy, without the need to obtain the third barrage information from other sub-data source strategies except the first sub-data source strategy; S30, when it is determined that the first sub-strategy minimum number of barrages is less than the first barrage number, obtaining the third barrage information from the sub-data source strategy other than the first sub-data source strategy; The third bullet screen information corresponding to the minimum number of bullet screens of the first sub-strategy is obtained from the first sub-data source strategy; S40, a difference operation is performed on the first number of bullet screens and the minimum number of bullet screens of the first sub-strategy to obtain a third difference operation result, and the third difference operation result is compared with the second sub-strategy minimum number of bullet screens possessed by the second sub-data source strategy; S50, when it is determined that the minimum number of bullet screens of the second sub-strategy is greater than or equal to the third difference operation result, the third bullet screen information corresponding to the third difference operation result is obtained from the second sub-data source strategy, without the need to obtain the third bullet screen information from other sub-data source strategies except the first sub-data source strategy and the second sub-data source strategy; S60, when it is determined that the minimum number of bullet screens of the second sub-strategy is less than the third difference operation result, the third bullet screen information corresponding to the minimum number of bullet screens of the second sub-strategy is obtained from the second sub-data source strategy; S70, repeat steps S40-S60 until the number of the third bullet screen information reaches the first number of bullet screens, and generate the barrage information to be displayed according to the third bullet screen information.
[0023] According to one aspect of the present disclosure, a method for displaying bullet screen information is provided, which is configured on a user terminal side. The method for displaying bullet screen information includes:
[0024] Obtain environmental information and barrage display setting information of the barrage host, and calculate the barrage capacity per unit time of the barrage host according to the environmental information and barrage display setting information; generate a barrage request context according to the barrage capacity per unit time, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal, and generate a barrage pull request according to the barrage request context; send the barrage pull request to the server side, and receive the barrage information to be displayed generated by the server side according to the barrage capacity per unit time, the host content identifier and the user identifier included in the barrage pull request; display the barrage information to be displayed in the display environment of the barrage host.
[0025] In an exemplary embodiment of the present disclosure, the environmental information includes the display width and display height of the display environment, and / or the device resolution of the user terminal; the barrage display setting information includes one or more of the font size when displaying the barrage information, the scrolling rate of the barrage information, and the barrage density.
[0026] According to one aspect of the present disclosure, a display device for bullet screen information is provided, which is configured on a server side, and the display device for bullet screen information includes:
[0027] A first barrage quantity calculation module, used to receive a barrage pull request sent by a user terminal, and calculate the first barrage quantity according to the barrage request context included in the barrage pull request;
[0028] A second barrage quantity determination module, used to match a data source decision result corresponding to the barrage request context, and determine the second barrage quantity according to the data source decision result and the first barrage quantity;
[0029] The barrage information acquisition module is used to obtain the barrage information to be displayed corresponding to the second barrage number, and feed back the barrage information to be displayed to the user terminal where the barrage host is located for display.
[0030] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated according to the barrage request context included in the barrage pull request, including: parsing the barrage pull request to obtain the barrage request context; wherein the barrage request context includes one or more of the barrage capacity per unit time of the barrage host, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal; obtaining the full amount of host content information of the barrage host according to the host content identifier; calculating the first number of barrages according to the barrage capacity per unit time and the full amount of host content information; wherein the first number of barrages is the maximum number of barrages that the barrage host can accommodate within the total playback time.
[0031] In an example embodiment of the present disclosure, the full information of the host content includes the total playback time of the barrage host, or the total playback time and the segment playback time of a video segment with a preset content category; wherein, the first barrage quantity is calculated based on the barrage capacity per unit time and the full information of the host content, including: calculating the first barrage quantity based on the barrage capacity per unit time and the total playback time; or calculating the first barrage quantity based on the barrage capacity per unit time, the total playback time and the segment playback time.
[0032] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated based on the barrage capacity per unit time and the total playback time, including: configuring a first overflow ratio for the barrage host, and calculating a first product operation result between the first overflow ratio, the barrage capacity per unit time and the total playback time; determining the first number of barrages based on the first product operation result.
[0033] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated based on the barrage capacity per unit time, the total playback time, and the segment playback time, including: configuring a second overflow ratio for the video segment with a preset content category, and configuring a third overflow ratio for other video segments in the barrage host except for the video segment with the preset content category; calculating the first number of barrages based on the first overflow ratio, the third overflow ratio, the barrage capacity per unit time, the total playback time, and the segment playback time.
[0034] In an exemplary embodiment of the present disclosure, matching the data source decision result corresponding to the barrage request context includes: obtaining full user information according to the user identifier included in the barrage request context, and generating a decision request context according to the full user information and the full host content information of the barrage host; matching the data source decision result from a data source policy management center according to the decision request context; wherein the data source decision result includes at least one of the maximum number of sub-policy barrages that can be displayed by each sub-data source policy included in the data source policy management center, the minimum number of sub-policy barrages that each sub-data source policy must display, and the policy priority of each sub-data source policy.
[0035] In an exemplary embodiment of the present disclosure, the data source policy management center includes a sub-data source of the bullet screen information and a sub-data source policy corresponding to the sub-data source; wherein the sub-data source includes one or more of pre-configured bullet screen information corresponding to the host content of the bullet screen host, preset active bullet screen information associated with the host content, user-sent bullet screen information associated with the host content, and user comment information associated with the host content; the sub-data source policy includes one or more of a preset bullet screen policy corresponding to the pre-configured bullet screen information, an active bullet screen policy corresponding to the preset active bullet screen information, a user bullet screen policy corresponding to the user-sent bullet screen information, and a user comment policy corresponding to the user comment content.
[0036] In an exemplary embodiment of the present disclosure, the second number of barrages is determined based on the data source decision result and the first number of barrages, including: summing the maximum number of sub-strategy barrages that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first sum operation result; summing the minimum number of sub-strategy barrages that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; determining the second number of barrages based on the numerical relationship between the first number of barrages and the first sum operation result and the second sum operation result.
[0037] In an exemplary embodiment of the present disclosure, the second barrage number is determined according to the numerical relationship between the first barrage number and the first sum operation result and the second sum operation result, including: performing a difference operation on the first barrage number and the first sum operation result to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, using the first sum operation result as the second barrage number; when it is determined that the first difference operation result is less than or equal to the preset threshold, performing a difference operation on the first barrage number and the second sum operation result to obtain a second difference operation result; when it is determined that the second difference operation result is greater than the preset threshold, summing the second sum operation result and the second difference operation result to obtain a third sum operation result, and determining the second barrage number according to the third sum operation result; when it is determined that the second difference operation result is less than or equal to the preset threshold, using the first barrage number as the second barrage number.
[0038] In an example embodiment of the present disclosure, the barrage information to be displayed corresponding to the second number of barrages is obtained, including: when the second number of barrages is the result of the first sum operation, requesting the first barrage information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy from the data source strategy center, and generating the barrage information to be displayed based on the first barrage information.
[0039] In an example embodiment of the present disclosure, first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy is requested from a data source strategy center, including: obtaining original bullet screen information under each sub-data source strategy in the data source strategy center; wherein the original bullet screen information includes one or more of pre-configured bullet screen information, preset activity bullet screen information, and user-sent bullet screen information; comparing the total amount of information in the original bullet screen information and the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, and when it is determined that the total amount of information in the original bullet screen information is less than the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, performing data conversion on the user comment information in the data source strategy center to obtain newly added bullet screen information; generating the first bullet screen information according to the newly added bullet screen information and the original bullet screen information, and obtaining the first bullet screen information from the data source strategy center.
[0040] In an example embodiment of the present disclosure, data conversion is performed on the user comment information in the data source policy center to obtain newly added barrage information, including: inputting the user comment information in the data source policy center and the host content into a preset neural network model to obtain the time node of the user comment information in the host content; wherein the preset neural network model includes one or more of a recurrent neural network model, a convolutional neural network model, a deep neural network model and a decision tree model; and generating newly added barrage information according to the time node and the user comment information.
[0041] In an exemplary embodiment of the present disclosure, obtaining the to-be-displayed barrage information corresponding to the second number of barrages also includes: when the second number of barrages is the result of the third sum operation, generating a diversion request context according to the second difference operation result and the data source decision result; obtaining the number of barrages required to be provided by each sub-data source strategy from the diversion strategy center according to the diversion request context, and determining the target number of barrages required to be provided by each sub-data source strategy according to the minimum number of sub-strategies that must be displayed by each sub-data source strategy and the number of barrages required to be provided by each sub-data source strategy; requesting the second barrage information corresponding to the target number of barrages required to be provided by each sub-data source strategy from each sub-data source strategy of the data source strategy center, and generating the to-be-displayed barrage information according to the second barrage information.
[0042] In an example embodiment of the present disclosure, the number of bullet screens required to be provided by each sub-data source strategy is obtained from a diversion strategy center, including: calculating the diversion ratio of each sub-data source strategy according to the diversion request context by the diversion strategy center; calculating the number of bullet screens required to be provided by each sub-data source strategy according to the diversion ratio, the first number of bullet screens, and the minimum number of sub-strategies that must be displayed by each sub-data source strategy.
[0043] In an exemplary embodiment of the present disclosure, obtaining the to-be-displayed barrage information corresponding to the second barrage number also includes: S10, when the first barrage number is the same as the second barrage number, sorting each sub-data source strategy according to the strategy priority of each sub-data source strategy included in the decision result to obtain a strategy sorting result; wherein the strategy sorting result includes the first sub-data source strategy, ..., the Nth sub-data source strategy, and the first strategy priority, ..., the Nth strategy priority corresponding to the first sub-data source strategy, ..., the Nth sub-data source strategy decreases in sequence; S20, comparing the first sub-strategy minimum number of barrages and the first barrage number of the first sub-data source strategy, and when it is determined that the first sub-strategy minimum number of barrages is greater than or equal to the first barrage number, obtaining the third barrage information corresponding to the first barrage number from the first sub-data source strategy, without the need to obtain the third barrage information from other sub-data source strategies except the first sub-data source strategy; S30, when it is determined that the first sub-strategy minimum number of barrages is less than the first barrage number, obtaining the third barrage information from the sub-data source strategy other than the first sub-data source strategy; The third bullet screen information corresponding to the minimum number of bullet screens of the first sub-strategy is obtained from the first sub-data source strategy; S40, a difference operation is performed on the first number of bullet screens and the minimum number of bullet screens of the first sub-strategy to obtain a third difference operation result, and the third difference operation result is compared with the second sub-strategy minimum number of bullet screens possessed by the second sub-data source strategy; S50, when it is determined that the minimum number of bullet screens of the second sub-strategy is greater than or equal to the third difference operation result, the third bullet screen information corresponding to the third difference operation result is obtained from the second sub-data source strategy, without the need to obtain the third bullet screen information from other sub-data source strategies except the first sub-data source strategy and the second sub-data source strategy; S60, when it is determined that the minimum number of bullet screens of the second sub-strategy is less than the third difference operation result, the third bullet screen information corresponding to the minimum number of bullet screens of the second sub-strategy is obtained from the second sub-data source strategy; S70, repeat steps S40-S60 until the number of the third bullet screen information reaches the first number of bullet screens, and generate the barrage information to be displayed according to the third bullet screen information.
[0044] According to one aspect of the present disclosure, a display device for bullet screen information is provided, which is configured on a user terminal side, and the display device for bullet screen information includes:
[0045] A unit time barrage capacity calculation module, used to obtain the environment information and barrage display setting information of the barrage host, and calculate the unit time barrage capacity of the barrage host according to the environment information and barrage display setting information;
[0046] A barrage pull request generation module, used to generate a barrage request context according to the barrage capacity per unit time, a host content identifier of the barrage host, and a user identifier corresponding to the user terminal, and generate a barrage pull request according to the barrage request context;
[0047] A barrage information receiving module, used to send the barrage pull request to the server side, and receive the barrage information to be displayed generated by the server side according to the barrage capacity per unit time, the host content identifier and the user identifier included in the barrage pull request;
[0048] The bullet screen information display module is used to display the bullet screen information to be displayed in the display environment of the bullet screen host.
[0049] In an exemplary embodiment of the present disclosure, the environmental information includes the display width and display height of the display environment, and / or the device resolution of the user terminal; the barrage display setting information includes one or more of the font size when displaying the barrage information, the scrolling rate of the barrage information, and the barrage density.
[0050] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for displaying barrage information described in any of the aforementioned example embodiments is implemented.
[0051] According to one aspect of the present disclosure, there is provided an electronic device, including:
[0052] Processor; and
[0053] A memory, configured to store executable instructions of the processor;
[0054] Among them, the processor is configured to execute the method for displaying barrage information described in any of the aforementioned example embodiments by executing the executable instructions.
[0055] According to the method for displaying barrage information and the device for displaying barrage information of the embodiments of the present invention, the number of first barrages can be calculated by receiving a barrage pull request sent by a user terminal and according to the barrage request context included in the barrage pull request; matching the data source decision result corresponding to the barrage request context, and determining the second number of barrages according to the data source decision result and the first number of barrages; obtaining the barrage information to be displayed corresponding to the second number of barrages, and feeding back the barrage information to be displayed to the user terminal where the barrage host is located for display, without the need to directly display the barrage information, thereby significantly reducing the problem of being unable to dynamically control the barrage information due to the need to directly display the barrage information, and reducing the problem of being unable to read the barrage content due to the mutual occlusion of the barrage content due to the excessive number of barrages, thereby enhancing the rationality and readability of the barrage information during the display process, and bringing users a better reading (usage) experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0057] Figure 1 A flowchart of a method for displaying bullet screen information configured on a server side according to an exemplary embodiment of the present disclosure is schematically shown;
[0058] Figure 2 An example diagram schematically shows an application scenario of a method for displaying bullet screen information according to an example embodiment of the present disclosure;
[0059] Figure 3 The structure block diagram of a system for displaying bullet screen information according to an exemplary embodiment of the present disclosure is schematically shown;
[0060] Figure 4 A flowchart of a method for calculating the number of first bullet screens according to a bullet screen request context included in the bullet screen pull request according to an exemplary embodiment of the present disclosure is schematically shown;
[0061] Figure 5 A diagram schematically shows a display interface of bullet message information;
[0062] Figure 6 Schematically shows an example diagram of a display interface obtained by a method for displaying bullet screen information disclosed in the present disclosure according to an exemplary embodiment of the present disclosure;
[0063] Figure 7 Another display interface diagram of bullet message is schematically shown;
[0064] Figure 8 Schematically shows another example diagram of a display interface obtained by the method for displaying barrage information disclosed in the present disclosure according to an exemplary embodiment of the present disclosure;
[0065] Fig. 9 A flowchart of a method for displaying bullet screen information configured on a user terminal side according to an exemplary embodiment of the present disclosure is schematically shown;
[0066] Fig.10 A flowchart of a method for displaying bullet screen information based on multi-terminal interaction according to an exemplary embodiment of the present disclosure is schematically shown;
[0067] Fig.11 A block diagram schematically shows a device for displaying bullet screen information configured on a server side according to an exemplary embodiment of the present disclosure;
[0068] Fig.12 A block diagram schematically shows a device for displaying bullet screen information configured on a user terminal side according to an exemplary embodiment of the present disclosure;
[0069] Fig.13 A computer-readable storage medium for storing the above-mentioned method for displaying barrage information according to an exemplary embodiment of the present disclosure is schematically shown;
[0070] Fig.14 An electronic device for implementing the above-mentioned method for displaying barrage information according to an exemplary embodiment of the present disclosure is schematically shown.
[0071] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0072] The principles and spirit of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0073] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0074] According to an embodiment of the present disclosure, a method for displaying barrage information, a device for displaying barrage information, a computer-readable storage medium, and an electronic device are proposed.
[0075] In this document, any number of elements in the drawings is used for illustration rather than limitation, and any naming is used only for distinction and does not have any limiting meaning.
[0076] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure. SUMMARY OF THE INVENTION
[0078] The applicant first considers that in some bullet screen information display schemes, the source of the content of the bullet screen information is mainly based on the direct display of UGC (User Generated Content). That is, in the actual application process, a user first publishes a bullet screen at the specified time of the host content, and then other users play the host content to that time. The bullet screen automatically appears. At the same time, in terms of content display, the current bullet screen solution will display all existing bullet screens by default, and users can set preferences to control the area where the bullet screen is displayed.
[0079] However, the above scheme has the following defects: on the one hand, the number of barrages depends on user-generated content. In the early stage of content launch, the number of barrages is insufficient, and the barrages are sparsely displayed in the host environment, resulting in poor user experience; on the other hand, the number of barrages cannot be dynamically controlled. Under given user preference settings, the number of barrages is determined without considering the host environment; therefore, it is easy to cause the barrage display area in the user terminal to be small, the large amount of barrages leads to dense arrangement, which is not conducive to reading, and the host playback time is short, the amount of barrage data is large, causing the user's attention to be distracted, and the problem of not being able to take into account both content and barrages at the same time; on the other hand, there is a lack of fine-grained control over barrages.
[0080] Based on this, the example embodiments of the present disclosure provide a method for displaying better barrage information when there are too many barrages and information obscures each other. On the one hand, by receiving a barrage pull request sent by a user terminal, and calculating the first number of barrages according to the barrage request context included in the barrage pull request; matching the data source decision result corresponding to the barrage request context, and determining the second number of barrages according to the data source decision result and the first number of barrages; obtaining the barrage information to be displayed corresponding to the second number of barrages, and feeding back the barrage information to be displayed to the user terminal where the barrage host is located for display. Since the number of barrages can be determined according to the barrage request context included in the barrage pull request and the data source decision result, and then the responsive barrage information to be displayed is fed back to the user terminal and displayed, the problem of small barrage display area in the user terminal and large number of barrages resulting in dense arrangement, which is not conducive to reading, and the problem of short host playback time and large amount of barrage data causing user attention to be distracted and unable to take into account both content and barrage at the same time can be avoided, thereby improving the rationality and readability of the displayed barrage information; on the other hand, it also solves the problem of inability to dynamically control the barrage information.
[0081] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
[0082] Exemplary Methods
[0083] In this exemplary embodiment, a method for displaying bullet message information is first provided, which can be run on a server, a server cluster or a cloud server, etc. Of course, those skilled in the art can also run the method disclosed in this disclosure on other platforms as required, which is not particularly limited in this exemplary embodiment. Figure 1 As shown, the method for displaying the bullet screen information may include the following steps:
[0084] Step S110. Receive a bullet screen pull request sent by a user terminal, and calculate the first bullet screen quantity according to the bullet screen request context included in the bullet screen pull request;
[0085] Step S120. Matching the data source decision result corresponding to the barrage request context, and determining the number of second barrages according to the data source decision result and the number of the first barrages;
[0086] Step S130. Obtain the barrage information to be displayed corresponding to the second barrage quantity, and feed back the barrage information to be displayed to the user terminal where the barrage host is located for display.
[0087] In the above-mentioned method for displaying barrage information, the barrage pull request sent by the user terminal is received, and the first number of barrages is calculated according to the barrage request context included in the barrage pull request; the data source decision result corresponding to the barrage request context is matched, and the second number of barrages is determined according to the data source decision result and the first number of barrages; the barrage information to be displayed corresponding to the second number of barrages is obtained, and the barrage information to be displayed is fed back to the user terminal where the barrage host is located for display, without the need to directly display the barrage information, thereby significantly reducing the problem of being unable to dynamically control the barrage information due to the need to directly display the barrage information, and reducing the problem of being unable to read the barrage content due to the need to directly display the barrage information and the excessive number of barrage information, thereby bringing a better experience to users.
[0088] Hereinafter, the method for displaying barrage information according to an exemplary embodiment of the present disclosure will be explained and illustrated in detail with reference to the accompanying drawings.
[0089] First, the terms involved in the exemplary embodiments of the present disclosure are explained.
[0090] Host: The contextual environment required for the barrage to be displayed; the host environment specifically refers to the carrier of the barrage at the UI (User Interface) level, and the host content specifically refers to the content commented on by the barrage, such as videos and songs.
[0091] Application server: provides backend services required by applications that provide barrage capabilities.
[0092] Data source strategy: The strategy for providing barrage information is an abstraction of the source of barrage, and also includes the transformation of the interactive effect of barrage. At the same time, a data source strategy will provide corresponding barrage information from a valid data source according to the specified context information. Among them, typical barrage data source strategies may include: 1) Preset barrage: barrage information that is automatically played at key positions such as the beginning, climax, and end of the host content playback, with the main purpose of guiding users; 2) Official event barrage: Official activities are revealed for specific playback content to increase exposure in the form of barrage; 3) User barrage: Barrage created spontaneously by users is also the most widely used source of barrage, and the strategies of users themselves and other users will be different; at the same time, barrages created by users themselves must be displayed in terms of strategy, while barrages created by other users are optional in terms of strategy. At the same time, barrages that have social relationships with users or similar user portraits have a higher display priority; 4) User comments: When the number of barrages is small in the early stage, it can be used as an effective and large data source to improve user experience, and the problem of data heterogeneity needs to be solved. In the actual application process, since the data source strategy abstracts the management process of the source of barrage information, its functions may include: on the one hand, determining the decision result of the current data source strategy according to the decision request context; on the other hand, providing conversion methods for heterogeneous data, for example, it is necessary to determine the timestamp of user comments through algorithms before they can be converted into barrage information; on the other hand, returning the barrage information list according to given conditions, involving business logic, filtering and sorting, etc.; on the other hand, the conversion of the user's interactive effect on the barrage. Furthermore, in the actual application process, the data source strategy is a pluggable submodule in this system. Operators can freely add or delete data source strategies according to business needs, and can also turn on or off data source strategies for specific host content. At the same time, this system also provides a sharing mechanism for data source strategies. Developers can develop independent data source strategy logic based on business needs, and then publish it to the strategy store for reuse by other application developers or operators.
[0093] Data Source Policy Management Center: A server-side application that centrally manages data source policies. On the one hand, it provides the addition, deletion, modification, query, and enabling and disabling of data source policies. On the other hand, it directly provides bullet-screen-related services to the application server.
[0094] xxContext: A set of related information or results used to provide a decision.
[0095] UGC: User Generated Content, user-created content, here specifically refers to comments or barrages posted by users.
[0096] The diversion strategy is a strategy used to decide the number of barrages obtained from different data source strategies on the premise of determining the final number of barrages required; for example, a typical diversion strategy may include: 1) Manual specification: the operator specifies the proportion or number of different data source strategies according to the actual business situation; 2) Percentage: the percentage calculated based on the total amount that can be provided by different data source strategies; 3) Customization: dynamically generated according to the development logic; In the actual application process, the diversion strategy is mainly used to realize the flexible change requirements of the barrage source at different times and provide fine-grained management means for operators; for example, in the early stage of the host content going online, the amount of data that can be provided by the user barrage strategy is insufficient, then the proportion of the active barrage strategy or the general barrage strategy can be increased. As the user barrage accumulates, the proportion of the strategy is gradually increased; further, similar to the data source strategy, the diversion strategy is also a pluggable submodule in this system; for example, according to different businesses, corresponding custom diversion strategies can be developed and released; of course, based on business needs, a currently enabled diversion strategy can be specified in the management background and related parameters can be configured.
[0097] Secondly, the purpose of the invention of the exemplary embodiment of the present disclosure is explained and illustrated. Specifically, the method for displaying barrage information recorded in the exemplary embodiment of the present disclosure can, on the one hand, solve the problem of the incompatibility between the number of barrages and the host environment; for example, the number of barrages is small and the host content time is long, resulting in sparse barrages and poor effects; for another example, the number of barrages is large and the host content time is short, resulting in barrages blocking a large area of the host content, distracting user attention, and poor experience; on the other hand, it can achieve normalization conversion of heterogeneous data; for example, the data structure of different data sources is different from the barrage data structure required for the final display, and different data sources need to be converted into a specified data format based on a strategy according to a given context; on the other hand, it can be determined based on the data source diversion strategy how each data source provides barrage comments to constitute the total amount of barrage comments ultimately used for display.
[0098] Further, the application scenario of the method for displaying bullet screen information recorded in the exemplary embodiment of the present disclosure is explained and illustrated. Figure 2 As shown, the method for displaying bullet screen information recorded in the exemplary embodiment of the present disclosure can be applied to a scenario including a user terminal 210 and a server 220. The user terminal and the server can be connected to each other in a wired network or a wireless network; at the same time, the user terminal can be used to implement the method for displaying bullet screen information configured on the user terminal side recorded in the exemplary embodiment of the present disclosure, and the server can be used to implement the method for displaying bullet screen information configured on the server side recorded in the exemplary embodiment of the present disclosure.
[0099] Further, refer to Figure 3As shown, the server 220 may include an application server (that is, an application server corresponding to an application client) 301, a data source policy management center 301, and a diversion policy center 302; wherein the application server is respectively communicated with the data source policy management center and the diversion policy center; at the same time, the data source policy management center user stores the data source policy, and the diversion policy center is used to store the diversion policy; and, the application server is used to request the data source policy management center and the diversion policy center for the data source decision result and the diversion decision result, and determine the number of second barrages according to the diversion decision result.
[0100] The following will be combined Figure 2 as well as Figure 3 right Figure 1 The method of displaying the bullet screen information shown in the following is further explained and illustrated. Specifically:
[0101] In step S110, a bullet screen pull request sent by a user terminal is received, and the first bullet screen quantity is calculated according to the bullet screen request context included in the bullet screen pull request.
[0102] In this example embodiment, if the user terminal needs to display the corresponding bullet screen information during the playback of the bullet screen host (such as video or audio), it can send a corresponding bullet screen pull request to the server side; further, after the server receives the bullet screen pull request, it can calculate the first bullet screen quantity according to the bullet screen request context included in the bullet screen pull request. Figure 4 As shown, the following steps may be included:
[0103] Step S410, parse the barrage pull request to obtain the barrage request context; wherein the barrage request context includes one or more of the barrage capacity per unit time of the barrage host, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal.
[0104] Specifically, the barrage request context recorded above may include the barrage capacity per unit time, the host content identifier, and the user identifier, etc.; wherein, the barrage capacity per unit time refers to the number of barrage information that can be accommodated on the barrage host per second, which is actually determined based on the barrage display area area of the barrage host, the barrage scrolling speed, the barrage density, and the font size of the barrage information, etc.; the host content identifier can be used to represent the audio identifier of the audio being played or the video identifier of the video being played, etc., and the user identifier can be used to represent the user ID of the user logged in to the current application, etc.
[0105] Step S420, obtaining the full host content information of the barrage host according to the host content identifier.
[0106] Specifically, the full host content information of the barrage host recorded here may include the total playback time of the barrage host, or the total playback time and the segment playback time of the video segment with a preset content category; that is, the full host content information may include the total playback time of the video and the climax segment length, etc.
[0107] Step S430, calculating the first number of barrages according to the barrage capacity per unit time and the full amount information of the host content; wherein the first number of barrages is the maximum number of barrages that the barrage host can accommodate within the total playback time.
[0108] Specifically, according to the barrage capacity per unit time and the full amount information of the host content, the first barrage quantity is calculated, which can be achieved in the following two ways:
[0109] One is to calculate the first number of barrages according to the barrage capacity per unit time and the total playback time; wherein, calculating the first number of barrages according to the barrage capacity per unit time and the total playback time can be achieved in the following manner: configuring a first overflow ratio for the barrage host, and calculating a first product operation result between the first overflow ratio, the barrage capacity per unit time and the total playback time; determining the first number of barrages according to the first product operation result. That is, the first number of barrages can be calculated by the following formula (1):
[0110] C max =k1ut; Formula (1)
[0111] Among them, C max is the first number of barrages, that is, the maximum number of barrages that the barrage host can accommodate within the total playback time, k1 is the first overflow ratio, u is the barrage capacity per unit time, and t is the total playback time of the barrage host.
[0112] It should be noted that the maximum number of barrages that the first type of barrage host can accommodate within the total playback time recorded here does not take into account the climax playback time of the barrage host. Therefore, in order to further improve the accuracy of the obtained first number of barrages, the climax playback time of the barrage host also needs to be considered. Based on this, another way to calculate the first number of barrages may include: calculating the first number of barrages according to the barrage capacity per unit time, the total playback time and the segment playback time. Among them, the calculation of the first number of barrages according to the barrage capacity per unit time, the total playback time and the segment playback time can be achieved in the following way: configuring a second overflow ratio for the video segment with a preset content category, and configuring a third overflow ratio for other video segments in the barrage host except the video segment with the preset content category; calculating the first number of barrages based on the first overflow ratio, the third overflow ratio, the barrage capacity per unit time, the total playback time and the segment playback time. That is, the first number of barrages can also be calculated by the following formula (2):
[0113] C max =k3*u*t+(k2-k3)ut c ; Formula (2)
[0114] Among them, k2 is the second overflow ratio of the video clip with a preset content category, and the video clip with a preset content category is a climax clip, k3 is the third overflow ratio (i.e., the overflow ratio of other time periods), and tc is the clip playback time (i.e., the climax time period). By increasing the number of bullet comments for the climax clip or setting a separate overflow ratio, the accuracy of the first number of bullet comments obtained when there is a climax clip can be further improved.
[0115] In step S120, the data source decision result corresponding to the barrage request context is matched, and the number of second barrages is determined according to the data source decision result and the number of the first barrages.
[0116] In this example embodiment, first, the data source decision result corresponding to the barrage request context is matched. Specifically, the matching process can be implemented in the following manner: first, the full user information is obtained according to the user identifier included in the barrage request context, and a decision request context is generated according to the full user information and the full host content information of the barrage host; secondly, the data source decision result is matched from the data source policy management center according to the decision request context; wherein the data source decision result includes at least one of the maximum number of sub-policy barrages that can be displayed by each sub-data source policy included in the data source policy management center, the minimum number of sub-policy barrages that each sub-data source policy must display, and the policy priority of each sub-data source policy; the data source policy management center The mind includes a sub-data source of the bullet screen information and a sub-data source strategy corresponding to the sub-data source; wherein the sub-data source includes one or more of the pre-configured bullet screen information corresponding to the host content of the bullet screen host, the preset active bullet screen information associated with the host content, the user-sent bullet screen information associated with the host content, and the user comment information associated with the host content; the sub-data source strategy includes one or more of the preset bullet screen strategy corresponding to the pre-configured bullet screen information, the active bullet screen strategy corresponding to the preset active bullet screen information, the user bullet screen strategy corresponding to the user-sent bullet screen information, and the user comment strategy corresponding to the user comment content.
[0117] The following will explain and illustrate the specific matching process of the data source decision result. Specifically, the application server generates a decision request context based on the full information of the host content and the full information of the user, and then sends the decision request context to the data source policy management center; wherein, the full information of the host content can include the total playback time and the climax clip time, and the full information of the user can include the content required for the barrage display, such as user basic information, user avatar, user nickname and user ID, etc., and this example does not impose special restrictions on this; of course, the decision request context can also include other information that helps the data source strategy to make decisions, such as some information that the business itself needs to be expanded, etc., and this example does not impose special restrictions on this. Further, the data source policy management center calls the registered and enabled data source strategy, makes a decision based on the relevant part of the decision request context, and obtains the data source decision result; wherein, the data source decision result can include the maximum number of barrages that can be supported under the current data source strategy, the minimum number of barrages that must be displayed, and the priority of each barrage information, etc.; then, the data source policy management center integrates the decision results of each data source strategy and feeds them back to the application server.
[0118] It should be noted here that since the data source strategy management center can include preset barrage information, official activity barrage information, user barrage information and user comment information, the data source strategy that needs to be matched and the maximum number of barrages supported under the current data source strategy and the minimum number of barrages that must be displayed can be determined based on the total playback time and climax segment length included in the decision request context, and then the priority of each barrage information can be determined based on the user's full information (for example, barrages created spontaneously by users have higher priority than those sent by others, preset barrages and official activity barrages have higher priority than barrages created spontaneously by users, and so on).
[0119] Secondly, the second number of barrages is determined according to the data source decision result and the first number of barrages. Specifically, the following method can be used: first, the maximum number of sub-strategy barrages that can be displayed by each sub-data source strategy included in the data source decision result is summed to obtain a first summation result; secondly, the minimum number of sub-strategy barrages that must be displayed by each sub-data source strategy included in the data source decision result is summed to obtain a second summation result; finally, the second number of barrages is determined according to the numerical relationship between the first number of barrages and the first summation result and the second summation result.
[0120] In an exemplary embodiment, determining the second number of barrages based on the numerical relationship between the first number of barrages and the first sum operation result and the second sum operation result can be achieved in the following manner: first, performing a difference operation on the first number of barrages and the first sum operation result to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, using the first sum operation result as the second number of barrages; secondly, when it is determined that the first difference operation result is less than or equal to the preset threshold, performing a difference operation on the first number of barrages and the second sum operation result to obtain a second difference operation result; then, when it is determined that the second difference operation result is greater than the preset threshold, performing a sum operation on the second sum operation result and the second difference operation result to obtain a third sum operation result, and determining the second number of barrages based on the third sum operation result; finally, when it is determined that the second difference operation result is less than or equal to the preset threshold, using the first number of barrages as the second number of barrages.
[0121] The specific determination process of the second number of barrages will be explained and illustrated below. Specifically, after the application server receives the decision result of the data source, it can determine the second number of barrages according to the decision result of the data source and the number of the first barrage. Among them, the application server determines the number of barrages to be returned in combination with the maximum number of barrages that can be accommodated (the first number of barrages) and the decision results of each data source strategy (data source decision result), and discusses the following situations: One situation is: when the maximum number of barrages that can be accommodated (the first number of barrages) is less than the sum of the minimum number of barrages that must be displayed in the decision results of each data source strategy, the application server requests barrage data in turn according to the priority of each data source strategy, and returns it to the client after reaching the maximum number of barrages that can be accommodated; another situation is: when the maximum number of barrages that can be accommodated (the first number of barrages) is greater than the sum of the maximum number of barrages that can be supported in the decision results of each data source strategy, the application server directly requests barrage data from each data source strategy and returns it to the client; the third situation is: the application server prioritizes retaining the sum of the minimum number of barrages that must be displayed as required by the decision results of each data source strategy, and the remaining barrages are allocated and requested based on the diversion strategy. Among them, suppose that the maximum number of bullet comments supported under the i-th data source strategy is i max , the minimum number of bullet comments that must be displayed is i min , priority is i p , the final number of bullet comments is C final , then the specific description can be shown as the following formula (3):
[0122]
[0123] In step S130, the barrage information to be displayed corresponding to the second barrage number is obtained, and the barrage information to be displayed is fed back to the user terminal where the barrage host is located for display.
[0124] In an exemplary embodiment of the present disclosure, first, the barrage information to be displayed corresponding to the second barrage number is obtained. Specifically, the specific process of obtaining the barrage information to be displayed can be implemented in the following two ways:
[0125] Method 1: When the second number of barrages is the result of the first sum operation, request the first barrage information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy from the data source strategy center, and generate the barrage information to be displayed based on the first barrage information.
[0126] In an example embodiment, requesting the first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy from the data source strategy center can be achieved as follows: first, obtaining the original bullet screen information under each sub-data source strategy in the data source strategy center; wherein the original bullet screen information includes one or more of pre-configured bullet screen information, preset activity bullet screen information, and user-sent bullet screen information; second, comparing the total amount of information in the original bullet screen information and the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, and when it is determined that the total amount of information in the original bullet screen information is less than the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, performing data conversion on the user comment information in the data source strategy center to obtain newly added bullet screen information; then, generating the first bullet screen information based on the newly added bullet screen information and the original bullet screen information, and obtaining the first bullet screen information from the data source strategy center.
[0127] In an example embodiment, data conversion is performed on the user comment information in the data source policy center to obtain newly added barrage information, which can be achieved in the following manner: the user comment information in the data source policy center and the host content are input into a preset neural network model to obtain the time node of the user comment information in the host content; wherein the preset neural network model includes one or more of a recurrent neural network model, a convolutional neural network model, a deep neural network model and a decision tree model; and newly added barrage information is generated according to the time node and the user comment information.
[0128] The following will explain and illustrate the specific process of obtaining the bullet screen information to be displayed through the first method. Specifically, the second bullet screen quantity is the result of the first sum operation (that is, ), the first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy can be directly requested from the data source strategy center, and then the barrage information to be displayed is generated according to the first bullet screen information. It should be noted here that if user comment information needs to be converted into new barrage information, it can be achieved through the above-mentioned neural network model; through this method, the normalization conversion of heterogeneous data is realized, which solves the problem in the prior art that the data structure of different data sources cannot be displayed due to the difference between the data structure of different data sources and the barrage data structure required for the final display.
[0129] Method 2: When the second number of barrages is the result of the third sum operation, generate a diversion request context according to the second difference operation result and the data source decision result; obtain the number of barrages required to be provided by each sub-data source strategy from the diversion strategy center according to the diversion request context, and determine the target number of barrages required to be provided by each sub-data source strategy according to the minimum number of sub-strategies that must be displayed by each sub-data source strategy and the number of barrages required to be provided by each sub-data source strategy; request the second barrage information corresponding to the target number of barrages required to be provided by each sub-data source strategy from each sub-data source strategy of the data source strategy center, and generate the barrage information to be displayed according to the second barrage information.
[0130] In an example embodiment, the number of bullet screens required to be provided by each sub-data source strategy is obtained from a diversion strategy center, including: calculating the diversion ratio of each sub-data source strategy according to the diversion request context by the diversion strategy center; calculating the number of bullet screens required to be provided by each sub-data source strategy according to the diversion ratio, the first number of bullet screens, and the minimum number of sub-strategies that must be displayed by each sub-data source strategy.
[0131] Below, the specific acquisition process of the barrage information to be displayed through method two will be explained and illustrated. Specifically, the application server generates a diversion request context based on the second difference calculation result (that is, the number of barrages that need to be diverted) and the data source decision result, and sends the diversion request context to the diversion strategy center; wherein the diversion request context may also include information that can be used by other diversion strategies (for example, custom diversion strategies applicable to business-related), etc., and this example does not impose special restrictions on this. Furthermore, when the diversion strategy center receives the diversion request context, it can calculate according to the currently enabled diversion strategy, obtain the number of barrages required to be provided by each data source strategy, and feed it back to the application server. Among them, the number of barrages selected from the i-th data source strategy can be shown in the following formula (4):
[0132]
[0133] Among them, pi is the diversion ratio of the ith data source strategy calculated by the diversion strategy. In the specific application process, if C(i) is a decimal, the decimal is rounded down. Further, the application server directly requests the barrage data from the data source strategy management center based on the number of barrages selected from the ith data source strategy. Each data source strategy provides a specified number of barrages according to its own defined (filtering, sorting) logic.
[0134] Method three: S10, when the number of the first barrage is the same as the number of the second barrage, sort each sub-data source strategy according to the policy priority of each sub-data source strategy included in the decision result to obtain a policy sorting result; wherein the policy sorting result includes the first sub-data source strategy, ..., the Nth sub-data source strategy, and the first policy priority, ..., the Nth policy priority corresponding to the first sub-data source strategy, ..., the Nth sub-data source strategy decreases in sequence; S20, compare the first sub-strategy minimum number of barrages and the first number of barrages of the first sub-data source strategy, and when it is determined that the first sub-strategy minimum number of barrages is greater than or equal to the first number of barrages, obtain the third barrage information corresponding to the first number of barrages from the first sub-data source strategy, without the need to obtain the third barrage information from other sub-data source strategies except the first sub-data source strategy; S30, when it is determined that the first sub-strategy minimum number of barrages is less than the first number of barrages, obtain the third barrage information corresponding to the first sub-strategy from the first sub-data source strategy. The third bullet screen information corresponding to the minimum number of bullet screens; S40, performing a difference operation on the first number of bullet screens and the minimum number of bullet screens of the first sub-strategy to obtain a third difference operation result, and comparing the third difference operation result with the second sub-strategy minimum number of bullet screens possessed by the second sub-data source strategy; S50, when it is determined that the minimum number of bullet screens of the second sub-strategy is greater than or equal to the third difference operation result, obtaining the third bullet screen information corresponding to the third difference operation result from the second sub-data source strategy, without the need to obtain the third bullet screen information from other sub-data source strategies except the first sub-data source strategy and the second sub-data source strategy; S60, when it is determined that the minimum number of bullet screens of the second sub-strategy is less than the third difference operation result, obtaining the third bullet screen information corresponding to the minimum number of bullet screens of the second sub-strategy from the second sub-data source strategy; S70, repeating steps S40-S60 until the number of the third bullet screen information reaches the first number of bullet screens, and generating the barrage information to be displayed according to the third bullet screen information.
[0135] That is, when When the decision results provided by each data source strategy are given according to the priority i p After sorting, the number of bullet comments selected from the i-th data source strategy can be determined according to the following formula (5):
[0136]
[0137] It should be noted that when i=1, When C(i) is max , that is, from i min Select C according to priority maxIt should be further explained here that, in actual application, the first situation listed above is almost impossible to occur, and the second situation may occur in the early stage of the launch of the application or the corresponding barrage host or when the barrage host is unpopular content; however, in most cases, the number of barrages needs to be regulated through diversion strategies.
[0138] Further, after obtaining the bullet screen information to be displayed, the bullet screen information to be displayed can be fed back to the user terminal where the bullet screen host is located for display; the display result obtained can refer to Figure 5-Figure 8 As shown; among them, Figure 5 (Too much barrage information) and Figure 7 (Too little bullet screen information) is an example of a display interface obtained by directly displaying bullet screen information using the method described in the prior art; Figure 6 (appropriate amount of barrage information) and Figure 8 (Appropriate amount of barrage information) is an example diagram of the display interface obtained by using the method for displaying barrage information recorded in this example embodiment; at the same time, based on the example diagram of the obtained display interface, it can be known that the method for displaying barrage information recorded in the example embodiment of the present disclosure can avoid the problem of poor user experience caused by too many or too few barrages.
[0139] The exemplary embodiment of the present disclosure also provides another method for displaying bullet screen information, which can be configured on the user terminal side. Fig. 9 As shown, the method for displaying the bullet screen information may include the following steps:
[0140] Step S910, obtaining the environment information and the barrage display setting information of the barrage host, and calculating the barrage capacity per unit time of the barrage host according to the environment information and the barrage display setting information; wherein the environment information includes the display width and display height of the display environment, and / or the device resolution of the user terminal; the barrage display setting information includes one or more of the font size when displaying the barrage information, the scrolling rate of the barrage information, and the density of the barrage;
[0141] Step S920, generating a barrage request context according to the barrage capacity per unit time, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal, and generating a barrage pull request according to the barrage request context;
[0142] Step S930, sending the bullet screen pull request to the server side, and receiving the bullet screen information to be displayed generated by the server side according to the bullet screen capacity per unit time, the host content identifier, and the user identifier included in the bullet screen pull request;
[0143] Step S940, displaying the bullet screen information to be displayed in the display environment of the bullet screen host.
[0144] In the following, step S910 to step S940 will be explained and illustrated. Specifically, the client application set on the user terminal side can calculate the barrage capacity per unit time through an algorithm based on the barrage host environment information (including width, height, display resolution, etc., which are derived from the interactive interface and the user terminal) and the barrage display settings (including font f, display area S, scrolling speed v, barrage density d, etc., which are derived from the default settings and user preference settings); specifically, the algorithm is based on the plane geometry theory, and the formula can be shown as follows (6):
[0145]
[0146] Among them, u is the barrage capacity per unit time, in units of bars per second, and k is the proportional coefficient. The client sends a barrage pull request. When the application server receives the barrage pull request, it can feedback the corresponding barrage information to be displayed. When the application client receives the barrage information to be displayed, it can display the barrage information to be displayed in the display environment of the barrage host. Fig. 9 In the method for displaying barrage information shown, on the one hand, since the number of barrages can be determined according to the barrage request context and the data source decision result, the barrage information to be displayed can be fed back to the user terminal in response and displayed, thereby avoiding the problem that the barrage display area in the user terminal is small and the barrage amount is large, resulting in dense arrangement, which is not conducive to reading, and the problem that the host playback time is short and the barrage data amount is large, causing the user's attention to be distracted and unable to take into account both the content and the barrage at the same time; on the other hand, it also solves the problem of being unable to dynamically control the barrage information.
[0147] The following will be combined Fig.10 The method for displaying bullet screen information in the exemplary embodiment of the present disclosure is further explained and illustrated. Fig.10 As shown, the method for displaying the bullet screen information may include the following steps:
[0148] Step S1001, the application client calculates the bullet screen capacity per unit time, and sends a bullet screen pull request to the application server;
[0149] Step S1002, the application server determines the maximum number of bullet screens that can be accommodated (the first number of bullet screens) according to the bullet screen request context included in the bullet screen pull request;
[0150] Step S1003, the application server sends a decision request context to the data source policy center;
[0151] Step S1004, the data source policy center feeds back the data source decision result to the application server;
[0152] Step S1005, the application server determines the number of second bullet screens according to the result of the data source and the number of first bullet screens;
[0153] Step S1006, the application server sends the traffic diversion request context to the traffic diversion strategy center;
[0154] Step S1007, the traffic diversion strategy center feeds back the number of bullet comments required to be provided by each data source strategy to the application server;
[0155] Step S1008, the application server requests the data source policy center for a list of bullet comments under each policy;
[0156] Step S1009, the data source policy center feeds back the bullet chat list to the application server;
[0157] Step S1010: the application server feeds back the bullet screen list to the application client and displays it.
[0158] So far, the method for displaying the barrage information recorded in the example embodiments of the present disclosure has been fully realized. Based on the above-mentioned recorded content, it can be known that the method for displaying the barrage information recorded in the example embodiments of the present disclosure, on the one hand, can solve the problem of poor barrage display effect caused by the incompatibility between the number of user-created content and the barrage host; at the same time, it can also enrich the source of barrage information, improve the diversity of barrage content, and different business content can use barrage to improve exposure and interaction; on the other hand, it provides a more flexible barrage generation method, which can effectively improve the control granularity of barrage information (that is, the display of barrage information can be controlled from a finer level), and at the same time, it can also aggregate multi-channel contextual information and dynamically calculate the number of barrages; on the other hand, it uses pluggable data source strategies to enrich the diversity of barrage display content; further, the data source strategy of barrage content, the centralized management, independent development, and shared reuse of diversion strategies, and different business content uses barrage to improve exposure and interaction.
[0159] Exemplary Devices
[0160] After introducing the method for displaying barrage information according to the exemplary embodiment of the present disclosure, Fig.11 The display device of the bullet screen information according to the exemplary embodiment of the present disclosure is explained and described. Specifically, the display device of the bullet screen information can be configured on the server side. Fig.11 As shown, the display device of the barrage information may include a first barrage number calculation module 1110, a second barrage number determination module 1120, and a barrage information acquisition module 1130.
[0161] Take module 1130. Among them:
[0162] The first bullet screen number calculation module 1110 may be configured to receive a bullet screen pull request sent by a user terminal, and calculate the first bullet screen number according to the bullet screen request context included in the bullet screen pull request;
[0163] The second barrage quantity determination module 1120 may be used to match the data source decision result corresponding to the barrage request context, and determine the second barrage quantity according to the data source decision result and the first barrage quantity;
[0164] The barrage information acquisition module 1130 can be used to obtain the barrage information to be displayed corresponding to the second barrage number, and feed back the barrage information to be displayed to the user terminal where the barrage host is located for display.
[0165] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated according to the barrage request context included in the barrage pull request, including: parsing the barrage pull request to obtain the barrage request context; wherein the barrage request context includes one or more of the barrage capacity per unit time of the barrage host, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal; obtaining the full amount of host content information of the barrage host according to the host content identifier; calculating the first number of barrages according to the barrage capacity per unit time and the full amount of host content information; wherein the first number of barrages is the maximum number of barrages that the barrage host can accommodate within the total playback time.
[0166] In an example embodiment of the present disclosure, the full information of the host content includes the total playback time of the barrage host, or the total playback time and the segment playback time of a video segment with a preset content category; wherein, the first barrage quantity is calculated based on the barrage capacity per unit time and the full information of the host content, including: calculating the first barrage quantity based on the barrage capacity per unit time and the total playback time; or calculating the first barrage quantity based on the barrage capacity per unit time, the total playback time and the segment playback time.
[0167] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated based on the barrage capacity per unit time and the total playback time, including: configuring a first overflow ratio for the barrage host, and calculating a first product operation result between the first overflow ratio, the barrage capacity per unit time and the total playback time; determining the first number of barrages based on the first product operation result.
[0168] In an exemplary embodiment of the present disclosure, the first number of barrages is calculated based on the barrage capacity per unit time, the total playback time, and the segment playback time, including: configuring a second overflow ratio for the video segment with a preset content category, and configuring a third overflow ratio for other video segments in the barrage host except for the video segment with the preset content category; calculating the first number of barrages based on the first overflow ratio, the third overflow ratio, the barrage capacity per unit time, the total playback time, and the segment playback time.
[0169] In an exemplary embodiment of the present disclosure, matching the data source decision result corresponding to the barrage request context includes: obtaining full user information according to the user identifier included in the barrage request context, and generating a decision request context according to the full user information and the full host content information of the barrage host; matching the data source decision result from a data source policy management center according to the decision request context; wherein the data source decision result includes at least one of the maximum number of sub-policy barrages that can be displayed by each sub-data source policy included in the data source policy management center, the minimum number of sub-policy barrages that each sub-data source policy must display, and the policy priority of each sub-data source policy.
[0170] In an exemplary embodiment of the present disclosure, the data source policy management center includes a sub-data source of the bullet screen information and a sub-data source policy corresponding to the sub-data source; wherein the sub-data source includes one or more of pre-configured bullet screen information corresponding to the host content of the bullet screen host, preset active bullet screen information associated with the host content, user-sent bullet screen information associated with the host content, and user comment information associated with the host content; the sub-data source policy includes one or more of a preset bullet screen policy corresponding to the pre-configured bullet screen information, an active bullet screen policy corresponding to the preset active bullet screen information, a user bullet screen policy corresponding to the user-sent bullet screen information, and a user comment policy corresponding to the user comment content.
[0171] In an exemplary embodiment of the present disclosure, the second number of barrages is determined based on the data source decision result and the first number of barrages, including: summing the maximum number of sub-strategy barrages that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first sum operation result; summing the minimum number of sub-strategy barrages that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; determining the second number of barrages based on the numerical relationship between the first number of barrages and the first sum operation result and the second sum operation result.
[0172] In an exemplary embodiment of the present disclosure, the second barrage number is determined according to the numerical relationship between the first barrage number and the first sum operation result and the second sum operation result, including: performing a difference operation on the first barrage number and the first sum operation result to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, using the first sum operation result as the second barrage number; when it is determined that the first difference operation result is less than or equal to the preset threshold, performing a difference operation on the first barrage number and the second sum operation result to obtain a second difference operation result; when it is determined that the second difference operation result is greater than the preset threshold, summing the second sum operation result and the second difference operation result to obtain a third sum operation result, and determining the second barrage number according to the third sum operation result; when it is determined that the second difference operation result is less than or equal to the preset threshold, using the first barrage number as the second barrage number.
[0173] In an example embodiment of the present disclosure, the barrage information to be displayed corresponding to the second number of barrages is obtained, including: when the second number of barrages is the result of the first sum operation, requesting the first barrage information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy from the data source strategy center, and generating the barrage information to be displayed based on the first barrage information.
[0174] In an example embodiment of the present disclosure, first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy is requested from a data source strategy center, including: obtaining original bullet screen information under each sub-data source strategy in the data source strategy center; wherein the original bullet screen information includes one or more of pre-configured bullet screen information, preset activity bullet screen information, and user-sent bullet screen information; comparing the total amount of information in the original bullet screen information and the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, and when it is determined that the total amount of information in the original bullet screen information is less than the total amount of the maximum number of sub-strategies that can be displayed by each sub-data source strategy, performing data conversion on the user comment information in the data source strategy center to obtain newly added bullet screen information; generating the first bullet screen information according to the newly added bullet screen information and the original bullet screen information, and obtaining the first bullet screen information from the data source strategy center.
[0175] In an example embodiment of the present disclosure, data conversion is performed on the user comment information in the data source policy center to obtain newly added barrage information, including: inputting the user comment information in the data source policy center and the host content into a preset neural network model to obtain the time node of the user comment information in the host content; wherein the preset neural network model includes one or more of a recurrent neural network model, a convolutional neural network model, a deep neural network model and a decision tree model; and generating newly added barrage information according to the time node and the user comment information.
[0176] In an exemplary embodiment of the present disclosure, obtaining the to-be-displayed barrage information corresponding to the second number of barrages also includes: when the second number of barrages is the result of the third sum operation, generating a diversion request context according to the second difference operation result and the data source decision result; obtaining the number of barrages required to be provided by each sub-data source strategy from the diversion strategy center according to the diversion request context, and determining the target number of barrages required to be provided by each sub-data source strategy according to the minimum number of sub-strategies that must be displayed by each sub-data source strategy and the number of barrages required to be provided by each sub-data source strategy; requesting the second barrage information corresponding to the target number of barrages required to be provided by each sub-data source strategy from each sub-data source strategy of the data source strategy center, and generating the to-be-displayed barrage information according to the second barrage information.
[0177] In an example embodiment of the present disclosure, the number of bullet screens required to be provided by each sub-data source strategy is obtained from a diversion strategy center, including: calculating the diversion ratio of each sub-data source strategy according to the diversion request context by the diversion strategy center; calculating the number of bullet screens required to be provided by each sub-data source strategy according to the diversion ratio, the first number of bullet screens, and the minimum number of sub-strategies that must be displayed by each sub-data source strategy.
[0178] In an exemplary embodiment of the present disclosure, obtaining the to-be-displayed barrage information corresponding to the second barrage number also includes: S10, when the first barrage number is the same as the second barrage number, sorting each sub-data source strategy according to the strategy priority of each sub-data source strategy included in the decision result to obtain a strategy sorting result; wherein the strategy sorting result includes the first sub-data source strategy, ..., the Nth sub-data source strategy, and the first strategy priority, ..., the Nth strategy priority corresponding to the first sub-data source strategy, ..., the Nth sub-data source strategy decreases in sequence; S20, comparing the first sub-strategy minimum number of barrages and the first barrage number of the first sub-data source strategy, and when it is determined that the first sub-strategy minimum number of barrages is greater than or equal to the first barrage number, obtaining the third barrage information corresponding to the first barrage number from the first sub-data source strategy, without the need to obtain the third barrage information from other sub-data source strategies except the first sub-data source strategy; S30, when it is determined that the first sub-strategy minimum number of barrages is less than the first barrage number, obtaining the third barrage information from the sub-data source strategy other than the first sub-data source strategy; The third bullet screen information corresponding to the minimum number of bullet screens of the first sub-strategy is obtained from the first sub-data source strategy; S40, a difference operation is performed on the first number of bullet screens and the minimum number of bullet screens of the first sub-strategy to obtain a third difference operation result, and the third difference operation result is compared with the second sub-strategy minimum number of bullet screens possessed by the second sub-data source strategy; S50, when it is determined that the minimum number of bullet screens of the second sub-strategy is greater than or equal to the third difference operation result, the third bullet screen information corresponding to the third difference operation result is obtained from the second sub-data source strategy, without the need to obtain the third bullet screen information from other sub-data source strategies except the first sub-data source strategy and the second sub-data source strategy; S60, when it is determined that the minimum number of bullet screens of the second sub-strategy is less than the third difference operation result, the third bullet screen information corresponding to the minimum number of bullet screens of the second sub-strategy is obtained from the second sub-data source strategy; S70, repeat steps S40-S60 until the number of the third bullet screen information reaches the first number of bullet screens, and generate the barrage information to be displayed according to the third bullet screen information.
[0179] The exemplary embodiment of the present disclosure also provides another device for displaying bullet screen information, which is configured on the user terminal side. Fig.12 As shown, the device for displaying bullet screen information may include a bullet screen capacity calculation module 1210 per unit time, a bullet screen pull request generation module 1220, a bullet screen information receiving module 1230, and a bullet screen information display module 1240. Among them:
[0180] The unit time barrage capacity calculation module 1210 can be used to obtain the environment information and barrage display setting information of the barrage host, and calculate the unit time barrage capacity of the barrage host according to the environment information and barrage display setting information;
[0181] The barrage pull request generation module 1220 may be used to generate a barrage request context according to the barrage capacity per unit time, the host content identifier of the barrage host, and the user identifier corresponding to the user terminal, and generate a barrage pull request according to the barrage request context;
[0182] The bullet screen information receiving module 1230 may be used to send the bullet screen pull request to the server side, and receive the bullet screen information to be displayed generated by the server side according to the bullet screen capacity per unit time, the host content identifier, and the user identifier included in the bullet screen pull request;
[0183] The bullet screen information display module 1240 may be used to display the bullet screen information to be displayed in the display environment of the bullet screen host.
[0184] In an exemplary embodiment of the present disclosure, the environmental information includes the display width and display height of the display environment, and / or the device resolution of the user terminal; the barrage display setting information includes one or more of the font size when displaying the barrage information, the scrolling rate of the barrage information, and the barrage density.
[0185] Exemplary Storage Media
[0186] After introducing the method for displaying barrage information and the device for displaying barrage information according to the exemplary embodiment of the present disclosure, next, referring to Fig.13 A storage medium according to an exemplary embodiment of the present disclosure is described.
[0187] refer to Fig.13 As shown, a program product 1300 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto.
[0188] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0189] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Readable signal media may also be any readable medium other than a readable storage medium.
[0190] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0191] Exemplary Electronic Devices
[0192] After introducing the storage medium of the exemplary embodiment of the present disclosure, next, reference is made to Fig.14 An electronic device according to an exemplary embodiment of the present disclosure is described.
[0193] Fig.14 The electronic device 1400 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0194] like Fig.14 As shown, the electronic device 1400 is in the form of a general computing device. The components of the electronic device 1400 may include, but are not limited to: the at least one processing unit 1410, the at least one storage unit 1420, a bus 1430 connecting different system components (including the storage unit 1420 and the processing unit 1410), and a display unit 1440.
[0195] The storage unit 1420 stores program codes, which can be executed by the processing unit 1410, so that the processing unit 1410 performs the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 1410 can perform the following steps: Figure 1 Steps S110-S130 shown in FIG. Fig. 9 Steps S910 to S940 shown in .
[0196] The storage unit 1420 may include a volatile storage unit, such as a random access storage unit (RAM) 14201 and / or a cache storage unit 14202 , and may further include a read-only storage unit (ROM) 14203 .
[0197] The storage unit 1420 may also include a program / utility 14204 having a set (at least one) of program modules 14205, such program modules 14205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0198] The bus 1430 may include a data bus, an address bus, and a control bus.
[0199] The electronic device 1400 may also communicate with one or more external devices 1500 (e.g., keyboards, pointing devices, Bluetooth devices, etc.) via an input / output (I / O) interface 1450. Furthermore, the electronic device 1400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1460. As shown, the network adapter 1460 communicates with other modules of the electronic device 1400 via a bus 1430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0200] It should be noted that although several modules or submodules of the pop-up window processing device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be concretized in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules for concretization.
[0201] It should be noted that, although several units / modules or subunits / modules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0202] In addition, although the operations of the disclosed method are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0203] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.
Claims
1. A method for displaying bullet screen information, configured on a server side, the method for displaying bullet screen information comprising: Receiving a bullet screen pull request sent by a user terminal, and calculating a first bullet screen quantity according to a bullet screen request context included in the bullet screen pull request; Matching the data source decision result corresponding to the bullet screen request context, and summing the maximum number of sub-strategies that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first summation result; A sum operation is performed on the minimum number of sub-strategy bullet comments that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; a difference operation is performed on the first number of bullet comments and the first sum operation result to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, the first sum operation result is used as the second number of bullet comments; When it is determined that the first difference operation result is less than or equal to the preset threshold, performing a difference operation on the first bullet comment number and the second sum operation result to obtain a second difference operation result; When it is determined that the second difference operation result is greater than the preset threshold, performing a sum operation on the second sum operation result and the second difference operation result to obtain a third sum operation result, and determining the second bullet screen quantity according to the third sum operation result; When it is determined that the second difference operation result is less than or equal to the preset threshold, taking the first bullet screen number as the second bullet screen number; Obtain the to-be-displayed barrage information corresponding to the second barrage quantity, and feed back the to-be-displayed barrage information to the user terminal where the barrage host is located for display.
2. The method for displaying barrage information according to claim 1, wherein: Calculating the first number of bullet comments according to the bullet comment request context included in the bullet comment pull request includes: Parsing the bullet screen pull request to obtain the bullet screen request context; wherein the bullet screen request context includes the bullet screen capacity per unit time of the bullet screen host, the host content identifier of the bullet screen host, and the user identifier corresponding to the user terminal; Acquire the host content full information of the barrage host according to the host content identifier; wherein the host content full information includes the total playback time of the barrage host, or the total playback time and the segment playback time of the video segment with a preset content category; The first number of barrages is calculated according to the barrage capacity per unit time and the full amount information of the host content; wherein the first number of barrages is the maximum number of barrages that the barrage host can accommodate within the total playback time.
3. The method for displaying barrage information according to claim 2, wherein the first barrage quantity is calculated according to the barrage capacity per unit time and the full amount information of the host content, comprising: Calculate the first number of barrages according to the barrage capacity per unit time and the total playback time; or The first barrage quantity is calculated according to the barrage capacity per unit time, the total playback time and the segment playback time.
4. The method for displaying barrage information according to claim 3, wherein: Calculating the first number of barrages according to the barrage capacity per unit time and the total playback duration includes: Configuring a first overflow ratio for the barrage host, and calculating a first product operation result between the first overflow ratio, the barrage capacity per unit time, and the total playback time; The first bullet screen quantity is determined according to the first product operation result.
5. The method for displaying barrage information according to claim 4, wherein: Calculating the first number of barrages according to the barrage capacity per unit time, the total playback duration, and the segment playback duration includes: Configuring a second overflow ratio for the video clip with a preset content category, and configuring a third overflow ratio for other video clips in the barrage host except the video clip with the preset content category; The first barrage quantity is calculated based on the first overflow ratio, the third overflow ratio, the barrage capacity per unit time, the total playback time, and the segment playback time.
6. The method for displaying barrage information according to claim 2, wherein: The data source decision result corresponding to the bullet comment request context is matched, including: Obtaining full user information according to the user identifier included in the bullet screen request context, and generating a decision request context according to the full user information and the full host content information of the bullet screen host; wherein the full user information includes at least one of basic user information, user avatar, user nickname, and user identifier; The data source decision result is matched from the data source policy management center according to the decision request context; wherein the data source decision result includes at least one of the maximum number of sub-policy barrages that can be displayed by each sub-data source policy included in the data source policy management center, the minimum number of sub-policy barrages that must be displayed by each sub-data source policy, and the policy priority of each sub-data source policy.
7. The method for displaying bullet screen information according to claim 6, wherein: The data source strategy management center includes the sub-data source of bullet screen information and the sub-data source strategy corresponding to the sub-data source; The sub-data source includes one or more of pre-configured barrage information corresponding to the host content of the barrage host, preset active barrage information associated with the host content, user-sent barrage information associated with the host content, and user comment information associated with the host content; The sub-data source strategy includes one or more of a preset barrage strategy corresponding to the pre-configured barrage information, an active barrage strategy corresponding to the preset active barrage information, a user barrage strategy corresponding to the barrage information sent by the user, and a user comment strategy corresponding to the user comment content.
8. The method for displaying barrage information according to claim 1, wherein: Obtaining the barrage information to be displayed corresponding to the second barrage quantity, including: When the second number of bullet screens is the result of the first sum operation, the first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy is requested from the data source strategy center, and the bullet screen information to be displayed is generated according to the first bullet screen information.
9. The method for displaying barrage information according to claim 8, wherein: Request the first bullet screen information corresponding to the maximum number of sub-strategy bullet screens that can be displayed by each sub-data source policy from the data source policy center, including: Obtaining original bullet chat information under each sub-data source strategy in the data source strategy center; wherein the original bullet chat information includes one or more of pre-configured bullet chat information, preset activity bullet chat information, and user-sent bullet chat information; Compare the total amount of information of the original barrage information and the total amount of the maximum number of barrages of sub-strategies that can be displayed by each sub-data source strategy, and when it is determined that the total amount of information of the original barrage information is less than the total amount of the maximum number of barrages of sub-strategies that can be displayed by each sub-data source strategy, perform data conversion on the user comment information in the data source strategy center to obtain newly added barrage information; The first bullet screen information is generated according to the newly added bullet screen information and the original bullet screen information, and the first bullet screen information is obtained from the data source strategy center.
10. The method for displaying barrage information according to claim 1, wherein: The user comment information in the data source strategy center is converted to obtain the newly added bullet comment information, including: Inputting the user comment information and the host content in the data source strategy center into a preset neural network model to obtain the time nodes of the user comment information in the host content; wherein the preset neural network model includes one or more of a recurrent neural network model, a convolutional neural network model, a deep neural network model and a decision tree model; New barrage information is generated according to the time node and the user comment information.
11. The method for displaying barrage information according to claim 1, wherein: The method further includes obtaining barrage information to be displayed corresponding to the number of the second barrages, and further comprising: When the second bullet comments quantity is the third sum operation result, generating a diversion request context according to the second difference operation result and the data source decision result; According to the diversion request context, the number of bullet screens required to be provided by each sub-data source strategy is obtained from the diversion strategy center, and the target number of bullet screens required to be provided by each sub-data source strategy is determined according to the minimum number of sub-strategy bullet screens that must be displayed by each sub-data source strategy and the number of bullet screens required to be provided by each sub-data source strategy; From each sub-data source strategy of the data source strategy center, request the second bullet screen information corresponding to the target number of bullet screens required to be provided by each sub-data source strategy, and generate the to-be-displayed bullet screen information according to the second bullet screen information.
12. The method for displaying bullet screen information according to claim 11, wherein: Obtain the number of bullet screens required by each sub-data source strategy from the diversion strategy center, including: The diversion strategy center calculates the diversion ratio of each sub-data source strategy according to the diversion request context; The number of bullet screens required to be provided by each sub-data source strategy is calculated according to the diversion ratio, the number of first bullet screens, and the minimum number of sub-strategy bullet screens that must be displayed by each sub-data source strategy.
13. The method for displaying bullet screen information according to claim 1, wherein: The method further includes obtaining barrage information to be displayed corresponding to the number of the second barrages, and further comprising: S10, when the number of the first bullet screens is the same as the number of the second bullet screens, sorting the sub-data source strategies according to the strategy priorities of the sub-data source strategies included in the decision result to obtain a strategy sorting result; wherein the strategy sorting result includes the first sub-data source strategy, the second sub-data source strategy, ..., the Nth sub-data source strategy, and the first strategy priority, the second strategy priority, ..., the Nth strategy priority corresponding to the first sub-data source strategy, the second sub-data source strategy, ..., the Nth sub-data source strategy are in descending order; S20, comparing the first sub-strategy minimum number of barrages and the first number of barrages of the first sub-data source strategy, and when it is determined that the first sub-strategy minimum number of barrages is greater than or equal to the first number of barrages, obtaining third barrage information corresponding to the first number of barrages from the first sub-data source strategy, without the need to obtain the third barrage information from other sub-data source strategies except the first sub-data source strategy; S30, when it is determined that the minimum number of bullet screens in the first sub-strategy is less than the first number of bullet screens, obtaining third bullet screen information corresponding to the minimum number of bullet screens in the first sub-strategy from the first sub-data source strategy; S40, performing a difference operation on the first number of bullet screens and the minimum number of bullet screens of the first sub-strategy to obtain a third difference operation result, and comparing the third difference operation result with the minimum number of bullet screens of the second sub-strategy of the second sub-data source strategy; S50, when it is determined that the minimum number of bullet screens of the second sub-strategy is greater than or equal to the third difference calculation result, the third bullet screen information corresponding to the third difference calculation result is obtained from the second sub-data source strategy, without the need to obtain the third bullet screen information from other sub-data source strategies except the first sub-data source strategy and the second sub-data source strategy; S60, when it is determined that the minimum number of bullet screens of the second sub-strategy is less than the third difference calculation result, obtaining third bullet screen information corresponding to the minimum number of bullet screens of the second sub-strategy from the second sub-data source strategy; S70, repeating steps S40-S60 until the number of the third bullet screen information reaches the number of the first bullet screen information, and generating the to-be-displayed bullet screen information according to the third bullet screen information.
14. A method for displaying bullet screen information, configured on a user terminal side, the method for displaying bullet screen information comprising: Obtaining environmental information and barrage display setting information of a barrage host, and calculating the barrage capacity per unit time of the barrage host according to the environmental information and the barrage display setting information; Generate a barrage request context according to the barrage capacity per unit time, a host content identifier of the barrage host, and a user identifier corresponding to the user terminal, and generate a barrage pull request according to the barrage request context; Sending the bullet screen pull request to the server side, and receiving the bullet screen information to be displayed generated by the server side according to the bullet screen capacity per unit time, the host content identifier and the user identifier included in the bullet screen pull request; The barrage information to be displayed is displayed in the display environment of the barrage host; wherein the second number of barrages of the barrage information to be displayed is obtained in the following manner: matching the data source decision result corresponding to the barrage request context, and summing the maximum number of sub-strategy barrages that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first sum operation result; summing the minimum number of sub-strategy barrages that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; performing a difference operation on the first number of barrages obtained according to the barrage request context and the first sum operation result to obtain To the first difference operation result, and when it is determined that the first difference operation result is greater than the preset threshold, the first sum operation result is used as the second barrage number; when it is determined that the first difference operation result is less than or equal to the preset threshold, the first barrage number and the second sum operation result are subtracted to obtain the second difference operation result; when it is determined that the second difference operation result is greater than the preset threshold, the second sum operation result and the second difference operation result are summed to obtain the third sum operation result, and the second barrage number is determined according to the third sum operation result; when it is determined that the second difference operation result is less than or equal to the preset threshold, the first barrage number is used as the second barrage number.
15. The method for displaying bullet screen information according to claim 14, wherein: The environment information includes the display width and display height of the display environment, and / or the device resolution of the user terminal; The barrage display setting information includes one or more of a font size when displaying the barrage information, a scrolling rate of the barrage information, and a density of the barrage information.
16. A display device for bullet screen information, configured on a server side, the display device for bullet screen information comprising: A first barrage quantity calculation module, used to receive a barrage pull request sent by a user terminal, and calculate the first barrage quantity according to the barrage request context included in the barrage pull request; A second barrage quantity determination module is used to match the data source decision result corresponding to the barrage request context, and to sum the maximum number of sub-strategies that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first summation result; A sum operation is performed on the minimum number of sub-strategy bullet comments that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; a difference operation is performed on the first number of bullet comments and the first sum operation result to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, the first sum operation result is used as the second number of bullet comments; When it is determined that the first difference operation result is less than or equal to the preset threshold, performing a difference operation on the first bullet comment number and the second sum operation result to obtain a second difference operation result; When it is determined that the second difference operation result is greater than the preset threshold, performing a sum operation on the second sum operation result and the second difference operation result to obtain a third sum operation result, and determining the second bullet screen quantity according to the third sum operation result; When it is determined that the second difference operation result is less than or equal to the preset threshold, taking the first bullet screen number as the second bullet screen number; The barrage information acquisition module is used to obtain the barrage information to be displayed corresponding to the second barrage number, and feed back the barrage information to be displayed to the user terminal where the barrage host is located for display.
17. The display device of barrage information according to claim 16, wherein: Calculating the first number of bullet comments according to the bullet comment request context included in the bullet comment pull request includes: Parsing the bullet screen pull request to obtain the bullet screen request context; wherein the bullet screen request context includes the bullet screen capacity per unit time of the bullet screen host, the host content identifier of the bullet screen host, and the user identifier corresponding to the user terminal; Acquire the host content full information of the barrage host according to the host content identifier; wherein the host content full information includes the total playback time of the barrage host, or the total playback time and the segment playback time of the video segment with a preset content category; The first number of barrages is calculated according to the barrage capacity per unit time and the full amount information of the host content; wherein the first number of barrages is the maximum number of barrages that the barrage host can accommodate within the total playback time.
18. The device for displaying barrage information according to claim 17, wherein the first barrage quantity is calculated according to the barrage capacity per unit time and the host content full amount information, comprising: Calculate the first number of barrages according to the barrage capacity per unit time and the total playback time; or The first barrage quantity is calculated according to the barrage capacity per unit time, the total playback time and the segment playback time.
19. The display device of barrage information according to claim 18, wherein: Calculating the first number of barrages according to the barrage capacity per unit time and the total playback duration includes: Configuring a first overflow ratio for the barrage host, and calculating a first product operation result between the first overflow ratio, the barrage capacity per unit time, and the total playback time; The first bullet screen quantity is determined according to the first product operation result.
20. The display device of barrage information according to claim 19, wherein: Calculating the first number of barrages according to the barrage capacity per unit time, the total playback duration, and the segment playback duration includes: Configuring a second overflow ratio for the video clip with a preset content category, and configuring a third overflow ratio for other video clips in the barrage host except the video clip with the preset content category; The first barrage quantity is calculated based on the first overflow ratio, the third overflow ratio, the barrage capacity per unit time, the total playback time, and the segment playback time.
21. The display device of barrage information according to claim 17, wherein: The data source decision result corresponding to the bullet comment request context is matched, including: Obtaining full user information according to the user identifier included in the bullet screen request context, and generating a decision request context according to the full user information and the full host content information of the bullet screen host; wherein the full user information includes at least one of basic user information, user avatar, user nickname, and user identifier; The data source decision result is matched from the data source policy management center according to the decision request context; wherein the data source decision result includes at least one of the maximum number of sub-policy barrages that can be displayed by each sub-data source policy included in the data source policy management center, the minimum number of sub-policy barrages that must be displayed by each sub-data source policy, and the policy priority of each sub-data source policy.
22. The display device of barrage information according to claim 21, wherein: The data source strategy management center includes the sub-data source of bullet screen information and the sub-data source strategy corresponding to the sub-data source; The sub-data source includes one or more of pre-configured barrage information corresponding to the host content of the barrage host, preset active barrage information associated with the host content, user-sent barrage information associated with the host content, and user comment information associated with the host content; The sub-data source strategy includes one or more of a preset barrage strategy corresponding to the pre-configured barrage information, an active barrage strategy corresponding to the preset active barrage information, a user barrage strategy corresponding to the barrage information sent by the user, and a user comment strategy corresponding to the user comment content.
23. The display device of barrage information according to claim 16, wherein: Obtaining the barrage information to be displayed corresponding to the second barrage quantity, including: When the second number of bullet screens is the result of the first sum operation, the first bullet screen information corresponding to the maximum number of sub-strategies that can be displayed by each sub-data source strategy is requested from the data source strategy center, and the bullet screen information to be displayed is generated according to the first bullet screen information.
24. The display device of barrage information according to claim 23, wherein: Request the first bullet screen information corresponding to the maximum number of sub-strategy bullet screens that can be displayed by each sub-data source policy from the data source policy center, including: Obtaining original bullet chat information under each sub-data source strategy in the data source strategy center; wherein the original bullet chat information includes one or more of pre-configured bullet chat information, preset activity bullet chat information, and user-sent bullet chat information; Compare the total amount of information of the original barrage information and the total amount of the maximum number of barrages of sub-strategies that can be displayed by each sub-data source strategy, and when it is determined that the total amount of information of the original barrage information is less than the total amount of the maximum number of barrages of sub-strategies that can be displayed by each sub-data source strategy, perform data conversion on the user comment information in the data source strategy center to obtain newly added barrage information; The first bullet screen information is generated according to the newly added bullet screen information and the original bullet screen information, and the first bullet screen information is obtained from the data source strategy center.
25. The display device of barrage information according to claim 23, wherein: The user comment information in the data source strategy center is converted to obtain the newly added bullet comment information, including: Inputting the user comment information and the host content in the data source strategy center into a preset neural network model to obtain the time nodes of the user comment information in the host content; wherein the preset neural network model includes one or more of a recurrent neural network model, a convolutional neural network model, a deep neural network model and a decision tree model; New barrage information is generated according to the time node and the user comment information.
26. The display device of barrage information according to claim 16, wherein: The method further includes obtaining barrage information to be displayed corresponding to the number of the second barrages, and further comprising: When the second bullet comments quantity is the third sum operation result, generating a diversion request context according to the second difference operation result and the data source decision result; According to the diversion request context, the number of bullet screens required to be provided by each sub-data source strategy is obtained from the diversion strategy center, and the target number of bullet screens required to be provided by each sub-data source strategy is determined according to the minimum number of sub-strategy bullet screens that must be displayed by each sub-data source strategy and the number of bullet screens required to be provided by each sub-data source strategy; From each sub-data source strategy of the data source strategy center, request the second bullet screen information corresponding to the target number of bullet screens required to be provided by each sub-data source strategy, and generate the to-be-displayed bullet screen information according to the second bullet screen information.
27. The display device of barrage information according to claim 26, wherein: Obtain the number of bullet screens required by each sub-data source strategy from the diversion strategy center, including: The diversion strategy center calculates the diversion ratio of each sub-data source strategy according to the diversion request context; The number of bullet screens required to be provided by each sub-data source strategy is calculated according to the diversion ratio, the number of first bullet screens, and the minimum number of sub-strategy bullet screens that must be displayed by each sub-data source strategy.
28. The display device of barrage information according to claim 16, wherein: The method further includes obtaining barrage information to be displayed corresponding to the number of the second barrages, and further comprising: S10, when the number of the first bullet screens is the same as the number of the second bullet screens, sorting the sub-data source strategies according to the strategy priorities of the sub-data source strategies included in the decision result to obtain a strategy sorting result; wherein the strategy sorting result includes the first sub-data source strategy, the second sub-data source strategy, ..., the Nth sub-data source strategy, and the first strategy priority, the second strategy priority, ..., the Nth strategy priority corresponding to the first sub-data source strategy, the second sub-data source strategy, ..., the Nth sub-data source strategy are in descending order; S20, comparing the first sub-strategy minimum number of barrages and the first number of barrages of the first sub-data source strategy, and when it is determined that the first sub-strategy minimum number of barrages is greater than or equal to the first number of barrages, obtaining third barrage information corresponding to the first number of barrages from the first sub-data source strategy, without the need to obtain the third barrage information from other sub-data source strategies except the first sub-data source strategy; S30, when it is determined that the minimum number of bullet screens in the first sub-strategy is less than the first number of bullet screens, obtaining third bullet screen information corresponding to the minimum number of bullet screens in the first sub-strategy from the first sub-data source strategy; S40, performing a difference operation on the first number of bullet screens and the minimum number of bullet screens of the first sub-strategy to obtain a third difference operation result, and comparing the third difference operation result with the minimum number of bullet screens of the second sub-strategy of the second sub-data source strategy; S50, when it is determined that the minimum number of bullet screens of the second sub-strategy is greater than or equal to the third difference calculation result, the third bullet screen information corresponding to the third difference calculation result is obtained from the second sub-data source strategy, without the need to obtain the third bullet screen information from other sub-data source strategies except the first sub-data source strategy and the second sub-data source strategy; S60, when it is determined that the minimum number of bullet screens of the second sub-strategy is less than the third difference calculation result, obtaining third bullet screen information corresponding to the minimum number of bullet screens of the second sub-strategy from the second sub-data source strategy; S70, repeating steps S40-S60 until the number of the third bullet screen information reaches the number of the first bullet screen information, and generating the to-be-displayed bullet screen information according to the third bullet screen information.
29. A display device for bullet screen information, configured on a user terminal side, the display device for bullet screen information comprising: A unit time barrage capacity calculation module, used to obtain the environment information and barrage display setting information of the barrage host, and calculate the unit time barrage capacity of the barrage host according to the environment information and barrage display setting information; A barrage pull request generation module, used to generate a barrage request context according to the barrage capacity per unit time, a host content identifier of the barrage host, and a user identifier corresponding to the user terminal, and generate a barrage pull request according to the barrage request context; A barrage information receiving module, used to send the barrage pull request to the server side, and receive the barrage information to be displayed generated by the server side according to the barrage capacity per unit time, the host content identifier and the user identifier included in the barrage pull request; A barrage information display module is used to display the barrage information to be displayed in the display environment of the barrage host; wherein the second number of barrages of the barrage information to be displayed is obtained in the following manner: matching the data source decision result corresponding to the barrage request context, and summing the maximum number of sub-strategy barrages that can be displayed by each sub-data source strategy included in the data source decision result to obtain a first sum operation result; summing the minimum number of sub-strategy barrages that must be displayed by each sub-data source strategy included in the data source decision result to obtain a second sum operation result; summing the first number of barrages obtained according to the barrage request context and the first sum operation result. A difference operation is performed to obtain a first difference operation result, and when it is determined that the first difference operation result is greater than a preset threshold, the first sum operation result is used as the second barrage number; when it is determined that the first difference operation result is less than or equal to the preset threshold, the first barrage number and the second sum operation result are differenced to obtain a second difference operation result; when it is determined that the second difference operation result is greater than the preset threshold, the second sum operation result and the second difference operation result are summed to obtain a third sum operation result, and the second barrage number is determined according to the third sum operation result; when it is determined that the second difference operation result is less than or equal to the preset threshold, the first barrage number is used as the second barrage number.
30. The display device of barrage information according to claim 29, wherein: The environment information includes the display width and display height of the display environment, and / or the device resolution of the user terminal; The barrage display setting information includes one or more of a font size when displaying the barrage information, a scrolling rate of the barrage information, and a density of the barrage information.
31. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for displaying barrage information as described in any one of claims 1-15.
32. An electronic device comprising: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the method for displaying barrage information described in any one of claims 1-15 by executing the executable instructions.
Citation Information
Patent Citations
Processing method of barrage data, server, first terminal and storage medium
CN107786884A
Bullet screen pushing method, electronic equipment and computer readable storage medium
CN107835439A