Danmaku Information Display Method, Sending Method, Device, Computer Equipment and Medium

By matching the target image for the barrage text and displaying it at the same time during display, the problem of single barrage information display is solved, and a richer display effect is achieved.

CN115695884BActive Publication Date: 2025-07-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110831139.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2025-07-11
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

The barrage information display method in the prior art is single and the display effect is poor.

Method used

By matching the corresponding target image for the barrage text and displaying the barrage text and target image at the same time during display, the display form of barrage information is enriched.

Benefits of technology

Improve the display effect of barrage information, so that it contains not only text, but also images related to the current video, enhancing the richness and attractiveness of the display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695884B_ABST
    Figure CN115695884B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and a sending method for displaying bullet screen information, a device, a computer device, and a medium, belonging to the field of computer technology. The method includes: obtaining first bullet screen information corresponding to a target video being played, where the first bullet screen information includes bullet screen text; selecting a first target image including the target object based on the target object described in the bullet screen text; and displaying second bullet screen information, where the second bullet screen information includes the bullet screen text and the first target image. The method for displaying bullet screen information provided by the present application can display bullet screen text and corresponding target images, enriching the display form of bullet screen information and improving the display effect of bullet screen information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and particularly to a method for displaying bullet screen information, a method for sending bullet screen information, a device, a computer device, and a medium. Background Art

[0002] With the gradual development of the functions of video playback applications, not only can videos be played through video playback applications, but also bullet screen information can be displayed during the video playback process. However, the bullet screen information in related technologies is only in text form, with a single display method and poor display effects. Summary of the Invention

[0003] The embodiments of the present application provide a method for displaying bullet screen information, a method for sending bullet screen information, a device, a computer device, and a medium, which improve the display effect of bullet screen information. The technical solutions are as follows:

[0004] On the one hand, a method for displaying bullet screen information is provided, and the method includes:

[0005] Obtain first bullet screen information corresponding to a target video being played, where the first bullet screen information includes bullet screen text;

[0006] Based on the target object described by the bullet screen text, select a first target image including the target object;

[0007] Display second bullet screen information, where the second bullet screen information includes the bullet screen text and the first target image.

[0008] Optionally, the method further includes:

[0009] When the first bullet screen information includes a second target image corresponding to the bullet screen text, display the first bullet screen information.

[0010] Optionally, the step of selecting a first target image including the target object based on the target object described by the bullet screen text includes:

[0011] When the automatic matching function is in an enabled state, select the first target image including the target object based on the target object described by the bullet screen text.

[0012] Optionally, before the step of selecting the first target image including the target object based on the target object described by the bullet screen text when the automatic matching function is in an enabled state, the method further includes:

[0013] In response to an enabling operation on an automatic matching control in a bullet screen setting interface, set the state of the automatic matching function to the enabled state.

[0014] Optionally, the display of the second barrage information includes:

[0015] Based on the barrage setting information, display the second barrage information, where the barrage setting information includes at least one of the font, font color, or background color of the barrage text.

[0016] On the other hand, a method for sending barrage information is provided, and the method includes:

[0017] Obtain the barrage text input in the barrage sending interface of the target video;

[0018] In response to the sending operation of the barrage text, send the first barrage information to the server, where the first barrage information includes the barrage text and the corresponding matching flag, and the matching flag indicates the image that matches the display of the barrage text;

[0019] Wherein, the server is used to send the barrage text and the matching flag to the terminal that plays the target video, and the terminal is used to select the first target image including the target object based on the target object described by the barrage text, and display the second barrage information including the barrage text and the first target image.

[0020] Optionally, the step of, in response to the sending operation of the barrage text, sending the first barrage information to the server includes:

[0021] When the automatic matching function is in the enabled state, in response to the sending operation of the barrage text, send the first barrage information to the server.

[0022] Optionally, before the step of, when the automatic matching function is in the enabled state, in response to the sending operation of the barrage text, sending the first barrage information to the server, the method further includes any one of the following:

[0023] In response to the enabling operation of the automatic matching control in the barrage setting interface, set the state of the automatic matching function to the enabled state;

[0024] When the automatic matching function is in the disabled state, in response to the triggering operation of the state switching control in the barrage sending interface, switch the automatic matching function to the enabled state.

[0025] Optionally, after the step of obtaining the barrage text input in the barrage sending interface, the method further includes:

[0026] When the automatic matching function is in the disabled state, in response to the sending operation of the barrage text, send the third barrage information to the server, where the third barrage information includes the barrage text and does not include the matching flag.

[0027] Optionally, when the automatic matching function is in the closed state, before sending the third barrage information to the server in response to the operation of sending the barrage text, the method further includes any one of the following:

[0028] In response to the operation of closing the automatic matching control in the barrage setting interface, set the state of the automatic matching function to the closed state;

[0029] When the automatic matching function is in the open state, in response to the triggering operation of the state switching control in the barrage sending interface, switch the automatic matching function to the closed state.

[0030] On the other hand, a barrage information display device is provided, and the device includes:

[0031] A barrage information acquisition module, configured to acquire first barrage information corresponding to a target video being played, where the first barrage information includes barrage text;

[0032] An image selection module, configured to select a first target image including the target object based on the target object described in the barrage text;

[0033] A barrage information display module, configured to display second barrage information, where the second barrage information includes the barrage text and the first target image.

[0034] Optionally, the image selection module is configured to:

[0035] Based on the target object described in the barrage text, select a first alternative image including the target object from the stored first video information, and use the selected first alternative image as the first target image;

[0036] Wherein, the first video information includes at least one first alternative image, and each first alternative image includes at least one object in the target video.

[0037] Optionally, the first video information further includes object description information corresponding to each first alternative image, where the object description information is used to describe the object included in the first alternative image; the image selection module is configured to, when the first video information includes target description information matching the barrage text, select a first alternative image corresponding to the target description information from the first video information.

[0038] Optionally, the first video information includes an object identifier corresponding to each first alternative image, and object description information corresponding to each object identifier, where the object identifier is an identifier of an object included in the first alternative image, and the image selection module is configured to determine a target object identifier corresponding to the target description information from the first video information, and select a first alternative image corresponding to the target object identifier.

[0039] Optionally, the first video information includes an image identifier corresponding to each first alternative image, and each image identifier is obtained by combining an object identifier of an object included in the corresponding first alternative image with a video identifier of the target video. The image selection module is configured to:

[0040] Combine the target object identifier with the video identifier of the target video to obtain a target image identifier;

[0041] Select a first alternative image corresponding to the target image identifier from the first video information.

[0042] Optionally, the apparatus further includes:

[0043] A video information acquisition module, configured to download the first video information from a server in response to a play instruction for the target video;

[0044] The video information acquisition module is further configured to verify the first video information, and store the first video information when the verification is passed.

[0045] Optionally, the target video is any one of a set of target videos, and there is an association relationship between multiple videos in the set of target videos. The image selection module is configured to:

[0046] In a case where there is no first alternative image including the target object in the first video information, based on the target object described in the bullet screen text, select a second alternative image including the target object from the stored second video information, and use the selected second alternative image as the first target image;

[0047] Wherein, the second video information includes at least one second alternative image, and each second alternative image includes at least one object in at least one video in the set of target videos.

[0048] Optionally, the apparatus further includes:

[0049] The video information acquisition module is further configured to download the second video information from a server in response to a play instruction for any video in the set of target videos;

[0050] The video information acquisition module is further configured to verify the second video information, and store the second video information when the verification is passed.

[0051] Optionally, the image selection module is further configured to, when the first barrage information includes a matching flag corresponding to the barrage text, select a first alternative image including the target object based on the target object described by the barrage text, where the matching flag indicates an image that matches the displayed barrage text.

[0052] Optionally, the barrage information display module is further configured to display the first barrage information when the first barrage information includes a second target image corresponding to the barrage text.

[0053] Optionally, the image selection module is configured to:

[0054] When the automatic matching function is in an enabled state, select the first target image including the target object based on the target object described by the barrage text.

[0055] Optionally, the device further includes:

[0056] A matching function enabling module, configured to set the state of the automatic matching function to an enabled state in response to an enabling operation on an automatic matching control in a barrage setting interface.

[0057] Optionally, the barrage information display module is configured to display the first target image before the barrage text.

[0058] Optionally, the barrage information display module is configured to display the second barrage information based on barrage setting information, where the barrage setting information includes at least one of a font, a font color, or a background color of the barrage text.

