Text information display method, device, equipment and storage medium
By adjusting the initial display time of text information on the server, the problem of centralized display caused by the terminal to display multiple text information at the same time is solved, and more effective content display is achieved.
Patent Information
- Application Number
- CN202211349180.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-10-31
AI Technical Summary
The terminal displays multiple text information at the same time, resulting in too concentrated information, affecting the effectiveness of content display.
The server adjusts its initial display time according to the difference between the current text information and the target text information, determines the target display time, and sends a text information display indication to the client to indicate the target display time of each text information.
By adjusting the display time of text information, ensure that adjacent information is displayed at a longer time, and the effectiveness of content display is improved.
Smart Images

Figure CN115914769B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a text information display method, apparatus, device, and storage medium. Background Art
[0002] Currently, the terminal can display multiple text messages according to their respective display times.
[0003] However, in the above method, the display time of the multiple text messages may be the same, that is, the terminal will display the multiple text messages at the same time, resulting in the multiple text messages being displayed too concentratedly and each of the multiple text messages may not be effectively displayed, affecting the effectiveness of the content display. Summary of the Invention
[0004] The present disclosure provides a text information display method, device, equipment and storage medium, which solves the technical problem that a terminal displays multiple text messages at the same time, resulting in the multiple text messages being displayed too concentratedly and each of the multiple text messages may not be effectively displayed, affecting the effectiveness of content display.
[0005] The technical solutions of the embodiments of the present disclosure are as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a method for adjusting the initial display moment of the current text information to obtain a target display moment of the current text information when a difference between current text information and target text information does not meet a preset condition, the current text information being one of the multiple text information, and the target text information being text information other than the current text information in the multiple text information; and sending a text information display indication to a client, the text information display indication including the target display moment of each text information in the multiple text information, the text information display indication being used to instruct the client to display each text information based on the target display moment of each text information.
[0007] Optionally, the above-mentioned determination of the initial display time of each text information in the multiple text information specifically includes: obtaining the display time of the target video frame and the display time interval corresponding to the current text information, the target video frame being a video frame included in the target video; and determining the sum of the display time of the target video frame and the display time interval corresponding to the current text information as the initial display time of the current text information.
[0008] Optionally, the above-mentioned text information display method also includes: when the difference between the initial display time of the current text information and the initial display time of the target text information is less than the duration threshold, and / or the length of the current text information is the same as the length of the target text information, determining that the difference between the current text information and the target text information does not meet the preset condition.
[0009] Optionally, the above-mentioned text information display method also includes: determining the number of first characters and the number of second characters, the first characters are the characters included in the current text information, and the second characters are the characters included in the target text information; when the number of first characters is the same as the number of second characters, determining that the length of the current text information is the same as the length of the target text information.
[0010] Optionally, a text information list is stored in the above-mentioned server, and the text information list includes the multiple text information and the arrangement order of the multiple text information. The above-mentioned text information display method also includes: based on the arrangement order, determining whether there is text information between the current text information and other text information, and the other text information is text information other than the current text information in the multiple text information; when there is no text information between the current text information and the other text information, determining that the other text information is the target text information.
[0011] According to a second aspect of an embodiment of the present disclosure, a text information display method is provided. The method may include: receiving a text information display instruction sent by a server, the text information display instruction including a target display time for each text information in a plurality of text information, the target display time for a current text information being obtained by the server adjusting an initial display time of the current text information when a difference between the current text information and a target text information does not meet a preset condition, the current text information being one of the plurality of text information, and the target text information being a text information in the plurality of text information other than the current text information; and displaying each text information based on the target display time for each text information.
[0012] Optionally, before displaying each text information based on the target display time of each text information, the above-mentioned text information display method also includes: when the difference between the current text information and the target text information does not meet the preset condition, adjusting the initial display time of the current text information to obtain the target display time of the current text information.
[0013] According to a third aspect of an embodiment of the present disclosure, a text information display device is provided, which may include: a determination module, a processing module, and a sending module.
[0014] The determination module is configured to determine an initial display time of each text message among a plurality of text messages; the processing module is configured to adjust the initial display time of the current text message to obtain a target display time of the current text message when a difference between the current text message and the target text message does not meet a preset condition, wherein the current text message is one of the plurality of text messages, and the target text message is text information other than the current text message among the plurality of text messages; the sending module is configured to send a text message display indication to the client, wherein the text message display indication includes a target display time of each text message among the plurality of text messages, and the text message display indication is used to instruct the client to display each text message based on the target display time of each text message.
[0015] Optionally, the text information display device also includes an acquisition module; the acquisition module is configured to acquire the display time of the target video frame and the display time interval corresponding to the current text information, and the target video frame is a video frame included in the target video; the determination module is specifically configured to determine the sum of the display time of the target video frame and the display time interval corresponding to the current text information as the initial display time of the current text information.
[0016] Optionally, the determination module is further configured to determine that the difference between the current text information and the target text information does not meet the preset condition when the difference between the initial display time of the current text information and the initial display time of the target text information is less than a duration threshold, and / or the length of the current text information is the same as the length of the target text information.
[0017] Optionally, the determination module is further configured to determine the number of first characters and the number of second characters, the first characters being the characters included in the current text information, and the second characters being the characters included in the target text information; the determination module is further configured to determine that the length of the current text information is the same as the length of the target text information when the number of the first characters is the same as the number of the second characters.
[0018] Optionally, the above-mentioned text information list includes the multiple text information and the arrangement order of the multiple text information. The determination module is also configured to determine whether there is text information between the current text information and other text information based on the arrangement order, and the other text information is the text information other than the current text information in the multiple text information; the determination module is also configured to determine that the other text information is the target text information when there is no text information between the current text information and the other text information.
[0019] According to a fourth aspect of an embodiment of the present disclosure, a text information display device is provided, which may include: a receiving module and a display module.
[0020] The receiving module is configured to receive a text message display indication sent by a server, the text message display indication including a target display time for each text message among a plurality of text messages, the target display time for a current text message being obtained by the server adjusting an initial display time of the current text message when a difference between the current text message and a target text message does not satisfy a preset condition, the current text message being one of the plurality of text messages, and the target text message being text information other than the current text message among the plurality of text messages; the display module is configured to display each text message based on the target display time for each text message.
[0021] Optionally, the text information display device further includes a processing module, which is configured to adjust the initial display time of the current text information to obtain the target display time of the current text information when the difference between the current text information and the target text information does not meet the preset condition.
[0022] According to the fifth aspect of an embodiment of the present disclosure, a device is provided, which may include: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the optional text information display methods in the above-mentioned first aspect or to implement any one of the optional text information display methods in the above-mentioned second aspect.
[0023] According to the sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a device, the device is enabled to execute any one of the optional text information display methods in the above-mentioned first aspect or execute any one of the optional text information display methods in the above-mentioned second aspect.
[0024] According to the seventh aspect of the embodiment of the present disclosure, a computer program product is provided, which includes computer instructions. When the computer instructions are executed on the processor of a device, the device executes any optional text information display method as in the first aspect or executes any optional text information display method as in the second aspect.
[0025] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
[0026] Based on any of the above aspects, in the present disclosure, a server can determine the initial display time of each text message in a plurality of text messages. When the difference between the current text message and the target text message does not meet a preset condition, it indicates that the current text message is relatively similar to the target text message. In this case, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message. The server can then send a text message display instruction to the client, which is used to instruct the client to display each text message based on the target display time of each text message. In an embodiment of the present disclosure, when the difference between the current text message and the target text message is large, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message. Since the difference between the target display time of the current text message and the target display time of the target text message is large, the difference between the current text message and the target text message is large, that is, the target display time of the current text message obtained and sent by the server is far away from the target display time of the target text message. As a result, the client can display adjacent text messages at a farther display time, effectively displaying each text message to be displayed, and improving the effectiveness of content display.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0029] Figure 1 A schematic diagram of a text information display system provided by an embodiment of the present disclosure is shown;
[0030] Figure 2 A flowchart of a text information display method provided by an embodiment of the present disclosure is shown;
[0031] Figure 3 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0032] Figure 4 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0033] Figure 5 A schematic diagram showing the initial display time of text information provided by an embodiment of the present disclosure;
[0034] Figure 6A schematic diagram showing another target display time of text information provided by an embodiment of the present disclosure;
[0035] Figure 7 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0036] Figure 8 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0037] Figure 9 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0038] Figure 10 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0039] Figure 11 A flowchart of another text information display method provided by an embodiment of the present disclosure is shown;
[0040] Figure 12 A structural diagram of another text information display device provided by an embodiment of the present disclosure is shown;
[0041] Figure 13 A structural diagram of another text information display device provided by an embodiment of the present disclosure is shown;
[0042] Figure 14 A schematic structural diagram of another text information display device provided by an embodiment of the present disclosure is shown;
[0043] Figure 15 A structural schematic diagram of another text information display device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0044] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0045] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0046] It will also be understood that the term “comprising” indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements and / or components.
[0047] It should be noted that the user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to the display time of the target video frame, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0048] In the related art, the terminal can display multiple text messages according to their respective display information, but the display time of the multiple text messages may be the same, that is, the terminal will display the multiple text messages at the same time, resulting in the multiple text messages being displayed too concentratedly, and may not be able to effectively display each of the multiple text messages, affecting the effectiveness of the content display.
[0049] Based on this, the embodiment of the present disclosure provides a method for displaying text information. When the difference between the current text information and the target text information is large, the server can adjust the initial display time of the current text information to obtain the target display time of the current text information. Since the difference between the target display time of the current text information and the target display time of the target text information is large, the difference between the current text information and the target text information is large, that is, the target display time of the current text information obtained and sent by the server is far from the target display time of the target text information. Therefore, the client can display adjacent text information at a farther display time, can effectively display each text information to be displayed, and can improve the effectiveness of content display.
[0050] The text information display method, device, electronic device, and storage medium provided by the embodiments of the present disclosure are applied to video playback scenarios (specifically, scenarios in which relevant text information is displayed during video playback). When the difference between the initial display time of the current text information and the initial display time of the target text information is less than or equal to a duration threshold, and the length of the current text information is the same as the length of the target text information, the server can adjust the initial display time of the current text information to obtain the target display time of the current text information; the server can then provide a text information display instruction to the client, i.e., instruct the client to display each text information in multiple text information based on the target display time of each text information.
[0051] The following is an exemplary description of the text information display method provided by the embodiment of the present disclosure with reference to the accompanying drawings:
[0052] Figure 1A schematic diagram of a text information display system provided by an embodiment of the present disclosure, such as Figure 1 As shown, the text information display system may include a terminal 101 and a server 102 , and the terminal 101 may establish a connection with the server 102 via a wired network or a wireless network.
[0053] Among them, the client provided by the embodiment of the present disclosure can be installed in the terminal 101, and the terminal 101 can be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR)\virtual reality (VR) device, etc. The present disclosure does not impose any special restrictions on the specific form of the terminal 101. It can perform human-computer interaction with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device. In the embodiment of the present disclosure, the client can receive a text message display indication sent by the server 102, and the text message display indication includes a target display time for each text message in a plurality of text messages; then the client can display each text message based on the target display time of each text message.
[0054] The server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms. In the embodiment of the present disclosure, when the difference between the initial display time of the current text information and the initial display time of the target text information is less than or equal to the duration threshold, and the length of the current text information is the same as the length of the target text information, the server 102 may adjust the initial display time of the current text information to obtain the target display time of the current text information.
[0055] like Figure 2 As shown, when the text information display method is applied to the above-mentioned server 102, the text information display method may include S101-S103.
[0056] S101: The server determines an initial display time of each text message among a plurality of text messages.
[0057] In an optional implementation, the initial display time of a text message may be the generation time (or sending time) of the text message.
[0058] It is understandable that the text information in the embodiments of the present disclosure may be comment information during a live broadcast or video playback, such as barrage, etc.
[0059] S102: When the difference between the current text information and the target text information does not meet a preset condition, the server adjusts the initial display time of the current text information to obtain a target display time of the current text information.
[0060] The current text information is one of the multiple text information, and the target text information is text information other than the current text information in the multiple text information.
[0061] It should be understood that when the difference between the current text information and the target text information does not meet the preset conditions, it means that the difference between the current text information and the target text information is small, and the initial display time of the current text information may be similar to the initial display time of the target text information. At this time, the server can adjust the initial display time of the current text information to obtain the target display time of the current text information.
[0062] In the embodiment of the present invention, the server adjusts the initial display time of the current text information, specifically by moving the initial display time of the current text information forward by a target time length or moving the initial display time of the current text information backward by the target time length.
[0063] In an implementation of the embodiment of the present disclosure, when the difference between the current text information and the target text information satisfies the preset condition, the server determines that the initial display time of the current text information remains unchanged.
[0064] S103: The server sends a text information display instruction to the client.
[0065] The text information display instruction includes a target display time of each text information in the plurality of text information, and the text information display instruction is used to instruct the client to display each text information based on the target display time of each text information.
[0066] It should be understood that when the client displays the current text information based on the target display time of the current text information and displays the target text information based on the target display time of the target text information, the difference between the current text information and the target text information meets the preset condition.
[0067] In an embodiment of the present invention, when the difference between the target display time of the current text message and the target display time of the target text message is large, that is, the target display time of the current text message is far away from the target display time of the target text message, the server can determine that the difference between the current text message and the target text message is large. In an embodiment of the present invention, because the target display time of the current text message obtained and sent by the server is far away from the target display time of the target text message, the client can display the current text message and the target text message at the farther display time.
[0068] In one case, when the difference between the current text information and the target text information does not satisfy a preset condition, the server may also adjust the initial display time of the target text information to obtain the target display time of the target text information.
[0069] In another case, when the difference between the current text information and the target text information does not meet the preset conditions, the server can adjust the initial display time of the current text information to obtain the target display time of the current text information, and adjust the initial display time of the target text information to obtain the target display time of the target text information.
[0070] In an optional implementation, the initial display time of the above-mentioned current text information (or the initial display time of the target text information) remains unchanged. At this time, the target display time of the current text information (or the target display time of the target text information) included in the text information display indication sent by the server to the client is the same as the initial display time of the current text information (or the initial display time of the target text information).
[0071] The technical solution provided by the above embodiment can at least bring the following beneficial effects: As can be seen from S101-S103, the server can determine the initial display time of each text message in multiple text messages. When the difference between the current text message and the target text message does not meet the preset conditions, it means that the current text message is relatively similar to the target text message; at this time, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message; then the server can send a text message display instruction to the client, and the text message display instruction is used to instruct the client to display each text message based on the target display time of each text message. In the embodiment of the present disclosure, when the difference between the current text message and the target text message is large, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message. Since the difference between the target display time of the current text message and the target display time of the target text message is large, the difference between the current text message and the target text message is large, that is, the target display time of the current text message obtained and sent by the server is far from the target display time of the target text message. Therefore, the client can display adjacent text information at a farther display time, can effectively display each text information to be displayed, and can improve the effectiveness of content display.
[0072] Combine Figure 2 ,like Figure 3 As shown, the server determines the initial display time of each text message in the plurality of text messages, which may specifically include S1011-S1012.
[0073] S1011: The server obtains the display time of the target video frame and the display duration interval corresponding to the current text information.
[0074] The target video frame is a video frame included in the target video.
[0075] In one implementation of the embodiment of the present disclosure, the server may perform frame extraction processing on the target video to obtain the multiple video frames.
[0076] In an optional implementation, the server may obtain from the client the display time of the target video frame and the display duration interval corresponding to each of the plurality of text messages.
[0077] In another optional implementation, the server may also obtain the display time of the target video frame and the display duration interval corresponding to each piece of text information from a database.
[0078] Optionally, the target video frame may be the first video frame in the target video.
[0079] S1012: The server determines the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information.
[0080] It should be understood that the display duration interval corresponding to the current text information can be understood as the time interval between the initial display time of the current text information and the display time of the target video frame. In this embodiment of the present invention, the server can determine the difference between the display time of the target video frame and the initial display time of the current text information as the time interval. That is, the server can determine the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information.
[0081] It should be noted that, since the current text information is one of the above-mentioned multiple text information, the server can also determine the initial display time of other text information (i.e., the text information in the multiple text information except the current text information) based on the description in S1011-S1012 above.
[0082] The technical solution provided by the above embodiment can at least bring the following beneficial effects: As can be seen from S1011-S1012, the server can obtain the display time of the target video frame and the display duration interval corresponding to the current text information, and determine the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information. In the embodiment of the present disclosure, since the display duration interval corresponding to the current text information can be understood as the time interval between the initial display time of the current text information and the display time of the target video frame, the server can determine the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information, and can accurately and effectively determine the initial display time of each text information.
[0083] Combine Figure 2 ,like Figure 4 As shown, the above text information display method further includes S104.
[0084] S104. When the difference between the initial display time of the current text information and the initial display time of the target text information is less than the duration threshold, and / or the length of the current text information is the same as the length of the target text information, the server determines that the difference between the current text information and the target text information does not meet the preset condition.
[0085] It should be understood that when the difference between the initial display time of the current text message and the initial display time of the target text message is less than or equal to the duration threshold, it means that the difference between the initial display time of the current text message and the initial display time of the target text message is small, that is, the initial display time of the current text message is close to the initial display time of the target text message. When the length of the current text message is the same as the length of the target text message, it means that the display style of the current text message is similar to the display style of the target text message. When the initial display time of the current text message is close to the initial display time of the target text message, and the display style of the current text message is similar to the display style of the target text message, the server can determine that the difference between the current text message and the target text message does not meet the preset conditions, and then the server can adjust the initial display time of the current text message to obtain the target display time of the current text message.
[0086] It can be understood that when the difference between the target display time of the current text information and the target display time of the target text information is greater than the duration threshold, it means that the difference between the target display time of the current text information and the target display time of the target text information is large, that is, the target display time of the current text information is far away from the target display time of the target text information, and when the length of the current text information is different from the length of the target text information, it means that the difference between the display style of the current text information and the display style of the target text information is large. At this time, the server can determine that the difference between the current text information and the target text information meets the preset conditions.
[0087] Exemplarily, the above duration threshold may be 100 ms (milliseconds).
[0088] The following uses an example to illustrate the process of adjusting the initial display time of text information provided by an embodiment of the present disclosure.
[0089] For example, it is assumed that the above-mentioned multiple text messages are 5 text messages, and the 5 text messages include text message 1, text message 2, text message 3, text message 4 and text message 5, and the 5 text messages have the same length. Figure 5 As shown, it is assumed that the initial display time of the text information 1 is t1, the initial display time of the text information 2 is t2, the initial display time of the text information 3 is t3, the initial display time of the text information 4 is t4, and the initial display time of the text information 5 is t5.
[0090] Assume that t1 is the 100th ms, t2 is the 120th ms, t3 is the 110th ms, t4 is the 90th ms, and t5 is the 200th ms, and the above-mentioned duration threshold is 100ms. The server determines that the difference between t1 and t2 is less than the duration threshold, the difference between t2 and t3 is less than the duration threshold, the difference between t3 and t4 is less than the duration threshold, and the difference between t4 and t5 is greater than the duration threshold. At this time, the server can adjust the initial display time of the above-mentioned text information 2 (i.e., t2) to obtain the target display time of the text information 2, and adjust the initial display time of the text information 4 (i.e., t4) to obtain the target display time of the text information 4.
[0091] For example, the target display time of the text message 2 is Figure 6 The target display time of the text message 4 is t6. Figure 6 The difference between t6 and t1 (and t3) is greater than the above-mentioned duration threshold, and the difference between t7 and t3 (and t5) is greater than the duration threshold.
[0092] The technical solution provided by the above embodiment can at least bring the following beneficial effects: As can be seen from S104, when the difference between the initial display time of the current text message and the initial display time of the target text message is less than or equal to the duration threshold, it indicates that the difference between the initial display time of the current text message and the initial display time of the target text message is small, that is, the initial display time of the current text message is close to the initial display time of the target text message. When the length of the current text message is the same as the length of the target text message, it indicates that the display style of the current text message and the display style of the target text message are similar. In this case, the server can determine that the difference between the current text message and the target text message does not meet the preset condition. In the embodiment of the present invention, when the initial display time of the current text message is close to the initial display time of the target text message and the display style of the current text message is similar to the display style of the target text message, the server determines that the difference between the current text message and the target text message does not meet the preset condition. The difference between the current text message and the target text message can be accurately determined, thereby improving the accuracy of determining the difference between the current text message and the target text message.
[0093] Combine Figure 3 ,like Figure 7 As shown, the above text information display method also includes S105-S106.
[0094] S105: The server determines the number of first characters and the number of second characters.
[0095] The first character is a character included in the current text information, and the second character is a character included in the target text information.
[0096] In the embodiment of the present disclosure, after obtaining each text message among the multiple text messages, the server may determine the number of characters included in each text message.
[0097] S106: When the number of the first characters is the same as the number of the second characters, the server determines that the length of the current text message is the same as the length of the target text message.
[0098] It should be understood that the number of characters included in a text message can represent the length of the text message. When the number of the first characters is the same as the number of the second characters, it means that the number of characters included in the current text message is the same as the number of characters included in the target text message. In this case, the server can determine that the length of the current text message is the same as the length of the target text message.
[0099] In an optional implementation, when the number of the first characters is different from the number of the second characters, the server may determine that the length of the current text message is different from the length of the target text message.
[0100] The technical solution provided by the above embodiment can at least bring about the following beneficial effects: As can be seen from S105-S106, the server can determine the number of first characters and the number of second characters. When the number of the first characters is the same as the number of the second characters, it means that the number of characters included in the current text message is the same as the number of characters included in the target text message. At this time, the server can determine that the length of the current text message is the same as the length of the target text message. In the embodiment of the present disclosure, since the number of characters included in a text message can represent the length of the text message, the server can determine whether the lengths of adjacent text messages are the same based on the number of characters included in the adjacent text messages, and can quickly and effectively determine text messages of the same length.
[0101] In one implementation of the embodiment of the present disclosure, the server stores a text information list, which includes the multiple text messages and the order in which the multiple text messages are arranged. Figure 2 ,like Figure 8 As shown, the above text information display method also includes S107-S108.
[0102] S107: The server determines whether there is text information between the current text information and other text information based on the arrangement order of the multiple text information.
[0103] The other text information is text information other than the current text information in the multiple text information.
[0104] In an optional implementation, after determining the initial display time of each text message in the multiple text messages, the server can determine the order of the multiple initial display times (i.e., the initial display time of each of the multiple text messages) as the arrangement order of the multiple text messages included in the text message list.
[0105] In another optional implementation, for one of the above-mentioned multiple text messages (for example, the current text message), the server can determine a first difference and a second difference after determining the initial display time of each text message in the multiple text messages. The first difference is the difference between the initial display time of the current text message and the initial display time of the other text messages, and the second difference is the difference between the initial display time of the current text message and the initial display time of at least one text message (that is, the text information in the multiple text messages other than the current text information and the other text information).
[0106] S108: When there is no text information between the current text information and the other text information, the server determines that the other text information is the target text information.
[0107] It should be understood that when there is no text information between the current text information and the other text information, it indicates that the current text information and the other text information are adjacent text information, that is, the server can determine that the other text information is the target text information.
[0108] The technical solution provided by the above embodiment can at least bring about the following beneficial effects: As can be seen from S107-S108, the server determines whether there is text information between the current text information and other text information based on the arrangement order of multiple text information; when there is no text information between the current text information and the other text information, it indicates that the current text information and the other text information are adjacent text information, and the server can then determine that the other text information is the target text information. In the present disclosure, the server determines the text information adjacent to each text information in the multiple text information based on the arrangement order of the multiple text information, and can then accurately and effectively determine whether to adjust the initial display time of each text information.
[0109] like Figure 9 As shown, when the above text information display method is applied to the above terminal 101, the text information display method may include S201-S202.
[0110] S201: The client receives a text message display instruction sent by the server.
[0111] Among them, the text information display indication includes the target display time of each text information in the multiple text information. The target display time of the current text information is obtained by the server adjusting the initial display time of the current text information when the difference between the current text information and the target text information does not meet the preset conditions. The current text information is one of the multiple text information, and the target text information is the text information other than the current text information in the multiple text information.
[0112] In combination with the description of the above embodiment, it should be understood that the server can determine the initial display time of each text message in the multiple text messages. When the difference between the current text message and the target text message does not meet the preset conditions, it means that the difference between the current text message and the target text message is small. At this time, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message, specifically, the difference between the target display time of the current text message and the target display time of the target text message is large, and then the client can send the text message display indication to the server.
[0113] S202: The client displays each text message based on the target display time of each text message.
[0114] It is understandable that, because the target display time of the current text message differs significantly from the target display time of the target text message, the target display time of the current text message is further away from the target display time of the target text message. Therefore, the target display time of the current text message obtained and sent by the server is further away from the target display time of the target text message. As a result, the client can display the adjacent text message at the further display time.
[0115] The technical solution provided by the above embodiment can at least bring about the following beneficial effects: As can be seen from S201-S202, the client can receive a text information display instruction sent by the server, and the text information display instruction includes a target display time for each text information in a plurality of text information. The target display time of the current text information is obtained by the server adjusting the initial display time of the current text information when the difference between the current text information and the target text information does not meet the preset conditions. In the present disclosure, since the difference between the target display time of the current text information and the target display time of the target text information is large, the target display time of the current text information is far away from the target display time of the target text information. The client can display adjacent text information at a farther display time, can effectively display each text information to be displayed, and can improve the effectiveness of content display.
[0116] Combine Figure 9 ,like Figure 10 As shown, before the client displays each text message based on the target display time of each text message, the text information display method provided by the embodiment of the present disclosure further includes S203.
[0117] S203: When the difference between the current text information and the target text information does not meet a preset condition, the client adjusts the initial display time of the current text information to obtain the target display time of the current text information.
[0118] In conjunction with the description of the above embodiment, it should be understood that when the difference between the current text information and the target text information does not meet the preset condition, it indicates that the difference between the current text information and the target text information is small, and it is possible that the initial display time of the current text information is close to the initial display time of the target text information. When the initial display time of the current text information is close to the initial display time of the target text information, the client can adjust the initial display time of the current text information to obtain the target display time of the current text information.
[0119] It should be noted that the description of the client adjusting the initial display time of the current text information is the same or similar to the explanation of the server adjusting the initial display time of the current text information, and will not be repeated here.
[0120] The technical solution provided by the above embodiment can at least bring the following beneficial effects: It can be seen from S203-S204 that when the difference between the current text information and the target text information does not meet the preset conditions, it means that the difference between the current text information and the target text information is small, and the initial display time of the current text information may be close to the initial display time of the target text information. At this time, the client can adjust the initial display time of the current text information to obtain the target display time of the current text information. In the embodiment of the present disclosure, when the difference between the current text information and the target text information is small, the client can adjust the initial display time of the current text information to obtain the target display time of the current text information. Since the difference between the target display time of the current text information and the target display time of the target text information is large, the target display time of the current text information is far away from the target display time of the target text information, and then the client can display adjacent text information at a farther display time, which can effectively display each text information to be displayed and improve the effectiveness of content display.
[0121] For example, the following is a code example of a server adjusting the display time of a bullet screen (i.e., text information in the embodiment of the present disclosure) provided in the embodiment of the present disclosure:
[0122]
[0123]
[0124] like Figure 11 As shown, when the text information display method is based on the interaction process between the terminal 101 and the server 102, the text information display method may include S301-S305.
[0125] S301: The server determines an initial display time of each text message among a plurality of text messages.
[0126] S302: When the difference between the current text information and the target text information does not meet a preset condition, the server adjusts the initial display time of the current text information to obtain the target display time of the current text information.
[0127] The current text information is one of the multiple text information, and the target text information is text information other than the current text information in the multiple text information.
[0128] S303: The server sends a text information display instruction to the client.
[0129] S304: The client receives the text information display instruction sent by the server.
[0130] The text information display instruction includes a target display time of each text information in the plurality of text information.
[0131] S305: The client displays each text message based on the target display time of each text message.
[0132] It should be noted that the explanations of the above S301-S305 can be found in the description of the above embodiment and will not be repeated here.
[0133] The technical solution provided by the above embodiment can at least bring about the following beneficial effects: As can be seen from S301-S305, the server can determine the initial display time of each text message in multiple text messages. When the difference between the current text message and the target text message does not meet the preset conditions, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message; then the server sends a text message display indication to the client, and the text message display indication includes the target display time of each text message. After receiving the text message display indication sent by the server, the client can display each text message based on the target display time of each text message. In the embodiment of the present disclosure, when the difference between the current text message and the target text message is small, the server can adjust the initial display time of the current text message to obtain the target display time of the current text message. Since the difference between the target display time of the current text information and the target display time of the target text information is greater than a large value, the target display time of the current text information is far away from the target display time of the target text information. At this time, the server sends a text information display indication to the client, so that after the client receives the text information display indication, the client can display adjacent text information at a farther display time, can effectively display each text information to be displayed, and can improve the effectiveness of content display.
[0134] It is understandable that, in actual implementation, the server / client described in the embodiment of the present disclosure may include one or more hardware structures and / or software modules for implementing the aforementioned corresponding text information display method, and these execution hardware structures and / or software modules may constitute a server / client. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiment disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.
[0135] Based on this understanding, the present disclosure also provides a text information display device. Figure 12 FIG. 1 shows a schematic diagram of the structure of a text information display device provided by an embodiment of the present disclosure. Figure 12 As shown, the text information display device 10 may include: a determination module 201 , a processing module 202 and a sending module 203 .
[0136] The determination module 201 is configured to determine an initial display time of each text message among a plurality of text messages.
[0137] The processing module 202 is configured to adjust the initial display time of the current text information to obtain the target display time of the current text information when the difference between the current text information and the target text information does not meet the preset conditions, wherein the current text information is one of the multiple text information and the target text information is the text information other than the current text information in the multiple text information.
[0138] The sending module 203 is configured to send a text information display instruction to the client, wherein the text information display instruction includes a target display time of each text information in the multiple text information, and the text information display instruction is used to instruct the client to display each text information based on the target display time of each text information.
[0139] Optionally, the text information display device 20 further includes an acquisition module 204 .
[0140] The acquisition module 204 is configured to acquire the display time of a target video frame and the display duration interval corresponding to the current text information. The target video frame is a video frame included in the target video.
[0141] The determination module 201 is specifically configured to determine the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information.
[0142] Optionally, the determination module 201 is further configured to determine that the difference between the current text information and the target text information does not meet the preset condition when the difference between the initial display time of the current text information and the initial display time of the target text information is less than a duration threshold, and / or the length of the current text information is the same as the length of the target text information.
[0143] Optionally, the determination module 201 is further configured to determine the number of first characters and the number of second characters, where the first characters are characters included in the current text information and the second characters are characters included in the target text information.
[0144] The determination module 201 is further configured to determine that the length of the current text information is the same as the length of the target text information when the number of the first characters is the same as the number of the second characters.
[0145] Optionally, the text information list includes the multiple text messages and the arrangement order of the multiple text messages.
[0146] The determination module 201 is further configured to determine whether there is text information between the current text information and other text information based on the arrangement order, where the other text information is text information other than the current text information in the multiple text information.
[0147] The determination module 201 is further configured to determine that the other text information is the target text information when there is no text information between the current text information and the other text information.
[0148] As described above, the embodiment of the present disclosure can divide the text information display device into functional modules according to the above method example. Among them, the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, it should be noted that the division of modules in the embodiment of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
[0149] Regarding the text information display device in the above embodiment, the specific manner in which each module performs operations and the beneficial effects thereof have been described in detail in the aforementioned method embodiment and will not be repeated here.
[0150] Figure 13 This is a structural diagram of another text information display device provided by the present disclosure. Figure 13 The text information display device 30 may include at least one processor 301 and a memory 303 for storing processor executable instructions. The processor 301 is configured to execute the instructions in the memory 303 to implement the text information display method in the above embodiment.
[0151] In addition, the text information display device 30 may further include a communication bus 302 and at least one communication interface 304 .
[0152] The processor 301 may be a central processing unit (CPU), a microprocessor unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the disclosed solution.
[0153] The communication bus 302 may include a pathway for transmitting information between the aforementioned components.
[0154] The communication interface 304 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0155] The memory 303 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processing unit via a bus. The memory may also be integrated with the processing unit.
[0156] The memory 303 is used to store instructions for executing the solution of the present disclosure, and the execution is controlled by the processor 301. The processor 301 is used to execute the instructions stored in the memory 303, thereby realizing the functions of the method of the present disclosure.
[0157] In a specific implementation, as an embodiment, the processor 301 may include one or more CPUs, such as Figure 13 CPU0 and CPU1 in.
[0158] In a specific implementation, as an embodiment, the text information display device 30 may include multiple processors, such as Figure 13 301 and processor 307 in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0159] In a specific implementation, as an embodiment, the text information display device 30 may further include an output device 305 and an input device 306. The output device 305 communicates with the processor 301 and can display information in a variety of ways. For example, the output device 305 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 306 communicates with the processor 301 and can receive user input in a variety of ways. For example, the input device 306 can be a mouse, a keyboard, a touch screen device, or a sensor device.
[0160] Figure 13 This is a structural example diagram of a text information display device provided by the present disclosure. Figure 14 As shown, the text information display device 40 may include: a receiving module 401 and a display module 402 .
[0161] Receiving module 401 is configured to receive a text message display indication sent by a server, the text message display indication including a target display time for each text message in a plurality of text messages, the target display time of the current text message being obtained by the server adjusting the initial display time of the current text message when the difference between the current text message and the target text message does not meet a preset condition, the current text message being one of the plurality of text messages, and the target text message being text information other than the current text message in the plurality of text messages.
[0162] The display module 402 is configured to display each text message based on the target display time of each text message.
[0163] Optionally, the text information display device further includes a processing module 403, which is configured to adjust the initial display time of the current text information to obtain the target display time of the current text information when the difference between the current text information and the target text information does not meet the preset condition.
[0164] Figure 15 This is a structural diagram of another text information display device provided by the present disclosure. Figure 15 The text information display device 50 may include at least one processor 501 and a memory 503 for storing processor executable instructions. The processor 501 is configured to execute the instructions in the memory 503 to implement the text information display method in the above embodiment.
[0165] In addition, the text information display device 50 may further include a communication bus 502 and at least one communication interface 504 .
[0166] The processor 501 may be a CPU, a microprocessor unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the disclosed solution.
[0167] The communication bus 502 may include a pathway for transmitting information between the aforementioned components.
[0168] The communication interface 504 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, RAN, WLAN, etc.
[0169] The memory 503 may be a ROM or other type of static storage device capable of storing static information and instructions, a RAM or other type of dynamic storage device capable of storing information and instructions, an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory may be independent and connected to the processing unit via a bus. The memory may also be integrated with the processing unit.
[0170] The memory 503 is used to store instructions for executing the solution of the present disclosure, and the execution is controlled by the processor 501. The processor 501 is used to execute the instructions stored in the memory 503, thereby realizing the functions of the method of the present disclosure.
[0171] In a specific implementation, as an embodiment, the processor 501 may include one or more CPUs, such as Figure 15 CPU0 and CPU1 in.
[0172] In a specific implementation, as an embodiment, the text information display device 50 may include multiple processors, such as Figure 13 1 and 507. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0173] In a specific implementation, as an embodiment, the text information display device 50 may further include an output device 505 and an input device 506. The output device 505 communicates with the processor 501 and can display information in a variety of ways. For example, the output device 505 can be an LCD, LED display device, CRT display device, or projector. The input device 506 communicates with the processor 501 and can receive user input in a variety of ways. For example, the input device 506 can be a mouse, keyboard, touch screen device, or sensor device.
[0174] Those skilled in the art will understand that the above Figure 13 as well as Figure 15 The structure shown in the figure does not constitute a limitation on the text information display device, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0175] In addition, the present disclosure also provides a computer-readable storage medium, including instructions, which, when executed by a processor of a device, enable the device to execute the text information display method provided in the above embodiment.
[0176] In addition, the present disclosure also provides a computer program product, including instructions, which, when executed by a processor of a device, enable the device to execute the text information display method provided in the above embodiment.
[0177] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
Claims
1. A text information display method, applied to a server, characterized in that: include: Obtaining a display time of a target video frame and a display duration interval corresponding to the current text information, wherein the target video frame is a video frame included in the target video; Determining the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information; When the difference between the current text information and the target text information does not satisfy a preset condition, adjusting the initial display time of the current text information to obtain a target display time of the current text information, wherein the current text information is one of a plurality of text information, and the target text information is text information other than the current text information in the plurality of text information; The preset conditions include: the difference between the initial display time of the current text message and the initial display time of the target text message is greater than or equal to a duration threshold, and / or the length of the current text message is different from the length of the target text message; A text information display instruction is sent to the client, wherein the text information display instruction includes a target display time of each text information in the plurality of text information, and the text information display instruction is used to instruct the client to display each text information based on the target display time of each text information.
2. The text information display method according to claim 1, wherein: The method further comprises: Determining the number of first characters and the number of second characters, wherein the first characters are characters included in the current text information and the second characters are characters included in the target text information; When the number of the first characters is the same as the number of the second characters, it is determined that the length of the current text information is the same as the length of the target text information.
3. The text information display method according to claim 1 or 2, characterized in that: The server stores a text information list, the text information list including the plurality of text messages and the arrangement order of the plurality of text messages, and the method further includes: Based on the arrangement order, determining whether there is text information between the current text information and other text information, the other text information being text information other than the current text information in the multiple text information; When there is no text information between the current text information and the other text information, the other text information is determined to be the target text information.
4. A text information display method, applied to a client, characterized in that: The method comprises: Receive a text information display indication sent by a server, the text information display indication including a target display time for each text information in a plurality of text information, the target display time for a current text information being obtained by the server adjusting an initial display time of the current text information when a difference between the current text information and a target text information does not satisfy a preset condition, the current text information being one of the plurality of text information, and the target text information being text information other than the current text information in the plurality of text information; the preset condition including: a difference between an initial display time of the current text information and an initial display time of the target text information being greater than or equal to a duration threshold, and / or a length of the current text information being the same as a length of the target text information; the initial display time being the sum of a display time of a target video frame and a display duration interval corresponding to the current text information; and the target video frame being a video frame included in a target video; Each text information is displayed based on a target display timing of the each text information.
5. The text information display method according to claim 4, characterized in that: Before displaying each text message based on the target display time of each text message, the method further includes: When the difference between the current text information and the target text information does not satisfy the preset condition, the initial display time of the current text information is adjusted to obtain the target display time of the current text information.
6. A text information display device, characterized in that: include: Determination module, processing module and sending module; The determining module is configured to: obtain a display time of a target video frame and a display duration interval corresponding to the current text information, wherein the target video frame is a video frame included in the target video; Determining the sum of the display time of the target video frame and the display duration interval corresponding to the current text information as the initial display time of the current text information; The processing module is configured to, when a difference between the current text information and the target text information does not satisfy a preset condition, adjust the initial display time of the current text information to obtain a target display time of the current text information, wherein the current text information is one of a plurality of text information, and the target text information is text information other than the current text information among the plurality of text information; the preset condition includes: the difference between the initial display time of the current text information and the initial display time of the target text information is greater than or equal to a duration threshold, and / or the length of the current text information is different from the length of the target text information; The sending module is configured to send a text information display instruction to the client, wherein the text information display instruction includes a target display time of each text information in the multiple text information, and the text information display instruction is used to instruct the client to display each text information based on the target display time of each text information.
7. A text information display device, characterized in that: include: Receiving module and display module; The receiving module is configured to receive a text message display instruction sent by a server, the text message display instruction including a target display time for each text message in a plurality of text messages, the target display time for a current text message being obtained by the server adjusting an initial display time for the current text message when a difference between the current text message and a target text message does not satisfy a preset condition, the current text message being one of the plurality of text messages, and the target text message being text messages other than the current text message in the plurality of text messages; The preset conditions include: the difference between the initial display time of the current text information and the initial display time of the target text information is greater than or equal to a duration threshold, and / or the length of the current text information is different from the length of the target text information; the initial display time is the sum of the display time of the target video frame and the display duration interval corresponding to the current text information; the target video frame is a video frame included in the target video; The display module is configured to display each text message based on a target display time of each text message.
8. A device, characterized in that The device comprises: processor; a memory configured to store instructions executable by the processor; The processor is configured to execute the instruction to implement the text information display method according to any one of claims 1 to 3, or to implement the text information display method according to claim 4 or 5.
9. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a device, the device is enabled to execute the text information display method according to any one of claims 1 to 3, or the text information display method according to claim 4 or 5.
Citation Information
Patent Citations
Bullet screen display method, device and equipment and computer readable storage medium
CN112565916A
Bullet screen information display method and device, bullet screen information sending method and device, terminal and storage medium
CN113157172A