[0059] On the other hand, a barrage information sending device is provided, and the device includes:

[0060] A barrage text acquisition module, configured to acquire a barrage text input in a barrage sending interface of a target video;

[0061] A barrage information sending module, configured to send first barrage information including the barrage text and a corresponding matching flag to a server in response to a sending operation on the barrage text, where the matching flag indicates an image that matches the displayed barrage text;

[0062] Among them, the server is used to send the bullet screen text and the matching flag to the terminal playing the target video, and the terminal is used to select a first target image containing the target object based on the target object described in the bullet screen text, and display a second bullet screen information including the bullet screen text and the first target image.

[0063] Optionally, the bullet screen information sending module is used to send the first bullet screen information to the server in response to the sending operation of the bullet screen text when the automatic matching function is in the enabled state.

[0064] Optionally, the device further includes:

[0065] A matching function enabling module, which is used to set the state of the automatic matching function to the enabled state in response to the enabling operation on the automatic matching control in the bullet screen setting interface;

[0066] The matching function enabling module is further used to switch the automatic matching function to the enabled state in response to the triggering operation on the state switching control in the bullet screen sending interface when the automatic matching function is in the disabled state.

[0067] Optionally, the bullet screen information sending module is further used to send third bullet screen information to the server in response to the sending operation of the bullet screen text when the automatic matching function is in the disabled state, and the third bullet screen information includes the bullet screen text and does not include the matching flag.

[0068] Optionally, the device further includes:

[0069] A matching function disabling module, which is used to set the state of the automatic matching function to the disabled state in response to the disabling operation on the automatic matching control in the bullet screen setting interface;

[0070] The matching function disabling module is further used to switch the automatic matching function to the disabled state in response to the triggering operation on the state switching control in the bullet screen sending interface when the automatic matching function is in the enabled state.

[0071] On the other hand, a computer device is provided. The computer device includes a processor and a memory. At least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the bullet screen information display method described in the above aspect, or to implement the operations performed in the bullet screen information sending method described in the above aspect.

[0072] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the barrage information display method described in the above aspect, or to implement the operations performed in the barrage information sending method described in the above aspect.

[0073] On the other hand, a computer program product or a computer program is provided. The computer program product or the computer program includes computer program code. The computer program code is stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the operations performed in the barrage information display method described in the above aspect, or so that the computer device implements the operations performed in the barrage information sending method described in the above aspect.

[0074] The beneficial effects brought by the technical solutions provided in the embodiments of the present application at least include:

[0075] In the solution provided in the embodiment of the present application, after obtaining the barrage text of the target video being played, a corresponding first target image is first matched for the barrage text, and the first target image includes the target object described in the barrage text. Then, the barrage information including the barrage text and the first target image is displayed, so that the displayed barrage information not only includes the barrage text, but also includes the first target image related to the target video currently being played, enriching the display form of the barrage information and improving the display effect of the barrage information.

[0076] In the solution provided in the embodiment of the present application, when sending barrage information, not only the barrage text is sent, but also the matching flag corresponding to the barrage text is sent to indicate that when the barrage text is subsequently displayed, the target image matching the barrage text is displayed, thereby enriching the display form of the barrage information and improving the display effect of the barrage information. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0078] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0079] Figure 2 is a flowchart of a barrage information display method provided by an embodiment of the present application;

[0080] Figure 3 It is a flowchart of another method for displaying bullet screen information provided by an embodiment of the present application;

[0081] Figure 4 It is a schematic diagram of matching a first target image provided by an embodiment of the present application;

[0082] Figure 5 It is a schematic diagram of a bullet screen setting interface provided by an embodiment of the present application;

[0083] Figure 6 It is a schematic diagram of a playback interface provided by an embodiment of the present application;

[0084] Figure 7 It is a schematic diagram of the number of bullet screen information provided by an embodiment of the present application;

[0085] Figure 8 It is a flowchart of another method for displaying bullet screen information provided by an embodiment of the present application;

[0086] Figure 9 It is a schematic diagram of the video information downloading process provided by an embodiment of the present application;

[0087] Figure 10 It is a flowchart of another method for displaying bullet screen information provided by an embodiment of the present application;

[0088] Figure 11 It is a flowchart of a method for sending bullet screen information provided by an embodiment of the present application;

[0089] Figure 12 It is a flowchart of another method for sending bullet screen information provided by an embodiment of the present application;

[0090] Figure 13 It is a schematic diagram of a bullet screen setting interface provided by an embodiment of the present application;

[0091] Figure 14 It is a schematic diagram of a bullet screen sending interface provided by an embodiment of the present application;

[0092] Figure 15 It is a schematic diagram of the structure of a bullet screen information display device provided by an embodiment of the present application;

[0093] Figure 16 It is a schematic diagram of the structure of another bullet screen information display device provided by an embodiment of the present application;

[0094] Figure 17 It is a schematic diagram of the structure of a bullet screen information sending device provided by an embodiment of the present application;

[0095] Figure 18It is a schematic structural diagram of another barrage information sending device provided by an embodiment of the present application;

[0096] Figure 19 It is a schematic structural diagram of a terminal provided by an embodiment of the present application;

[0097] Figure 20 It is a schematic structural diagram of a server provided by an embodiment of the present application. Detailed implementation manners

[0098] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0099] It can be understood that the terms "first", "second", etc. used in the present application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the present application, the first barrage information may be called the second barrage information, and the second barrage information may be called the first barrage information.

[0100] The terms "at least one", "multiple", "each", "any one", etc. used in the present application, at least one includes one, two or more than two, multiple includes two or more than two, each refers to each of the corresponding multiple, and any one refers to any one of the multiple. For example, multiple alternative images include 3 alternative images, and each alternative image refers to each of these 3 alternative images, and any one refers to any one of these 3 alternative images, which may be the first, the second, or the third.

[0101] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application. Refer to Figure 1 , this implementation environment includes at least one terminal 101 ( Figure 1 taking 3 as an example in

[0102] The target application provided by the server 102 is installed on the terminal 101. The terminal 101 can implement functions such as video playback, barrage display, data transmission, and message interaction through the target application. Optionally, the terminal 101 is a computer, a mobile phone, a tablet computer, an in-vehicle computer, or other terminals. Optionally, the target application is a target application in the operating system of the terminal 101 or a target application provided by a third party. For example, the target application is a content sharing application, which has the function of content sharing. Of course, the content sharing application can also have other functions, such as a review function, a shopping function, a navigation function, a game function, etc. Optionally, the server 102 is 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, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0103] Figure 2 It is a flowchart of a method for displaying barrage information provided by an embodiment of the present application. The execution subject of the embodiment of the present application is the terminal. Refer to Figure 2 and the method includes the following steps:

[0104] 201. The terminal obtains first barrage information corresponding to the target video being played, and the first barrage information includes barrage text.

[0105] Wherein, the target video is any video being played, and the first barrage information is any barrage information corresponding to the target video, that is, the first barrage information is sent by the user when watching the target video, and the barrage text is the text content input by the user.

[0106] 202. The terminal selects a first target image containing the target object based on the target object described by the barrage text.

[0107] Wherein, the barrage text is used to describe the target object, the target object is an object included in the target video, and the first target image includes the target object, that is, the first target image can be an image in the target video or other images containing the target object.

[0108] 203. The terminal displays second barrage information, and the second barrage information includes barrage text and the first target image.

[0109] After the terminal matches the first target image for the barrage text, it displays the barrage text and the first target image as the second barrage information, that is, the terminal displays the barrage text and the first target image simultaneously.

[0110] The method provided by the embodiment of the present application, after obtaining the bullet screen text of the target video being played, first matches the corresponding first target image for the bullet screen text, and the first target image includes the target object described by the bullet screen text, and then displays the bullet screen information including the bullet screen text and the first target image, so that the displayed bullet screen information not only includes the bullet screen text, but also includes the first target image related to the target video being played currently, enriching the display form of the bullet screen information and improving the display effect of the bullet screen information.

[0111] The above Figure 2 The embodiment shown briefly introduces the display mode of the bullet screen information. The following is a detailed description of the process of matching the first target image corresponding to the bullet screen text based on the first video information through the Figure 3 embodiment shown.

[0112] Figure 3 It is a flowchart of a method for displaying bullet screen information provided by an embodiment of the present application. The execution subject of the embodiment of the present application is a terminal. Refer to Figure 3 and the method includes the following steps:

[0113] 301. The terminal obtains the first video information of the target video.

[0114] Among them, the target video is any video, and the first video information includes at least one first alternative image, and each first alternative image includes at least one object in the target video. Optionally, the first alternative image is a video frame in the target video, or a region in the video frame that includes at least one object, or other image that includes at least one object in the target video. The embodiment of the present application does not limit the first alternative image, or the first alternative image is a dynamic image. For example, the first alternative image is an image in gif format.

[0115] In a possible implementation manner, the terminal is installed with a target application. For example, the target application is a video playback application, a live broadcast application, or other applications. When the terminal plays the target video through the target application, it obtains the first video information of the target video.

[0116] Optionally, in the case of playing the target video for the first time, the terminal responds to the play instruction for the target video, downloads the first video information of the target video from the server, and then stores the first video information. After that, when the terminal plays the first video information again, it directly obtains the stored first video information without having to obtain it from the server again, improving the efficiency of obtaining the first video information; or each time the terminal plays the target video, it downloads the first video information of the target video from the server. Among them, the server is used to provide services for the target application.

[0117] In a possible implementation, after the terminal downloads the first video information from the server, it verifies the first video information. If the verification passes, the first video information is stored. Among them, verifying the first video information includes verifying the integrity and legality of the first video information. For example, verifying the first video information based on the hash value or using other methods to verify the first video information, which is not limited in this application.

[0118] Optionally, the first video information stored in the server is sent to the server by other devices. For example, the first video information is sent to the server by the terminal used by the technician. The terminal responds to the technician's operation of intercepting the target video, and intercepts the video frame containing the object from the target video as the first alternative image; or the server automatically identifies the video frame containing the object in the target video, and then intercepts the video frame as the first alternative image. The embodiments of this application do not limit the method for the server to obtain the first video information.

[0119] In a possible implementation, the terminal stores the first video information in the sandbox corresponding to the target application, that is, stores the first video information in the storage space corresponding to the target application.

[0120] 302. The terminal obtains the first barrage information corresponding to the target video.

[0121] Among them, the first barrage information is any barrage information corresponding to the target video.

[0122] In a possible implementation, the terminal obtains the first barrage information in response to the play instruction for the target video. Or, each barrage information has a corresponding display time. During the process of playing the target video, the terminal obtains the first barrage information at any time before the target video is played to the display time corresponding to the first barrage information. The embodiments of this application do not limit the acquisition time of the first barrage information.

[0123] In a possible implementation, when the terminal enables the barrage display function, it obtains the first barrage information. When the barrage display function is not enabled, it no longer obtains the first barrage information. Among them, the barrage display function refers to the function of displaying the barrage information corresponding to the video while playing the video.

[0124] Optionally, the first bullet screen information includes bullet screen text and a corresponding matching flag, where the matching flag indicates an image that matches the displayed bullet screen text; alternatively, the first bullet screen information includes bullet screen text and a corresponding second target image; or the first bullet screen information includes bullet screen text and does not include a corresponding matching flag and second target image. Alternatively, the first bullet screen information further includes bullet screen setting information, and the bullet screen setting information includes at least one of the font, font color, or background color of the bullet screen text, that is, the bullet screen setting information is used to set the form style of the bullet screen text.

[0125] In the embodiment of the present application, the first bullet screen information is bullet screen information sent by any terminal and stored in the server. When the current terminal plays the target video, it obtains the first bullet screen information from the server.

[0126] It should be noted that the embodiment of the present application only takes the first bullet screen information as an example for illustration. In another embodiment, for multiple bullet screen information of the target video, the terminal can, in response to a play instruction for the target video, obtain the multiple bullet screen information at the same time, or during the process of playing the target video, based on the display time corresponding to each bullet screen information, obtain the multiple bullet screen information in sequence. For example, if a certain bullet screen information is sent when the target video is played to the tenth minute, then this bullet screen information also needs to be displayed at the tenth minute. Then the terminal can obtain bullet screen information from the server every reference duration during the process of playing the target video. For example, if the reference duration is two minutes, then the terminal, in response to a play instruction for the target video, obtains the bullet screen information within the first two minutes of the target video.

[0127] 303. The terminal selects a first alternative image containing the target object from the stored first video information based on the target object described by the bullet screen text, and uses the selected first alternative image as the first target image corresponding to the bullet screen text.

[0128] In the embodiment of the present application, the bullet screen text can describe any target object, and the first video information includes at least one first alternative image, and each first alternative image includes at least one object in the target video. For example, if the bullet screen text is "The acting skills of actor A are very good", then this bullet screen text describes "actor A", and it is necessary to select a first alternative image including "actor A" from at least one first alternative image.

[0129] In a possible implementation, when the first barrage message includes a matching flag corresponding to the barrage text, the terminal selects a first alternative image containing the target object based on the target object described by the barrage text. That is, the terminal can determine the image to be displayed that matches the barrage text based on the matching flag included in the first barrage message, and match the corresponding first target image for the barrage text. The matching flag is added when sending the barrage text, that is, the matching flag can indicate whether the user sending the barrage text hopes to display the image corresponding to the barrage text. When the first barrage message includes the matching flag corresponding to the barrage text, it means that the user hopes to display the corresponding image when displaying the barrage text.

[0130] In a possible implementation, the first video information further includes object description information corresponding to each first alternative image, and the object description information is used to describe the object included in the first alternative image; the terminal determines whether the object description information in the at least one object description information included in the first video information includes the object description information in the barrage text by comparing the at least one object description information included in the first video information with the barrage text. When the first video information includes target description information that matches the barrage text, the terminal selects a first alternative image corresponding to the target description information from the first video information. The object description information is the name, nickname, or other information describing the object. For example, if the role played by actor A in the target video is "Zhang San", then both "actor A" and "Zhang San" are object description information.

[0131] In a possible implementation, when the first video information includes an object identifier corresponding to each first alternative image and object description information corresponding to each object identifier, after the terminal determines that the first video information includes the target description information, the terminal determines the target object identifier corresponding to the target description information from the first video information and selects the first alternative image corresponding to the target object identifier. The object identifier is the identifier of the object included in the first alternative image, and the object identifier is the unique identifier corresponding to the object. The object identifier and the corresponding object description information may be the same or different, and each object description information has a unique corresponding object identifier, but each object identifier may correspond to at least one object description information. For example, the object description information corresponding to the target object is "actor A", the object identifier corresponding to "actor A" is "yanyuanA", and the role played by "actor A" in the target video is "Zhang San", then the object identifier corresponding to "Zhang San" is also "yanyuanA".

[0132] In a possible implementation, the first video information includes an image identifier corresponding to each first alternative image. Each image identifier is obtained by combining the object identifier of the object included in the corresponding first alternative image with the video identifier of the target video. After the terminal determines the target object identifier, it combines the target object identifier with the video identifier of the target video to obtain the target image identifier; and selects the first alternative image corresponding to the target image identifier from the first video information. Herein, the image identifier is used to uniquely identify a first alternative image, and the object identifier and the video identifier can be combined in any manner. For example, symbols such as an underscore or a colon are added between the object identifier and the video identifier, or the object identifier and the video identifier are directly concatenated together.

[0133] For example, referring to Figure 4 the schematic diagram of image matching shown in the figure, the bullet screen text sent by the user is "The acting skills of actor A1 are quite good". The first video information corresponding to the target video includes object description information such as "actor A1", "actor A2", "actor B", and "actor C". After matching "actor A1" from multiple object description information, the object identifier "yanyuanA" corresponding to "actor A1" is combined with the video identifier "3" of the target video to obtain the image identifier "yanyuanA_3", and the corresponding "image of actor A" is matched according to this image identifier.

[0134] In a possible implementation, when the automatic matching function of the terminal is in the enabled state, the terminal selects the first target image that includes the target object based on the target object described in the bullet screen text. Herein, the automatic matching function refers to the function that the terminal automatically matches the corresponding image for the bullet screen text after obtaining the bullet screen text. The automatic matching function being in the enabled state means that the current terminal has enabled the automatic matching function.

[0135] In a possible implementation, in response to an enabling operation on the automatic matching control in the bullet screen setting interface, the terminal sets the state of the automatic matching function to the enabled state, that is, enables the automatic matching function. For example, referring to Figure 5 the bullet screen setting interface 501 shown in the figure, the automatic matching control 511 corresponding to the automatic matching function is in the enabled state.

[0136] In another possible implementation, when the automatic matching function of the terminal is in the enabled state and the first bullet screen information includes a matching flag corresponding to the bullet screen text, the terminal selects the first target image that includes the target object based on the target object described in the bullet screen text.

[0137] In addition, in another embodiment, when the barrage text does not describe any object, the barrage text is directly displayed without performing the operation of step 303; when the first alternative image corresponding to the target object described in the barrage text is not found in the first video information, the barrage text is also directly displayed without performing the operation of step 303.

[0138] 304. The terminal displays the second barrage information, where the first target image is displayed before the barrage text.

[0139] In the embodiment of the present application, the terminal displays the second barrage information including the barrage text and the first target image, and when displaying, the barrage text is displayed before the first target image. For example, referring to Figure 6 the barrage information 611 in the shown playback interface 601, the first target image is displayed in the form of an avatar before the barrage text "Zhang San's acting skills are very good".

[0140] In a possible implementation manner, the terminal displays the second barrage information based on the barrage setting information, where the barrage setting information includes at least one of the font, font color, or background color of the barrage text. That is, the font and font color in the barrage text are displayed according to the barrage setting information, and the background area of the barrage text is displayed according to the background color. For example, if the barrage setting information includes "KaiTi black" and "blue", when the barrage text is displayed, the font of the barrage text is KaiTi black, and the background area of the barrage text is "blue".

[0141] In a possible implementation manner, after the target description information corresponding to the barrage text is matched, when the barrage text is displayed, the object description information in the barrage text is made bold, the color of the object description information is changed, the font of the object description information is replaced, etc., so as to highlight the object description information in the barrage text. For example, if the barrage text is "Zhang San's acting skills are okay", and it is matched that the object description information "Zhang San" is included in the barrage text, then "Zhang San" is displayed in a color different from other texts in the barrage text.

[0142] In a possible implementation manner, referring to Figure 5 , the user can set the moving speed of the barrage information through the barrage setting interface, then when the terminal displays the second barrage information, it obtains the barrage moving speed set by the current terminal and moves the second barrage information according to the barrage moving speed; or, the terminal can also set the display area of the barrage information, for example, set that the barrage information can be displayed full screen in the playback interface, displayed in the upper quarter area of the playback interface, etc.

[0143] It should be noted that the above embodiments are only described by taking the first barrage information including the matching flag corresponding to the barrage text as an example. In another embodiment, when the first barrage information does not include the matching flag but includes the second target image corresponding to the barrage text, the terminal displays the first barrage information, that is, the terminal directly displays the barrage text and the corresponding second target image, and the second target image is sent together when the user sends the barrage text. Among them, the display method of the first barrage information is the same as that of the above second barrage information, and will not be elaborated here again.

[0144] It should be noted that the embodiments of the present application are only described by taking the first barrage information as an example. In another embodiment, for other barrage information corresponding to the target video, the above embodiment method can be used for display.

[0145] It should be noted that the embodiments of the present application are only described by taking the target video as an example. In another embodiment, for any video, the above implementation manner can be used to display barrage information. The difference is that the first alternative images included in the first video information corresponding to different videos may be different.

[0146] In addition, in a possible implementation manner, during the process of displaying barrage information, in order to ensure the smoothness of the barrage information, for multiple barrage information of the target video, according to the display time corresponding to each barrage information, determine the number of barrages to be displayed within each unit time, and it is necessary to release the memory of the terminal in advance according to the number of barrage information to be displayed, that is, when the number of barrage information is greater than the reference threshold, the memory of the terminal is released in advance. For example, the terminal ends other threads that are currently running to release the memory and improve the utilization rate of hardware resources. For example, the reference threshold is 400. Refer to Figure 7 ., from the 0th minute to the 1st minute of the target video, the number of barrage information is 100, from the 1st minute to the 3rd minute the number of barrage information is 500, from the 3rd minute to the 6th minute the number of barrage information is 200, and from the 6th minute to the 9th minute the number of barrages is 300. Then, before playing the target video from the 1st minute to the 3rd minute, it is necessary to release the memory of the terminal in advance.

[0147] The method provided by the embodiments of the present application, after obtaining the barrage text of the played target video, first matches the corresponding first target image for the barrage text, and the first target image includes the target object described by the barrage text, and then displays the barrage information including the barrage text and the first target image, so that the displayed barrage information not only includes the barrage text, but also includes the first target image related to the currently played target video, enriching the display form of the barrage information and improving the display effect of the barrage information.

[0148] Moreover, in the embodiment of the present application, the process of displaying the barrage information is automatically executed by the terminal without user operation, which will not affect the user's viewing of the target video.

[0149] Moreover, for multiple target videos, the first alternative images included in the first video information corresponding to different target videos are also different. Therefore, for different videos, different target images can be matched for the barrage text, thereby further improving the display effect of the barrage information and making it easier to attract users to watch the target video.

[0150] In addition, in a possible implementation manner, for the process of displaying multiple barrage information of the target video, refer to Figure 8 , and the execution subject of this display process is the terminal, including the following steps:

[0151] 801. Display the playback interface of the target video.

[0152] In the embodiment of the present application, it is illustrated by taking the example that the terminal has stored the downloaded first video information in the sandbox before displaying the playback interface of the target video.

[0153] 802. Cache the object description information corresponding to the target video.

[0154] 803. Load the first barrage information, which includes the barrage text and the corresponding matching flag.

[0155] 804. Determine whether there is object description information that matches the barrage text. If there is matching object description information, execute step 805; if there is no matching object description information, execute step 812.

[0156] 805. Determine whether there is a corresponding cached first alternative image for the barrage text. If there is a corresponding cached first alternative image for the barrage text, execute step 809; if there is no corresponding cached first alternative image for the barrage text, execute step 806.

[0157] 806. Determine whether there is a corresponding downloaded first alternative image for the barrage text in the sandbox. If there is a corresponding downloaded first alternative image for the barrage text in the sandbox, execute step 807; if there is no corresponding downloaded first alternative image for the barrage text in the sandbox, execute step 812.

[0158] 807. Load the first alternative image in the sandbox.

[0159] 808. Cache the first alternative image.

[0160] 809. Render the barrage text and the corresponding first alternative image.

[0161] 810. Display the bullet screen information including the bullet screen text and the first alternative image.

[0162] 811. Determine whether all the bullet screen information corresponding to the target video has been displayed. If all has been displayed, execute step 812; if not all has been displayed, execute step 803.

[0163] 812. End the display of the bullet screen information.

[0164] Figure 8 In the embodiment shown, the process of determining whether there is a corresponding first alternative image is the same as step 303 above and will not be elaborated here.

[0165] In the embodiment of the present application, after the terminal downloads the first video information, it first stores the first video information in the sandbox. When the first video information is needed, it then loads the first video information from the sandbox, caches the first video information, and when matching the corresponding image for the bullet screen text, directly selects the corresponding first alternative image from the cached first video information. After the terminal caches the first video information, when performing the bullet screen text matching again, it can directly select the corresponding first alternative image from the cached first video information without having to load it from the sandbox again, thereby improving the efficiency of matching the corresponding first alternative image for the bullet screen text.

[0166] In a possible implementation manner, in order to prevent the first video information from occupying a large amount of cache space and affecting the running speed of the terminal, the terminal clears the cached first video information every reference duration. For example, the terminal detects the cache time of the first video information, and when the time interval between the cache time of the first video information and the current time exceeds the reference duration, clears the first video information. Here, the reference duration is any duration. For example, the reference duration is 7 days, 1 month, etc.

[0167] The above embodiments are only described by taking one target video as an example. In another embodiment, the target video is any one of the target video set, and there is an association relationship among the multiple videos in the target video set. The following is for the case where the target video is any one of the target video set. The display process of the bullet screen information will be described:

[0168] When the target video is any video in the target video set and there is no first alternative image containing the target object in the first video information, the terminal selects, from the stored second video information, a second alternative image containing the target object based on the target object described in the bullet screen text, and uses the selected second alternative image as the first target image. The second video information includes at least one second alternative image, and each second alternative image contains at least one object in at least one video in the target video set. The second alternative images included in the second video information are not exactly the same as the first alternative images included in the first video information above.

[0169] Among them, the second video information is common video information, that is, for each target video in the target video set, when the corresponding first target image cannot be selected from the first video information corresponding to the target video in the bullet screen text corresponding to the target video, a second alternative image can be selected from the second video information as the first target image.

[0170] In a possible implementation manner, the terminal downloads the second video information from the server in response to a play instruction for any video in the target video set. That is, when playing any video in the target video set, the second video information has been downloaded.

[0171] In a possible implementation manner, the terminal verifies the second video information and stores the second video information if the verification passes. Among them, the verification method for the second video information is the same as the verification method for the first video information above, and will not be elaborated here.

[0172] For the download processes of the first video information and the second video information, see Figure 9 , if the target video set is a multi-episode TV drama, then when the terminal plays any one of the episodes, it downloads the second video information. When playing the x-th episode, it downloads the first video information corresponding to the x-th episode, and then when playing the (x + 1)-th episode, it downloads the first video information corresponding to the (x + 1)-th episode, and then when playing the (x + 2)-th episode, it downloads the first video information corresponding to the (x + 3)-th episode. Where x is a positive integer not less than 1.

[0173] In a possible implementation manner, for the case of multiple target videos, the display process of the bullet screen information is shown in Figure 10 , the execution entity of the display process is the terminal, and the display process includes the following steps:

[0174] 1001. Display the play interface of the target video.

[0175] 1002. Determine whether there is second video information corresponding to a target video set including the target video. If there is second video information, execute step 1005; if there is no second video information, execute step 1003.

[0176] 1003. Download the second video information.

[0177] 1004. Determine whether the second video information is legal and complete. If it is legal and complete, execute step 1005; if it is not legal and complete, execute step 1009.

[0178] 1005. Download the first video information corresponding to the target video.

[0179] 1006. Determine whether the first video information is legal and complete. If it is legal and complete, execute step 1007; if it is not legal and complete, execute step 1009.

[0180] 1007. Execute the process of matching and displaying bullet screen text, that is, execute the above process of matching bullet screen text with the target image and displaying the bullet screen text and the target image.

[0181] 1008. Determine whether there is an update to the target video in the target video set. If there is an updated target video, execute step 1001; if there is no updated target video, execute step 1009.

[0182] 1009. End the process of displaying bullet screen information.

[0183] In the embodiments of the present application, in the case of multiple target videos, not only the first video information corresponding to each target video is provided, but also the second video information corresponding to the multiple target videos is provided. Thus, in the case where the target image for bullet screen text matching is not included in the first video information, the target image can still be selected from the second video information, thereby providing multiple images for selection and making the method of selecting the target image more flexible.

[0184] The above embodiments introduce the process of the terminal displaying bullet screen information. Before the terminal displays bullet screen information, the terminal needs to first send bullet screen information. The terminal sending the bullet screen information and the terminal displaying the bullet screen information can be the same terminal or different terminals, and the present application does not limit this. The following Figure 11 shows an embodiment to introduce the process of sending bullet screen information:

[0185] Figure 11 is a flowchart of a method for sending bullet screen information provided by an embodiment of the present application. Refer to Figure 11, the execution entity of this method is the terminal, and this method includes the following steps:

[0186] 1101. The terminal obtains the bullet screen text input in the bullet screen sending interface of the target video.

[0187] Among them, the bullet screen sending interface of the target video is used to send the bullet screen text corresponding to the target video, and the bullet screen text is input by the user through means such as the keyboard and voice.

[0188] 1102. In response to the sending operation of the bullet screen text, the terminal sends the first bullet screen information to the server, and the first bullet screen information includes the bullet screen text and the corresponding matching flag.

[0189] Among them, the matching flag indicates the image that matches the displayed bullet screen text. When sending the bullet screen text, the terminal sends the matching flag corresponding to the bullet screen text, so as to indicate that when the bullet screen text is subsequently displayed, the target image that matches the bullet screen text is displayed.

[0190] After receiving the first bullet screen information, the server stores the first bullet screen information, and subsequently sends the bullet screen text and the matching flag to the terminal that plays the target video. The terminal that plays the target video selects the first target image containing the target object based on the target object described by the bullet screen text, and displays the second bullet screen information including the bullet screen text and the first target image, that is, the terminal that plays the target video can adopt the above Figures 2 - 10 shown implementation manner to display the second bullet screen information.

[0191] The method provided by the embodiment of the present application, when sending bullet screen information, not only sends the bullet screen text, but also sends the matching flag corresponding to the bullet screen text, so as to indicate that when the bullet screen text is subsequently displayed, the target image that matches the bullet screen text is displayed, thereby enriching the display form of the bullet screen information and improving the display effect of the bullet screen information.

[0192] Figure 12 is a flowchart of another method for sending bullet screen information provided by the embodiment of the present application. See Figure 11 , the execution entity of this method is the terminal, and this method includes the following steps:

[0193] 1201. The terminal obtains the bullet screen text input in the bullet screen sending interface of the target video.

[0194] Among them, the bullet screen sending interface is located on the upper layer of the video playing interface, and the bullet screen text is the content input by the user through the bullet screen sending interface. The bullet screen text includes at least one of text or expressions.

[0195] For example, the terminal displays a bullet screen information sending area in the video playing interface. The user clicks on the bullet screen information sending area, and the keyboard pops up. The user inputs the bullet screen text to be sent through the keyboard.

[0196] 1202. The terminal enables the automatic matching function.

[0197] In the embodiments of the present application, when the terminal enables the automatic matching function, the sent barrage information includes a matching flag corresponding to the barrage text, to indicate that when the barrage text is subsequently displayed, it is necessary to first match a corresponding image for the barrage text, and display the barrage text and the matched image together.

[0198] The embodiments of the present application can enable the automatic matching function based on the following two implementation manners:

[0199] The first one: In response to the operation of enabling the automatic matching control in the barrage setting interface, the terminal sets the state of the automatic matching function to the enabled state, thereby enabling the automatic matching function. For example, referring to Figure 13 the shown barrage setting interface 1301, when the user clicks the automatic matching control 1311 in the state where the automatic matching control 1311 is closed, the automatic matching control 1311 is enabled, thereby enabling the automatic matching function.

[0200] The second one: When the automatic matching function is in the closed state, in response to the triggering operation of the state switching control in the barrage sending interface, the terminal switches the automatic matching function to the enabled state. For example, referring to Figure 14 the shown barrage sending interface 1401, the user clicks the state switching control 1411 to switch the automatic matching function to the enabled state.

[0201] It should be noted that the difference between the above two implementation manners is that after enabling the automatic matching function in the first way, when playing any video, the automatic matching function is in the enabled state; after enabling the automatic matching function in the second way, only for the barrage text input in the currently opened barrage sending interface, the automatic matching function is enabled, and then when the barrage sending interface is reopened or for other target videos, the automatic matching function is still in the closed state.

[0202] It should be noted that for the second way of enabling the automatic matching function, the embodiments of the present application only take the example of first obtaining the input barrage text and then enabling the automatic matching function. In another embodiment, the automatic matching function can be enabled first and then the input barrage text can be obtained. That is to say, it is only necessary to enable the automatic matching function before sending the first barrage information including the barrage text.

[0203] 1203. When the automatic matching function is in the enabled state, in response to the operation of sending the barrage text, the terminal sends the first barrage information including the barrage text and the corresponding matching flag to the server.

[0204] In the embodiments of the present application, after the terminal detects a sending operation on the bullet screen text, it determines whether the automatic matching function is in an enabled state. If it is in the enabled state, when sending the bullet screen text, a corresponding matching flag is sent to indicate that the corresponding image needs to be displayed when the bullet screen text is subsequently displayed. Wherein, the sending operation on the bullet screen text is a triggering operation on the sending control corresponding to the bullet screen text in the bullet screen sending interface, or a triggering operation on the sending control on the keyboard, or other operations for sending the bullet screen text.

[0205] In a possible implementation manner, after the terminal sends the first bullet screen information, the terminal uses the above-described implementation manner of displaying the bullet screen information to display the second bullet screen information corresponding to the first bullet screen information. The process of displaying the bullet screen information will not be described in detail here.

[0206] In a possible implementation manner, after the server receives the first bullet screen information, it stores the first bullet screen information corresponding to the target video. Subsequently, when any terminal plays the target video, it can obtain the first bullet screen information from the server.

[0207] In a possible implementation manner, the user can set the font, font color, or background color of the bullet screen text through the bullet screen setting interface. The terminal obtains the bullet screen setting information based on the font, font color, or background color selected by the user. Then, the first bullet screen information sent by the terminal also includes the bullet screen setting information, so that subsequent terminals can display the bullet screen text based on the bullet screen setting information. For example, refer to Figure 5 , the user can slide the color adjustment bar to select the corresponding text color, and the color panel area further divides the colors, and more colors can be selected from the color panel area.

[0208] In another embodiment, refer to Figure 13 the bullet screen setting interface shown. The bullet screen setting interface further includes a perfect match control corresponding to the perfect match function. When the perfect match function is enabled, when the terminal sends the bullet screen text, it can also display multiple third alternative images. In response to the user's selection operation on any of the third alternative images, the selected third alternative image is used as the second target image, and the first bullet screen information including the bullet screen text and the second target image is sent to the server. Subsequently, after the subsequent terminal obtains the first bullet screen information from the server, it directly displays the bullet screen text and the corresponding second target image. Among them, the multiple third alternative images may be the same as or different from the above-mentioned first alternative images and second alternative images.

[0209] In the embodiments of the present application, only one of the automatic matching function and the perfect match function can be enabled, that is, when the automatic matching function is enabled, the perfect match function cannot be enabled; when the perfect match function is enabled, the automatic matching function cannot be enabled.

[0210] In another embodiment, when the automatic matching function of the terminal is in the off state, in response to an operation of sending barrage text, the terminal sends third barrage information to the server, where the third barrage information includes the barrage text and does not include a matching flag.

[0211] The embodiments of the present application can turn off the automatic matching function based on the following two implementation manners: The first one: The terminal responds to an operation of turning off the automatic matching control in the barrage setting interface, and sets the state of the automatic matching function to the off state. The second one: When the automatic matching function of the terminal is in the on state, in response to a triggering operation on the state switching control in the barrage sending interface, the terminal switches the automatic matching function to the off state. The process of the terminal turning off the automatic matching function is the same as the above process of turning on the automatic matching function, and will not be elaborated here.

[0212] The method provided by the embodiments of the present application, when sending barrage information, not only sends the barrage text, but also sends a matching flag corresponding to the barrage text, so as to indicate that when the barrage text is subsequently displayed, a target image matching the barrage text is displayed, thereby enriching the display form of the barrage information and improving the display effect of the barrage information.

[0213] Moreover, in the embodiments of the present application, the user can set whether to display the target image matching the barrage text through the barrage setting interface or the barrage sending interface, which increases the operability of the user and improves the flexibility of the display of the barrage information.

[0214] Figure 15 It is a schematic structural diagram of a barrage information display device provided by the embodiments of the present application. Refer to Figure 15 and the device includes:

[0215] A barrage information acquisition module 1501, configured to acquire first barrage information corresponding to a target video being played, where the first barrage information includes barrage text;

[0216] An image selection module 1502, configured to select a first target image including the target object based on the target object described by the barrage text;

[0217] A barrage information display module 1503, configured to display second barrage information, where the second barrage information includes the barrage text and the first target image.

[0218] The device provided by the embodiment of the present application, after obtaining the bullet screen text of the target video being played, first matches the corresponding first target image for the bullet screen text, and the first target image includes the target object described by the bullet screen text, and then displays the bullet screen information including the bullet screen text and the first target image, so that the displayed bullet screen information not only includes the bullet screen text, but also includes the first target image related to the currently played target video, enriching the display form of the bullet screen information and improving the display effect of the bullet screen information.

[0219] Optionally, the image selection module 1502 is configured to:

[0220] Based on the target object described by the bullet screen text, select a first alternative image including the target object from the stored first video information, and use the selected first alternative image as the first target image;

[0221] Wherein, the first video information includes at least one first alternative image, and each first alternative image includes at least one object in the target video.

[0222] Optionally, the first video information further includes object description information corresponding to each first alternative image, and the object description information is used to describe the object included in the first alternative image; the image selection module 1502 is configured to, when the first video information includes target description information matching the bullet screen text, select a first alternative image corresponding to the target description information from the first video information.

[0223] Optionally, the first video information includes an object identifier corresponding to each first alternative image, and object description information corresponding to each object identifier, where the object identifier is the identifier of the object included in the first alternative image, and the image selection module 1502 is configured to determine the target object identifier corresponding to the target description information from the first video information, and select the first alternative image corresponding to the target object identifier.

[0224] Optionally, the first video information includes an image identifier corresponding to each first alternative image, and each image identifier is obtained by combining the object identifier of the object included in the corresponding first alternative image with the video identifier of the target video. The image selection module 1502 is configured to:

[0225] Combine the target object identifier with the video identifier of the target video to obtain a target image identifier;

[0226] Select a first alternative image corresponding to the target image identifier from the first video information.

[0227] Optionally, referring to Figure 16 , the device further includes:

[0228] The video information acquisition module 1504 is configured to download first video information from a server in response to a play instruction for a target video.

[0229] The video information acquisition module 1504 is further configured to verify the first video information and store the first video information if the verification passes.

[0230] Optionally, the target video is any one of a set of target videos, and there is an association relationship among multiple videos in the set of target videos. The image selection module 1502 is configured to:

[0231] In a case where a first alternative image including a target object does not exist in the first video information, select a second alternative image including the target object from the stored second video information based on the target object described in the bullet screen text, and use the selected second alternative image as the first target image;

[0232] Wherein, the second video information includes at least one second alternative image, and each second alternative image includes at least one object in at least one video in the set of target videos.

[0233] Optionally, referring to Figure 16 , the apparatus further includes:

[0234] The video information acquisition module 1504 is further configured to download second video information from a server in response to a play instruction for any video in the set of target videos.

[0235] The video information acquisition module 1504 is further configured to verify the second video information and store the second video information if the verification passes.

[0236] Optionally, the image selection module 1502 is further configured to, in a case where the first bullet screen information includes a matching flag corresponding to the bullet screen text, select a first alternative image including the target object based on the target object described in the bullet screen text, and the matching flag indicates an image matching the displayed bullet screen text.

[0237] Optionally, the bullet screen information display module 1503 is further configured to display the first bullet screen information in a case where the first bullet screen information includes a second target image corresponding to the bullet screen text.

[0238] Optionally, the image selection module 1502 is configured to:

[0239] In a case where the automatic matching function is in an enabled state, select a first target image including the target object based on the target object described in the bullet screen text.

[0240] Optionally, referring to Figure 16 , the apparatus further includes:

[0241] The matching function enabling module 1505 is configured to set the status of the automatic matching function to the enabled state in response to an enabling operation on the automatic matching control in the barrage settings interface.

[0242] Optionally, the barrage information display module 1503 is configured to display the first target image before the barrage text.

[0243] Optionally, the barrage information display module 1503 is configured to display second barrage information based on the barrage setting information, where the barrage setting information includes at least one of the font, font color, or background color of the barrage text.

[0244] All the above optional technical solutions can be combined arbitrarily to form alternative embodiments of the present application, which will not be elaborated one by one here.

[0245] It should be noted that: when the barrage information display device provided in the above embodiment displays barrage information, only the division of the above functional modules is used as an example for illustration. In actual application, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the barrage information display device provided in the above embodiment and the embodiment of the barrage information display method belong to the same concept, and the specific implementation process can be found in the method embodiment, which will not be elaborated here.

[0246] Figure 17 It is a schematic structural diagram of a barrage information sending device provided by an embodiment of the present application. Refer to Figure 17 , the device includes:

[0247] The barrage text acquisition module 1701 is configured to acquire the barrage text input in the barrage sending interface of the target video;

[0248] The barrage information sending module 1702 is configured to send first barrage information to the server in response to a sending operation on the barrage text, where the first barrage information includes the barrage text and a corresponding matching flag, and the matching flag indicates an image that matches the displayed barrage text;

[0249] Wherein, the server is configured to send the barrage text and the matching flag to the terminal that plays the target video, and the terminal is configured to select a first target image including the target object based on the target object described by the barrage text, and display second barrage information including the barrage text and the first target image.

[0250] When the device provided by the embodiment of the present application sends barrage information, it not only sends the barrage text, but also sends the matching flag corresponding to the barrage text to indicate that when the barrage text is subsequently displayed, a target image that matches the barrage text is displayed, thereby enriching the display form of the barrage information and improving the display effect of the barrage information.

[0251] Optionally, the barrage information sending module 1702 is configured to send first barrage information to the server in response to an operation of sending barrage text when the automatic matching function is in an enabled state.

[0252] Optionally, refer to Figure 18 , the apparatus further includes:

[0253] The matching function enabling module 1703 is configured to set the state of the automatic matching function to the enabled state in response to an enabling operation on the automatic matching control in the barrage setting interface;

[0254] The matching function enabling module 1703 is further configured to switch the automatic matching function to the enabled state in response to a triggering operation on the state switching control in the barrage sending interface when the automatic matching function is in a disabled state.

[0255] Optionally, the barrage information sending module 1702 is further configured to send third barrage information to the server in response to an operation of sending barrage text when the automatic matching function is in a disabled state, where the third barrage information includes the barrage text and does not include a matching flag.

[0256] Optionally, refer to Figure 18 , the apparatus further includes:

[0257] The matching function disabling module 1704 is configured to set the state of the automatic matching function to the disabled state in response to a disabling operation on the automatic matching control in the barrage setting interface;

[0258] The matching function disabling module 1704 is further configured to switch the automatic matching function to the disabled state in response to a triggering operation on the state switching control in the barrage sending interface when the automatic matching function is in an enabled state.

[0259] Any combination of the above optional technical solutions can form an optional embodiment of the present application, which will not be elaborated herein one by one.

[0260] It should be noted that when the barrage information sending apparatus provided in the above embodiment sends barrage information, only the division of the above functional modules is used for illustration. In actual application, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the barrage information sending apparatus provided in the above embodiment and the embodiment of the barrage information sending method belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be elaborated herein.

[0261] An embodiment of the present application further provides a computer device, which includes a processor and a memory. At least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the above-mentioned bullet screen information display method or bullet screen information sending method of the embodiment.

[0262] Optionally, the computer device is provided as a terminal. Figure 19 It is a schematic structural diagram of a terminal 1900 provided by an embodiment of the present application. The terminal 1900 includes: a processor 1901 and a memory 1902.

[0263] The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0264] The memory 1902 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1902 may further include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1902 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 1901 to implement the bullet screen information display method or bullet screen information sending method provided by the method embodiment of the present application.

[0265] In some embodiments, the terminal 1900 may further optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902, and the peripheral device interface 1903 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1903 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1904, a display screen 1905, a camera assembly 1906, an audio circuit 1907, and a power supply 1909.

[0266] The peripheral device interface 1903 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.

[0267] The radio frequency circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1904 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on. The radio frequency circuit 1904 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, each generation of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1904 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.

[0268] The display screen 1905 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1905 is a touch display screen, the display screen 1905 also has the ability to collect touch signals on or above the surface of the display screen 1905. The touch signals can be input to the processor 1901 as control signals for processing. At this time, the display screen 1905 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1905, which is disposed on the front panel of the terminal 1900; in other embodiments, there may be at least two display screens 1905, which are respectively disposed on different surfaces of the terminal 1900 or in a folding design; in other embodiments, the display screen 1905 may be a flexible display screen, which is disposed on a curved surface or a folding surface of the terminal 1900. Even further, the display screen 1905 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 1905 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0269] The camera module 1906 is used to capture images or videos. Optionally, the camera module 1906 includes a front camera and a rear camera. The front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to implement functions such as background blurring by fusing the main camera and the depth-of-field camera, panoramic shooting by fusing the main camera and the wide-angle camera, and VR (Virtual Reality) shooting functions or other fused shooting functions. In some embodiments, the camera module 1906 may further include a flash. The flash can be a single-color temperature flash or a two-color temperature flash. A two-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0270] The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1901 for processing, or input to the radio frequency circuit 1904 to achieve voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1900. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into inaudible sound waves for uses such as ranging. In some embodiments, the audio circuit 1907 may further include a headphone jack.

[0271] The power supply 1909 is used to supply power to each component in the terminal 1900. The power supply 1909 may be alternating current, direct current, a disposable battery or a rechargeable battery. When the power supply 1909 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0272] In some embodiments, the terminal 1900 further includes one or more sensors 1910. The one or more sensors 1910 include but are not limited to: an acceleration sensor 1911, a gyroscope sensor 1912, a pressure sensor 1913, an optical sensor 1915, and a proximity sensor 1916.

[0273] The acceleration sensor 1911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 1900. For example, the acceleration sensor 1911 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1901 can control the display screen 1905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1911. The acceleration sensor 1911 can also be used for collecting game or user movement data.

[0274] The gyroscope sensor 1912 can detect the body direction and rotation angle of the terminal 1900. The gyroscope sensor 1912 can cooperate with the acceleration sensor 1911 to collect the 3D actions of the user on the terminal 1900. Based on the data collected by the gyroscope sensor 1912, the processor 1901 can achieve the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0275] The pressure sensor 1913 can be disposed on the side frame of the terminal 1900 and / or the lower layer of the display screen 1905. When the pressure sensor 1913 is disposed on the side frame of the terminal 1900, it can detect the holding signal of the user on the terminal 1900, and the processor 1901 can perform left / right hand recognition or quick operation according to the holding signal collected by the pressure sensor 1913. When the pressure sensor 1913 is disposed on the lower layer of the display screen 1905, the processor 1901 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 1905. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0276] The optical sensor 1915 is used to collect the ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the display screen 1905 according to the ambient light intensity collected by the optical sensor 1915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the display screen 1905 is decreased. In another embodiment, the processor 1901 can also dynamically adjust the shooting parameters of the camera assembly 1906 according to the ambient light intensity collected by the optical sensor 1915.

[0277] The proximity sensor 1916, also known as the distance sensor, is disposed on the front panel of the terminal 1900. The proximity sensor 1916 is used to collect the distance between the user and the front of the terminal 1900. In one embodiment, when the proximity sensor 1916 detects that the distance between the user and the front of the terminal 1900 is gradually decreasing, the processor 1901 controls the display screen 1905 to switch from the lit state to the off state; when the proximity sensor 1916 detects that the distance between the user and the front of the terminal 1900 is gradually increasing, the processor 1901 controls the display screen 1905 to switch from the off state to the lit state.

[0278] Those skilled in the art can understand that Figure 19 the structure shown in does not constitute a limitation on the terminal 1900, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component layout.

[0279] Optionally, the computer device is provided as a server. Figure 20FIG. 0 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 2000 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPUs) 2001 and one or more memories 2002. Among them, at least one computer program is stored in the memory 2002, and the at least one computer program is loaded and executed by the processor 2001 to implement the methods provided by the above-mentioned method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output. The server may also include other components for implementing the functions of the device, which will not be elaborated here.

[0280] An embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor to implement the operations performed in the above-mentioned bullet screen information display method or bullet screen information sending method.

[0281] An embodiment of the present application also provides a computer program product or a computer program, which includes computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the operations performed in the above-mentioned bullet screen information display method or bullet screen information sending method.

[0282] In some embodiments, the computer program involved in the embodiments of the present application may be deployed to be executed on a single computer device, or on multiple computer devices located at a single location. Or, it may be executed on multiple computer devices distributed at multiple locations and interconnected through a communication network. The multiple computer devices distributed at multiple locations and interconnected through a communication network may form a blockchain system.

[0283] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk, an optical disc, etc.

[0284] The above are only optional embodiments of the embodiments of the present application, and are not intended to limit the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the embodiments of the present application shall be included in the protection scope of the present application.

Claims

1. A method for displaying barrage information, characterized in that, The method includes: Obtaining first barrage information corresponding to a target video being played, where the first barrage information includes barrage text, the target video is any video in a target video set, and there is an association relationship among multiple videos in the target video set; When the automatic matching function is in an enabled state, based on the target object described by the barrage text, select a first alternative image containing the target object from the stored first video information, and use the selected first alternative image as the first target image. The first video information includes at least one first alternative image, and each first alternative image contains at least one object in the target video. Wherein, when there is no first alternative image containing the target object in the first video information, based on the target object, select a second alternative image containing the target object from the stored second video information, and use the selected second alternative image as the first target image. The second video information includes at least one second alternative image, and each second alternative image contains at least one object in at least one video in the target video set; Display second barrage information, where the second barrage information includes the barrage text and the first target image; When the exact matching function is in an enabled state, display multiple third alternative images containing the target object. In response to a user's selection operation on any of the third alternative images, use the selected third alternative image as the second target image, and display the barrage text and the second target image; Wherein, the automatic matching function and the exact matching function are set through a barrage setting interface.

2. The method according to claim 1, characterized in that The first video information further includes object description information corresponding to each first alternative image, and the object description information is used to describe the object included in the first alternative image; The step of selecting a first alternative image containing the target object from the stored first video information based on the target object described by the barrage text includes: When the first video information includes target description information that matches the barrage text, select a first alternative image corresponding to the target description information from the first video information.

3. The method according to claim 2, wherein The first video information includes an object identifier corresponding to each first alternative image, and object description information corresponding to each object identifier. The object identifier is the identifier of the object included in the first alternative image. The step of selecting a first alternative image corresponding to the target description information from the first video information includes: Determine a target object identifier corresponding to the target description information from the first video information, and select the first alternative image corresponding to the target object identifier.

4. The method according to claim 3, wherein The first video information includes an image identifier corresponding to each first alternative image, and each image identifier is obtained by combining the object identifier of the object included in the corresponding first alternative image with the video identifier of the target video. After determining the target object identifier corresponding to the target description information from the first video information, the method further includes: Combine the target object identifier with the video identifier of the target video to obtain a target image identifier; Select a first alternative image corresponding to the target image identifier from the first video information.

5. The method according to claim 1, wherein Before selecting the first alternative image including the target object from the stored first video information based on the target object described in the bullet screen text, the method further includes: In response to a play instruction for the target video, download the first video information from the server; Verify the first video information, and store the first video information if the verification passes.

6. The method according to claim 1, wherein Before selecting a second alternative image including the target object from the stored second video information based on the target object when there is no first alternative image including the target object in the first video information, the method further includes: In response to a play instruction for any video in the target video set, download the second video information from the server; Verify the second video information, and store the second video information if the verification passes.

7. The method according to any one of claims 1-6, characterized in that, Selecting, based on the target object, a first alternative image including the target object from the stored first video information, and using the selected first alternative image as the first target image includes: When the first bullet screen information includes a matching flag corresponding to the bullet screen text, select a first alternative image including the target object based on the target object, where the matching flag indicates an image that matches the displayed bullet screen text.

8. The method according to any one of claims 1 to 6, characterized in that, Displaying the second bullet screen information includes: Display the first target image before the bullet screen text.

9. A method for sending bullet screen information, characterized in that, The method includes: Obtain the bullet screen text input in the bullet screen sending interface of the target video, where the target video is any video in the target video set, and there is an association relationship among multiple videos in the target video set; When the automatic matching function is in the enabled state, in response to a sending operation for the bullet screen text, send first bullet screen information to the server, where the first bullet screen information includes the bullet screen text and a corresponding matching flag, and the matching flag indicates an image that matches the displayed bullet screen text; Among them, the server is used to send the bullet screen text and the matching flag to the terminal playing the target video. The terminal is used to select a first alternative image containing the target object from the stored first video information based on the target object described in the bullet screen text, and use the selected first alternative image as the first target image. The first video information includes at least one first alternative image, and each first alternative image contains at least one object in the target video. Among them, in the case that there is no first alternative image containing the target object in the first video information, based on the target object, select a second alternative image containing the target object from the stored second video information, and use the selected second alternative image as the first target image. The second video information includes at least one second alternative image, and each second alternative image contains at least one object in at least one video in the target video set; display second bullet screen information, and the second bullet screen information includes the bullet screen text and the first target image; The method further includes: when the full matching function is in the on state, display a plurality of third alternative images containing the target object, and in response to the user's selection operation on any one of the third alternative images, use the selected third alternative image as the second target image, and display the bullet screen text and the second target image; Among them, the automatic matching function and the full matching function are set through the bullet screen setting interface.

10. A barrage information display device, characterized in that, The device includes: A bullet screen information acquisition module, configured to acquire first bullet screen information corresponding to the played target video. The first bullet screen information includes bullet screen text. The target video is any one of the target video set, and there is an association relationship among the multiple videos in the target video set; An image matching module, configured to, when the automatic matching function is in the on state, select a first alternative image containing the target object from the stored first video information based on the target object described in the bullet screen text, and use the selected first alternative image as the first target image. The first video information includes at least one first alternative image, and each first alternative image contains at least one object in the target video. Among them, in the case that there is no first alternative image containing the target object in the first video information, based on the target object, select a second alternative image containing the target object from the stored second video information, and use the selected second alternative image as the first target image. The second video information includes at least one second alternative image, and each second alternative image contains at least one object in at least one video in the target video set; A bullet screen information display module, configured to display second bullet screen information, and the second bullet screen information includes the bullet screen text and the first target image; The image matching module is further configured to, when the full matching function is in an enabled state, display a plurality of third alternative images including the target object, and in response to a selection operation of the user on any of the third alternative images, use the selected third alternative image as the second target image, wherein the automatic matching function and the full matching function are set through a barrage setting interface; The barrage information display module is further configured to display the barrage text and the second target image.

11. The device according to claim 10, characterized in that The first video information further includes object description information corresponding to each first alternative image, and the object description information is used to describe the object included in the first alternative image; the image matching module is configured to: When the first video information includes target description information matching the barrage text, select a first alternative image corresponding to the target description information from the first video information.

12. The device according to claim 11, characterized in that, The first video information includes an object identifier corresponding to each first alternative image, and object description information corresponding to each object identifier, where the object identifier is an identifier of the object included in the first alternative image, and the image matching module is configured to: Determine a target object identifier corresponding to the target description information from the first video information, and select a first alternative image corresponding to the target object identifier.

13. The device according to claim 12, characterized in that, The first video information includes an image identifier corresponding to each first alternative image, and each image identifier is obtained by combining the object identifier of the object included in the corresponding first alternative image with the video identifier of the target video. The image matching module is further configured to: Combine the target object identifier with the video identifier of the target video to obtain a target image identifier; Select a first alternative image corresponding to the target image identifier from the first video information.

14. The device according to claim 10, characterized in that, The device further includes a video information acquisition module, configured to: In response to a play instruction for the target video, download the first video information from a server; Verify the first video information, and store the first video information if the verification passes.

15. The device according to claim 10, characterized in that, Before selecting a second alternative image including the target object from the stored second video information based on the target object when there is no first alternative image including the target object in the first video information, the device further includes a video information acquisition module, configured to: In response to a play instruction for any video in the target video set, download the second video information from a server; Verify the second video information, and store the second video information if the verification passes.

16. The device according to any one of claims 10-15, characterized in that, The image matching module is configured to: When the first barrage information includes a matching flag corresponding to the barrage text, select a first alternative image including the target object based on the target object described by the barrage text, where the matching flag indicates to display an image matching the barrage text.

17. The device according to any one of claims 10-15, characterized in that, The barrage information display module is configured to: display the first target image before the barrage text.

18. A barrage information sending device, characterized in that, The device includes: A barrage text acquisition module, configured to acquire the barrage text input in the barrage sending interface of a target video, where the target video is any video in a target video set, and there is an association relationship among multiple videos in the target video set; A barrage information sending module, configured to, when the automatic matching function is in an enabled state, in response to a sending operation on the barrage text, send first barrage information to a server, where the first barrage information includes the barrage text and a corresponding matching flag, and the matching flag indicates an image matched with the display of the barrage text; Wherein, the server is configured to send the barrage text and the matching flag to a terminal that plays the target video, and the terminal is configured to, based on the target object described by the barrage text, select a first alternative image including the target object from the stored first video information, and use the selected first alternative image as a first target image, where the first video information includes at least one first alternative image, and each first alternative image includes at least one object in the target video. Wherein, in the case that there is no first alternative image including the target object in the first video information, based on the target object, select a second alternative image including the target object from the stored second video information, and use the selected second alternative image as the first target image, where the second video information includes at least one second alternative image, and each second alternative image includes at least one object in at least one video in the target video set; display second barrage information, where the second barrage information includes the barrage text and the first target image; The terminal is further configured to: when the full matching function is in an enabled state, display multiple third alternative images including the target object, and in response to a selection operation of the user on any one of the third alternative images, use the selected third alternative image as a second target image, and display the barrage text and the second target image; wherein, the automatic matching function and the full matching function are set through a barrage setting interface.

19. A computer device, characterized in that, The computer device includes a processor and a memory, and at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the barrage information display method according to any one of claims 1 to 8, or to implement the operations performed in the barrage information sending method according to claim 9.

20. A computer-readable storage medium, characterized in that, At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed in the barrage information display method according to any one of claims 1 to 8, or to implement the operations performed in the barrage information sending method according to claim 9.

Citation Information

Patent Citations

  • Bullet screen display method and device

    CN107948708A

  • Bullet screen information display method and device

    CN108495168A