CN111800668B - Barrage processing method, barrage processing device, barrage processing equipment and storage medium - Google Patents
Barrage processing method, barrage processing device, barrage processing equipment and storage medium Download PDFInfo
- Publication number
- CN111800668B CN111800668B CN202010680273.0A CN202010680273A CN111800668B CN 111800668 B CN111800668 B CN 111800668B CN 202010680273 A CN202010680273 A CN 202010680273A CN 111800668 B CN111800668 B CN 111800668B
- Authority
- CN
- China
- Prior art keywords
- barrage
- video
- target
- presenting
- editing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims abstract description 36
- 238000003672 processing method Methods 0.000 title abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 38
- 230000006870 function Effects 0.000 claims description 111
- 230000001960 triggered effect Effects 0.000 claims description 41
- 230000015654 memory Effects 0.000 claims description 24
- 230000005540 biological transmission Effects 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 5
- 238000007667 floating Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 24
- 230000008569 process Effects 0.000 description 7
- 238000004458 analytical method Methods 0.000 description 6
- 239000012634 fragment Substances 0.000 description 6
- 230000011218 segmentation Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 235000019800 disodium phosphate Nutrition 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 230000004936 stimulating effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000008451 emotion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004549 pulsed laser deposition Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/475—End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention provides a bullet screen processing method, a bullet screen processing device, bullet screen processing equipment and a storage medium; the method comprises the following steps: playing video content of the target video in a playing interface; the target video comprises at least two video clips corresponding to preset time length; acquiring a barrage corresponding to the target video, wherein the video content aimed by the barrage comprises a target object; and when the video is played to any one of the at least two video clips which contains the target video clip of the target object, presenting the barrage in a playing interface corresponding to the target video clip. According to the method and the device for displaying the bullet screen, when a plurality of target video clips containing the target object are played, the bullet screen associated with the target object can be automatically displayed, and the pushing effect of the bullet screen is improved.
Description
Technical Field
The present invention relates to the field of mobile internet technologies, and in particular, to a barrage processing method, device, equipment, and storage medium.
Background
With the rise of the barrage, more and more users like to send the barrage while watching the video to express the emotion release of the currently watched video, and such barrages are usually related to specific video content, such as when the user sees a certain star or a certain scene in the video, the barrage is published to comment on the star or the scene.
In the related art, when the barrage is displayed, the barrage is displayed only at the video content corresponding to the barrage when the barrage is published, however, in the playing process of the video, the situation that the same star or scene appears for multiple times exists, the way that the barrage is displayed only once is easily ignored in a plurality of barrages, and the pushing effect of the barrage is low.
Disclosure of Invention
The embodiment of the invention provides a barrage processing method, device, equipment and storage medium, which can automatically present a barrage associated with a target object when playing a plurality of target video clips containing the target object, and improve the barrage pushing effect.
The embodiment of the invention provides a bullet screen processing method, which comprises the following steps:
playing video content of the target video in a playing interface; the target video comprises at least two video clips corresponding to preset time length;
acquiring a barrage corresponding to the target video, wherein the video content aimed by the barrage comprises a target object;
And when the video is played to any one of the at least two video clips which contains the target video clip of the target object, presenting the barrage in a playing interface corresponding to the target video clip.
The embodiment of the invention provides a bullet screen processing device, which comprises:
the playing module is used for playing the video content of the target video in the playing interface; the target video comprises at least two video clips corresponding to preset time length;
The acquisition module is used for acquiring a barrage corresponding to the target video, wherein the video content aimed by the barrage comprises a target object;
And the bullet screen presenting module is used for presenting the bullet screen in a playing interface corresponding to the target video segment when the bullet screen is played to any one of the at least two video segments, which contains the target object.
In the above solution, before the capturing of the bullet screen corresponding to the target video, the apparatus further includes:
The first presentation module is used for responding to the barrage editing operation aiming at the video content and presenting a barrage editing interface corresponding to the video content;
The second presentation module is used for responding to the barrage editing operation triggered based on the barrage editing interface and presenting the barrage corresponding to the video content obtained based on the barrage editing operation;
and the transmitting module is used for responding to the transmitting instruction aiming at the barrage and transmitting the barrage.
In the above scheme, the device further comprises a third presenting module, wherein the third presenting module is used for sending the bullet screen before,
Presenting public presentation function items and private presentation function items of the bullet screen;
the public presentation function item is used for indicating that any client side playing the target video has the authority to display the barrage, and the private presentation function item is used for indicating that the target client side which is authorized has the authority to display the barrage;
and receiving triggering operation aiming at the public presentation function item or the private presentation function item, and triggering a sending instruction aiming at the barrage.
In the above scheme, the third presenting module is further configured to present, in the barrage editing interface, a public presenting function item and a private presenting function item of the barrage.
In the above scheme, the third presenting module is further configured to present the public presenting function item and the private presenting function item of the barrage through the card floating layer suspended on the barrage editing interface.
In the above solution, the third presenting module is further configured to present, in the bullet screen editing interface, a sending function item for sending the bullet screen;
Responding to the triggering operation aiming at the sending function item, and presenting a sending mode selection interface with preset transparency, wherein the sending mode selection interface and the barrage editing interface are mutually independent;
And in the sending mode selection interface, displaying the public display function item and the private display function item of the barrage.
In the above solution, the sending module is further configured to send the barrage to a server when the sending instruction is used to instruct any client playing the target video to have the authority to display the barrage, so as to
When the server receives a playing request of any client side for the target video, returning video content of the target video and the barrage, so that when the client side plays to any one of the at least two video clips which contains the target object, the barrage is presented in a playing interface corresponding to the target video clip;
When the sending instruction is used for indicating that the authorized target client side has the authority of displaying the barrage, the barrage is sent to a server so as to
And when the server receives a playing request of the target client side for the target video, returning the video content of the target video and the barrage, so that the barrage is presented in a playing interface corresponding to the target video when the target client side plays to any one of the at least two video clips including the target video clip.
In the above scheme, the device further includes a barrage editing module, where the barrage editing operation is a text adding operation corresponding to the video content, and before the barrage corresponding to the target video obtained based on the barrage editing operation is presented, the barrage editing module is configured to present a text editing box corresponding to the video content;
And responding to a text adding operation triggered based on the text editing box, presenting text content input based on the text editing box in the text editing box, and taking the text content as barrage content of the barrage.
In the above solution, the barrage editing operation is a text adding operation corresponding to the video content, and the barrage editing module is further configured to
Presenting a voice input icon corresponding to the video content;
Responding to text adding operation triggered based on the voice input icon, presenting text content corresponding to the text adding operation in the barrage editing interface, and taking the text content as barrage content corresponding to the barrage;
The text content is obtained by converting text of voice input based on the voice input icon.
In the above solution, the barrage editing operation is an image adding operation corresponding to the video content, and the presenting is based on the previous barrage of the video content obtained by the barrage editing operation, and the barrage editing module is further configured to present an image option corresponding to the target video;
and responding to an image adding operation triggered based on the image options, presenting at least one image element selected based on the image options in the barrage editing interface, and taking the image element as a barrage corresponding to the video content.
In the above solution, the barrage editing operation is a media information adding operation corresponding to the video content, and the presenting is based on the previous barrage of the target video obtained by the barrage editing operation, and the barrage editing module is further configured to present media information options corresponding to the video content;
Responding to a media information adding operation triggered based on the media information options, presenting a media identifier corresponding to the media information added based on the media information adding operation in the barrage editing interface, and taking the media identifier as a barrage corresponding to the target video;
The media identifier is used for triggering and playing the added media information when receiving triggering operation for the media identifier, and the media information comprises at least one of the following components: audio information, video information.
In the above scheme, the bullet screen presenting module is further configured to present, in a playing interface corresponding to the target video segment, a media identifier associated with the bullet screen, where the media identifier is used to indicate that the bullet screen carries media information, and the media information includes at least one of the following: audio information, video information;
Correspondingly, the playing module is further used for responding to the triggering operation for the media identifier and playing the media information carried by the barrage.
In the above solution, the barrage presenting module is further configured to determine a video frame that includes the target object in the target video clip;
and when at least two frames exist in the video frames, presenting the barrage in a playing interface corresponding to the preset number of video frames.
An embodiment of the present invention provides an electronic device, including:
a memory for storing executable instructions;
And the processor is used for realizing the barrage processing method provided by the embodiment of the invention when executing the executable instructions stored in the memory.
The embodiment of the invention provides a computer readable storage medium which stores executable instructions for realizing the bullet screen processing method provided by the embodiment of the invention when being executed by a processor.
The embodiment of the invention has the following beneficial effects:
in the process of playing the video content of the target video, a barrage corresponding to the target video is obtained, and when any one of at least two video clips contains the target video clip, the barrage is presented in a playing interface corresponding to the target video clip.
Drawings
FIG. 1 is a schematic diagram of an alternative architecture of a barrage processing system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present invention;
FIGS. 3A-3B are schematic flow diagrams illustrating an alternative method of processing a barrage according to embodiments of the present invention;
fig. 4 is a schematic display diagram of a playing interface according to an embodiment of the present invention;
FIGS. 5A-5B are schematic views of a barrage editing interface provided by an embodiment of the present invention;
FIGS. 6A-6D are schematic diagrams of a barrage delivery interface provided by embodiments of the present invention;
FIG. 7 is a schematic word segmentation diagram of a barrage according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of video clip markers according to an embodiment of the present invention;
FIGS. 9A-9D are schematic diagrams of a playback interface according to an embodiment of the present invention;
FIGS. 10A-10C are schematic diagrams illustrating a playback interface according to an embodiment of the present invention;
FIG. 11 is a schematic flow chart of an alternative method for processing a barrage according to an embodiment of the present invention;
FIG. 12 is a schematic flow chart of an alternative method for processing a barrage according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a barrage processing device according to an embodiment of the present invention.
Detailed Description
The present invention will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present invention more apparent, and the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, the term "first\second …" is merely to distinguish similar objects and does not represent a particular ordering for objects, it being understood that "first\second …" may be interchanged in a particular order or precedence where allowed, to enable embodiments of the invention described herein to be implemented in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before describing embodiments of the present invention in further detail, the terms and terminology involved in the embodiments of the present invention will be described, and the terms and terminology involved in the embodiments of the present invention will be used in the following explanation.
1) The bullet screen directly displays comments on the video and displays the comments on a playing interface of the video in a rolling, staying and other modes.
2) And the client, the application program used for providing various services, such as a video playing client, running in the terminal.
3) In response to a condition or state that is used to represent the condition or state upon which the performed operation depends, the performed operation or operations may be in real-time or with a set delay when the condition or state upon which it depends is satisfied; without being specifically described, there is no limitation in the execution sequence of the plurality of operations performed.
Referring to fig. 1, fig. 1 is a schematic diagram of an alternative architecture of a barrage processing system 100 according to an embodiment of the present invention, in order to support an exemplary application, a terminal 400 (terminals 400-1, …, 400-N are shown in an exemplary manner) is connected to a server 200 through a network 300, where the network 300 may be a wide area network or a local area network, or a combination of both, and a wireless link is used to implement data transmission.
In practical applications, the terminal 400 may be various types of user terminals such as a smart phone, a tablet computer, a notebook computer, and the like, and may also be a desktop computer, a media player, a game console, a television, or a combination of any two or more of these data processing devices; the server 200 may be a server supporting various services, which is configured separately, may be configured as a server cluster, may be a cloud server, or the like.
In practical implementation, a client, such as a video playing client, a browser client, an instant messaging client, etc., is provided on the terminal 400, and when a user opens the client of the terminal 400-1 to play a target video, the terminal 400-1 is configured to play video content of the target video in a playing interface, where the target video includes at least two video clips corresponding to a preset duration;
The server 200 is configured to issue a barrage corresponding to the target video to the terminal 400, where the video content targeted by the barrage includes the target object;
And the terminal 400 is used for presenting the barrage in the playing interface corresponding to the target video clips when the target video clips containing the target object are played in any one of the at least two video clips.
In some embodiments, when a user opens a client of the terminal 400-1 to play a target video, the terminal 400-1 is configured to play video content of the target video in a play interface; responding to the barrage editing operation aiming at the video content, and presenting a barrage editing interface corresponding to the video content; responding to the barrage editing operation triggered based on the barrage editing interface, and presenting the barrage corresponding to the video content obtained based on the barrage editing operation;
in response to the transmission instruction for the bullet screen, the bullet screen is transmitted to the server 200.
The server 200 is used for carrying out semantic analysis on the barrage content of the barrage to obtain semantic information of the barrage; respectively carrying out image recognition on frame images in each video segment of the target video to obtain key information corresponding to each video segment; and respectively matching the semantic information with each key information, determining the video content corresponding to the successfully matched key information as the association relation with the barrage content, and marking at least one associated video segment.
In some embodiments, the sending instruction is used to instruct any terminal playing the target video, such as the terminal 400-1 to the terminal 400-N, to have the authority of displaying the barrage, and the server 200 is further used to return the video content of the target video and the barrage when receiving the playing request of any terminal for the target video, so as to present the barrage in the playing interface corresponding to each video clip when the terminal 400-1 to the terminal 400-N plays at least one video clip of the target video.
In some embodiments, the sending instruction is configured to instruct the authorized target terminal, such as the terminal 400-1, to have the authority to display the barrage, and the server 200 is further configured to return, when receiving a request for playing the target video by the target terminal, the video content of the target video and the barrage, so that when the terminal 400-1 plays at least one video segment of the target video, the barrage is presented in a playing interface corresponding to each video segment. And for other terminals which do not have the authority to present the barrage, such as the terminals 400-2 to 400-N, when sending the playing request for the target video, the server 200 only returns the video content of the target video and does not return the barrage, namely, only presents the video content and does not present the barrage in the playing interface of the target video played by the terminals 400-2 to 400-N.
Referring to fig. 2, fig. 2 is a schematic diagram of an alternative structure of an electronic device 500 according to an embodiment of the present invention, in practical application, the electronic device 500 may be the terminal 400 or the server 200 in fig. 1, and the electronic device is taken as an example of the terminal 400 shown in fig. 1, to describe an electronic device implementing an embodiment of the present invention. The electronic device 500 shown in fig. 2 includes: at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. The various components in electronic device 500 are coupled together by bus system 540. It is appreciated that the bus system 540 is used to enable connected communications between these components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to the data bus. The various buses are labeled as bus system 540 in fig. 2 for clarity of illustration.
The Processor 510 may be an integrated circuit chip having signal processing capabilities such as a general purpose Processor, such as a microprocessor or any conventional Processor, a digital signal Processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and/or one or more visual displays. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 550 may optionally include one or more storage devices physically located remote from processor 510.
Memory 550 includes volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM) and the volatile Memory may be a random access Memory (RAM, random Access Memory). The memory 550 described in embodiments of the present invention is intended to comprise any suitable type of memory.
In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 551 including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
Network communication module 552 is used to reach other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB, universal Serial Bus), etc.;
A presentation module 553 for enabling presentation of information (e.g., a user interface for operating a peripheral device and displaying content and information) via one or more output devices 531 (e.g., a display screen, speakers, etc.) associated with the user interface 530;
The input processing module 554 is configured to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.
In some embodiments, the bullet screen processing device provided in the embodiments of the present invention may be implemented in software, and fig. 2 shows a bullet screen processing device 555 stored in a memory 550, which may be software in the form of a program, a plug-in, or the like, including the following software modules: the play module 5551, the acquire module 5552, and the bullet screen presentation module 5553 are logical, and thus may be arbitrarily combined or further split according to the implemented functions. The functions of the respective modules will be described hereinafter.
In other embodiments, the apparatus for processing a barrage provided in the embodiments of the present invention may be implemented in hardware, and by way of example, the apparatus for processing a barrage provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor that is programmed to perform the method for processing a barrage provided in the embodiments of the present invention, for example, the processor in the form of a hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable logic devices (PLDs, programmable Logic Device), complex Programmable logic devices (CPLDs, complex Programmable Logic Device), field Programmable Gate Arrays (FPGAs), field Programmable GATE ARRAY), or other electronic components.
Based on the above description of the bullet screen processing system and the electronic device implementing the embodiment of the present invention, the following description describes the bullet screen processing method provided by the embodiment of the present invention, and in actual implementation, the bullet screen processing method provided by the embodiment of the present invention may be implemented by a server or a terminal alone, or may be implemented by a server and a terminal cooperatively.
Referring to fig. 3A, fig. 3A is a schematic flow chart of an alternative method for processing a barrage according to an embodiment of the present invention, and will be described with reference to the steps shown in fig. 3A.
Step 101: and playing the video content of the target video in a playing interface of the terminal.
In practical application, a client, such as a short video client, a browser client, an instant messaging client, etc., is provided on the terminal, and when a user opens the client provided on the terminal to play a target video, video content for the target video is played in a playing interface. The target video comprises at least two video clips corresponding to preset time length; in practical implementation, the target video may be divided into segments based on a preset duration to obtain video segments corresponding to the preset duration, for example, for a target video with a total duration of 40 minutes, the segments are divided at intervals of 10 minutes to obtain 4 video segments, where the duration of each video segment is 10 minutes.
Here, the video content of the play target video includes the following two scenes: playing video content of the target video and suspending playing of the video content of the target video; that is, the video content played in the playing interface may be video content in a playing state or may be video content in a pause playing state.
Step 102: and acquiring a barrage corresponding to the target video, wherein the video content aimed by the barrage contains the target object.
Here, the bullet screen of the corresponding target video acquired by the terminal may be edited by a bullet screen editor in the process of playing any video content of the target video, or may be edited based on the video content containing the target object being played.
Referring to fig. 3B, fig. 3B is a schematic flow chart of an alternative method for processing a barrage according to an embodiment of the present invention, and in some embodiments, before a terminal obtains a barrage corresponding to the target video, the barrage may be further obtained by editing in steps 104-106 shown in fig. 3B.
Step 104: and responding to the barrage editing operation aiming at the video content, and presenting a barrage editing interface corresponding to the target video.
In practical application, in the process that a user views video content of a target video to be played, when the user wants to send a barrage for a video content to be viewed, barrage editing operation for the video content can be triggered, that is, when barrage editing operation is triggered, the corresponding video content refers to content of a frame image of the target video presented when barrage editing operation is triggered, for example, barrage function items for editing barrages presented in a triggerable playing interface can be triggered, so that a corresponding barrage editing instruction is triggered to a terminal, the terminal receives the barrage editing instruction, presents a barrage editing interface corresponding to the video content, and presents function items for editing barrages on the barrage editing interface.
Referring to fig. 4, fig. 4 is a schematic display diagram of a playing interface provided in an embodiment of the present invention, in fig. 4, video content of a 07 th set of "chen xqu" is being played in a playing interface a, when a content of a frame image, such as a video content C, represented in the playing interface at a time point 09:49 indicated by B, is displayed, for example, "xiaoxx", if a user wants to send a barrage for the video content C, a barrage function item D may be triggered, a terminal responds to the barrage editing operation to display a barrage editing interface as shown in fig. 5A, fig. 5A is a schematic display diagram of a barrage editing interface provided in an embodiment of the present invention, in fig. 5A, the barrage editing interface a includes a plurality of function items, such as text adding function item A1, image adding function item A2, media information adding function item A3, etc., where the barrage obtained based on the text adding function item is in a text form, the barrage obtained based on the image adding function item is in an image form, and the barrage obtained based on the media information adding function item is in a media form.
Step 105: and responding to the barrage editing operation triggered based on the barrage editing interface, and presenting the barrage corresponding to the target video obtained based on the barrage editing operation.
Here, in actual implementation, when the user triggers a function item in the bullet screen editing interface to perform bullet screen editing operation, the terminal responds to the bullet screen editing operation of the user and presents a corresponding bullet screen.
In some embodiments, the barrage editing operation is a text adding operation of the corresponding video content, and before presenting the barrage of the corresponding video content based on the barrage editing operation, the barrage may be further generated by:
Presenting a text edit box corresponding to the video content; and responding to the text adding operation triggered based on the text editing box, presenting the text content input based on the text editing box in the text editing box, and taking the text content as the barrage content of the barrage.
In some embodiments, the barrage editing operation is a text adding operation of the corresponding video content, and before presenting the barrage of the corresponding video content based on the barrage editing operation, the barrage may be further generated by:
Presenting a voice entry icon corresponding to the video content; responding to text adding operation triggered based on the voice input icon, presenting text content corresponding to the text adding operation in a barrage editing interface, and taking the text content as barrage content corresponding to the barrage; the text content is obtained by performing text conversion on voice input based on voice input icons.
Here, in actual implementation, when text addition is performed for video content, text content may be input through a text editing box, or may be obtained by text-converting an input voice. Referring to fig. 5B, fig. 5B is a schematic diagram of a barrage editing interface provided by an embodiment of the present invention, in fig. 5B, a user may input text content through a text editing box B1, or input voice through a frequently pressed voice input icon B2 and convert the voice into corresponding text content, and correspondingly, the edited text content is used as a barrage of corresponding video content and presented in a playing interface.
It should be noted that, for the presentation of the text editing box or the voice input icon, in some embodiments, the text editing interface shown in fig. 5B may be directly presented by triggering the barrage function item D in fig. 4, and the text editing box B1 and the voice input icon B2 may be presented in the text editing interface; in some embodiments, the barrage function item D in fig. 4 may be triggered to first present a barrage editing interface as shown in fig. 5A, and when the user triggers the text adding function item A1 shown in fig. 5A, then present a text editing interface as shown in fig. 5B, and present a text editing box B1 and a voice input icon B2 in the text editing interface.
In some embodiments, the barrage editing operation is an image adding operation corresponding to video content, and before presenting a barrage corresponding to the video content obtained based on the barrage editing operation, the barrage may be further generated by:
Presenting image options corresponding to the video content; and responding to the image adding operation triggered based on the image options, presenting at least one image element selected based on the image options in a barrage editing interface, and taking the image element as a barrage corresponding to the video content.
Here, the added image element is an image element associated with the played video content, for example, for the video content C of "xiaoxx" shown in fig. 4, when the image element is selected, the video content C may be captured, an image obtained by capturing the image may be taken as a bullet screen of the corresponding video content, a photograph of "xiaoxx", a poster, or a photograph containing a "xiaoxx" word may be selected from the terminal, and accordingly, the image element may be taken as a bullet screen of the corresponding video content and presented in the playing interface. Through the mode, the bullet screen displayed in the playing interface can be in an image form besides a text form, so that the display form of the displayed bullet screen is rich in interests, and the interactive interestingness among users is improved.
In some embodiments, the barrage editing operation is a media information adding operation of corresponding video content, and before presenting the barrage of the corresponding target video obtained based on the barrage editing operation, the barrage may be further generated by:
Presenting media information options corresponding to the video content; responding to the media information adding operation triggered based on the media information options, presenting a media identifier corresponding to the media information added based on the media information adding operation in a barrage editing interface, and taking the media identifier as a barrage corresponding to the video content; the media identifier is used for triggering and playing the added media information when receiving the triggering operation aiming at the media identifier, and the media information comprises at least one of the following components: audio information, video information.
Here, the added media information is media information associated with the video content being played, for example, for the video content C of "xiaoxx" shown in fig. 4, when the media information is added, media information related to "xiaoxx" such as a song "xiaoxx" singing or audio information praise "xiaoxx", or dynamic video information made of a photograph of "xiaoxx", or the like may be selected.
By the mode, the bullet screen displayed in the playing interface can be in the form of media information besides the text form, so that the display form of the displayed bullet screen is rich in interests, and the interactive interestingness among users is improved.
Step 106: and transmitting the barrage in response to the transmitting instruction for the barrage.
In some embodiments, before sending the bullet screen, the terminal may also trigger a mode instruction for the bullet screen by: presenting public presentation function items and private presentation function items of the bullet screen; and receiving triggering operation aiming at the public presentation function item or the private presentation function item, and triggering a sending instruction aiming at the barrage.
The public presentation function item is used for indicating that any client side playing the target video has the authority to display the barrage, and the private presentation function item is used for indicating that the target client side obtaining authorization has the authority to display the barrage.
Here, the user editing the bullet screen can select a transmission mode of the bullet screen to be edited by himself. The privacy presentation function item may be used to indicate that the client editing the barrage has the right to display the barrage, or that other clients than the client editing the barrage have the right to display the barrage.
In some embodiments, the terminal may present the public presentation function and the private presentation function of the barrage as follows: in the bullet screen editing interface, the public presentation function item and the private presentation function item of the bullet screen are presented.
Referring to fig. 6A, fig. 6A is a schematic diagram of a barrage sending interface provided by an embodiment of the present invention, in fig. 6A, a public presenting function item A2 and a private presenting function item A3 are presented in a barrage editing interface A1, and when a user triggers the public presenting function item A2, a sending instruction for sending the edited barrage to all clients playing target videos is triggered; when the user triggers the privacy presentation function item A3, a sending instruction for sending the edited barrage to a client side for partially playing the target video is triggered.
When the privacy presentation function item A3 is used for indicating that the client for editing only the barrage has the right of displaying the barrage, presenting the edited barrage only in a playing interface of the client for editing the barrage; when the privacy presentation function item is used for indicating that other part of clients except for the client for editing the barrage have the authority of displaying the barrage, when the user triggers the privacy presentation function item, a corresponding target client selection interface is presented, at least one selectable target client function item is presented in the target client selection interface, and the client indicated by the target client function item can be the client which is positioned in the same local area network as the client for editing the barrage, and can also be the client for designating friends for the client for editing the barrage. In practical applications, there are various presentation modes of the target client selection interface, such as presenting in a bullet screen editing interface through a bullet window, or performing page skip, and skipping from the bullet screen editing interface to the target client selection interface.
Referring to fig. 6B, fig. 6B is a schematic diagram of an interface for barrage sending provided in an embodiment of the present invention, when a user triggers the privacy presenting function item A3 in fig. 6A, a corresponding target client selecting interface B is presented in a barrage editing interface shown in fig. 6B in a popup window form, and the target client selecting interface B presents three target client function items of user 1, user 2, user 3, etc., and when the user triggers two target client function items of user 1 and user 2, the target clients corresponding to user 1 and user 2 are indicated to be target clients with the authority of displaying the barrage.
In some embodiments, the terminal may present the public presentation function and the private presentation function of the barrage as follows: and displaying the public display function item and the private display function item of the bullet screen through a card floating layer suspended on the bullet screen editing interface.
Here, the card float may be a bubble type card float that is movable in the bullet screen editing interface.
In some embodiments, the terminal may present the public presentation function and the private presentation function of the barrage as follows:
In the bullet screen editing interface, a sending function item for sending bullet screens is presented; responding to a triggering operation for the sending function item, and presenting a sending mode selection interface with preset transparency; in the sending mode selection interface, public presentation function items and private presentation function items of the barrage are presented.
The transmitting mode selection interface and the barrage editing interface are mutually independent.
Referring to fig. 6C, fig. 6C is a schematic diagram of an interface for barrage transmission provided in an embodiment of the present invention, where when a user triggers the transmission function item B3 in fig. 6A, a transmission mode selection interface C1 shown in fig. 6C is presented, where the transmission mode selection interface C1 may have a certain transparency, and a disclosure presentation function item of "public mode" indicated by C2 and a privacy presentation function item of "private mode" indicated by C3 are presented.
In some embodiments, the terminal may send the edited barrage by:
When an instruction is sent to indicate that any client for playing the target video has the authority of displaying the barrage, the barrage is sent to the server, so that when the server receives a playing request of any client for the target video, the video content of the target video and the barrage are returned, and when any one of at least two video fragments of the target video played by the client contains a target video fragment of a target object, the barrage is presented in a playing interface corresponding to the target video fragment; thus, the edited barrage is visible to all users watching the target video, and the interest of the barrage is increased.
When a sending instruction is used for indicating that the authorized target client side has the authority of displaying the barrage, the barrage is sent to the server, so that when the server receives a playing request of the target client side for the target video, the video content of the target video and the barrage are returned, and the target client side is enabled to play to any one of at least two video fragments of the target video, wherein the target video fragment comprises a target object, and the barrage is presented in a playing interface corresponding to the target video fragment; thus, the edited barrage is only partially visible or only visible to the user, so that the barrage is more private and is helpful for stimulating the user to create the desire.
Referring to fig. 6D, fig. 6D is a schematic diagram of matching a bullet screen according to the embodiment of the present invention, and after the terminal sends an edited bullet screen to the server, bullet screen matching prompt information shown in fig. 6D is presented in a bullet screen interface of the terminal. After receiving the barrage sent by the terminal, the server performs semantic analysis on barrage content of the barrage to obtain semantic information of the barrage; respectively carrying out image recognition on frame images in each video segment of the target video to obtain key information corresponding to each video segment; the semantic information is matched with each key information, and the video content corresponding to the successfully matched key information is determined to have an association relation with the barrage content, and because the video aimed by the barrage contains the target object, the video segment corresponding to the successfully matched key information can be determined to be the target video segment containing the target object, and further the fact that the association relation exists between the barrage content of the barrage and the target object contained in the target video segment can be understood.
When the edited barrage is in a text form in actual implementation, the barrage content of the barrage can be subjected to word segmentation processing to obtain a plurality of corresponding segmented words, and then semantic analysis is performed on the segmented words to obtain corresponding semantic information; when the edited barrage is in an image form, image recognition can be carried out on the image barrage to obtain semantic information of a corresponding image; when the edited barrage is in the form of media information, the barrage of the media information can be analyzed for the content of the media information to obtain semantic information of the corresponding media information.
For example, referring to fig. 7, fig. 7 is a schematic word segmentation diagram of a barrage according to an embodiment of the present invention, when barrage content of the barrage is "xiaojihua" and the barrage content is "xiaojia", word segmentation processing is performed on the barrage content to obtain three word segments of "xiaoxx", "xiaojia" and "haojia".
The server respectively carries out face recognition or image recognition on the frame images in each video segment of the target video to obtain key information of each video segment, for example, the key information of the video segment 1 is: key information of the zodiac XX … and the video clip 2 are: key information of chenxx … and video clip 3 is: key information of … pin XX … and video clip 4 are: king XX …, etc.; then the server matches the semantic information of the barrage content with the key information of each video segment, and because the key information of the video segment 1 and the key information of the video segment 3 both contain "xiaoxx", the key information of the video segment 1 and the key information of the video segment 3 are considered to be successfully matched with the barrage content, and then the association relationship between the video content of the video segment 1 and the video segment 2 and the barrage content of the barrage can be determined, and at the moment, the video segment 1 and the video segment 2 are determined to be target video segments containing target objects (namely "xiaoxx"); then, the video clips 1 and 2 are marked, and special marking is performed at the preset frame (such as the first frame) of the video clip, so that the barrage is started to be displayed at the preset frame when the video clip is played, the barrage is displayed only once, and the edited barrage is displayed when all target video clips containing target objects in the target video are played next time.
In some embodiments, the server may further perform similarity matching between the frame images in each video segment and the frame image of the target video presented when the barrage editing operation is triggered, and when the similarity value exceeds the similarity threshold, determine that the corresponding video segment has the same video content as the frame image of the target video presented when the barrage editing operation is triggered, that is, determine that the video segment corresponding to the similarity value exceeding the similarity threshold is the target video segment including the target object.
In some embodiments, the acquired barrage content may not be intuitively and semantically related to the frame image of the target video presented when the barrage editing operation is triggered, for example, the frame image of the target video presented when the barrage editing operation is triggered is an image of "person a", the barrage content of the edited barrage is "his performance excellent", at this time, the server may perform similarity matching between the frame image in each video segment of the target video and the frame image of the target video presented when the barrage editing operation is triggered (for example, the image of "person a"), and determine the video segment corresponding to the similarity value exceeding the similarity threshold as the target video segment containing the target object (for example, "person a"), but because the barrage of "his performance excellent" is triggered and edited when the frame image of the presented target video is an image of "person a", the barrage content of the barrage is still considered to have an association relationship with the target object (for example, "a") contained in the target video segment, and thus the video segment containing "person a" is played "good" in the performance of the barrage interface.
Referring to fig. 8, fig. 8 is a schematic diagram of video segment marking provided in an embodiment of the present invention, in which, for the scenario of the 07 st set of "chen x ream", a target video segment having an association relationship with the content of a barrage of "xiaoxiu hello jia" is marked to indicate that when the marked target video segment is played, the edited barrage of "xiaohua jia" is presented.
Step 103: and when the video is played to any one of the at least two video clips containing the target video clip of the target object, presenting the barrage in a playing interface corresponding to the target video clip.
Referring to fig. 9A-9D, fig. 9A-9D are schematic views of a playing interface provided by an embodiment of the present invention, and for video content of "chen xqu" set 07, when playing to video content of "xiaoxx" at 09:49, a user edits a bullet screen of "xiaoxx you can" and, in the next process of playing the remaining scenario of set 07, if playing to a target video clip related to "xiaoxx", the bullet screen of "xiaoxx you can" is presented. For example, when playing video content related to "xiaoxx" corresponding to timings 09:49 in fig. 9A, 15:42 in fig. 9B, 23:16 in fig. 9C, and 34:27 in fig. 9D, respectively, a bullet screen of "xiaoxx you can" is presented.
In some embodiments, when the target video is a certain drama, the target video segment is not limited to the target video segment containing the target object in the episode played currently, but may be the target video segment containing the target object in all episodes of the drama, that is, when the target video segment containing the target object in all episodes is played, the edited bullet screen is presented. For example, for a target video of "chen x ream", when video content of "xiaoxx" is played at 09:49 of the 07 th episode, the user edits a barrage of "xiaoxx you can" and when the remaining scenario of the 07 th episode or other episodes other than the 07 th episode are played next, the barrage of "xiaoxx you can" is presented as long as a target video clip related to "xiaoxx" is played.
In some embodiments, the barrage is in the form of an image, and then the barrage in the form of an image is presented in the playing interface corresponding to each target video clip, see fig. 10A, fig. 10A is a schematic diagram of the playing interface provided in the embodiment of the present invention, and fig. 10A, barrage a is an image barrage, and the image content is associated with the video content, for example, the image contains a typeface related to "xiaoxx".
In some embodiments, the barrage is in the form of media information, and then media identifiers associated with the barrage are presented in a playing interface corresponding to each target video clip, where the media identifiers are used to indicate that the barrage carries media information, and the media information includes at least one of the following: audio information, video information; accordingly, the media information carried by the barrage is played in response to the triggering operation for the media identification.
Referring to fig. 10B-10C, fig. 10B-10C are schematic diagrams of a playing interface provided by an embodiment of the present invention, in fig. 10B, a barrage B is an audio barrage, and when a user clicks the barrage B, audio information carried by the barrage can be played; in fig. 10C, the barrage C is a video barrage, and when the user clicks on the barrage C, the video information carried by the barrage can be played.
By the method, the barrage corresponding to the target video is obtained in the video content process of playing the target video, and when any one of the at least two video clips contains the target video clip of the target object, the barrage is presented in the playing interface corresponding to the target video clip.
Meanwhile, the bullet screen editing is carried out on the video content being played, the bullet screen obtained by editing is sent, the edited bullet screen is presented in a playing interface of the current video content, and the edited bullet screen can be presented in a playing interface for playing other target video clips containing target objects, so that the bullet screen can be automatically presented when a plurality of target video clips containing the target objects are played only by one bullet screen editing operation, the operation is simple, and the bullet screen publishing efficiency is improved; the requirements of severe barrage users can be better met, meanwhile, the barrages are various, the watching atmosphere is active, and the user's impression experience is improved.
Next, continuing to describe the method for processing a bullet screen according to the embodiment of the present invention, referring to fig. 11, fig. 11 is a schematic flow chart of an alternative method for processing a bullet screen according to the embodiment of the present invention, in fig. 11, a first terminal and a second terminal both play video contents of a target video in a playing interface, where the first terminal is a bullet screen publishing side and a bullet screen receiving side, and the second terminal is a bullet screen receiving side, and the steps shown in fig. 11 will be described.
Step 201: and playing the video content of the target video in a playing interface of the first terminal.
In practical application, clients, such as a short video client, a browser client, an instant messaging client, etc., are arranged on the first terminal and the second terminal, and when a user opens the client arranged on the terminal to play a target video, video content aiming at the target video is played in a playing interface. The target video comprises at least two video clips corresponding to preset time length; in actual implementation, the target video can be segmented based on the preset time length to obtain video segments corresponding to the preset time length.
Step 202: the first terminal responds to the barrage editing operation aiming at the video content, and presents a barrage editing interface corresponding to the video content.
Step 203: and the first terminal responds to the text editing operation triggered based on the barrage editing interface, presents the text content obtained based on the text editing operation, and takes the text content as barrage content of the barrage.
Here, the video content targeted by the bullet screen includes a target object.
Step 204: the first terminal responds to a transmitting instruction aiming at the barrage and transmits the barrage to the server.
Here, the sending instruction may be used to instruct any client playing the target video to have the authority to display the bullet screen, and may also be used to instruct the target client that is authorized to have the authority to display the bullet screen.
Step 205: and the server performs semantic analysis on the barrage content of the barrage to obtain semantic information of the barrage.
Step 206: and the server respectively carries out image recognition on the frame images in each video segment of the target video to obtain key information corresponding to each video segment.
Step 207: and the server respectively matches the semantic information with each piece of key information to obtain a target video segment corresponding to the key information which is successfully matched.
Here, the video content corresponding to the successfully matched key information is determined to have an association relationship with the barrage content, the video segment corresponding to the successfully matched key information is determined to be a target video segment containing a target object, and further, it can be understood that the target object contained in the target video segment has an association relationship with the barrage, and the target video segments are marked.
Step 208: and when the server determines that the sending instruction is used for indicating that any client side playing the target video has the authority of displaying the barrage, sending the barrage to the first terminal and the second terminal.
When the server determines that the first terminal for playing the target video has the right to display the barrage, the barrage is sent to the first terminal, so that the barrage is presented in a playing interface corresponding to the target video segment only when any one of at least two video segments of the target video, including the target video segment, is played by the first terminal.
Step 209: and when any one of the at least two video clips of the target video is played by the first terminal, wherein the target video clip contains a target object, the barrage is presented in a playing interface corresponding to the target video clip.
Step 210: and when any one of the at least two video clips of the target video is played by the second terminal, wherein the target video clip contains a target object, the barrage is presented in a playing interface corresponding to the target video clip.
Here, there is an association between the bullet screen content of the bullet screen and the video content of the target video clip, and step 209 and step 210 are not time-sequential, so that the user at any terminal side can watch the bullet screen in the playing interface when watching the target video clip associated with the bullet screen content.
In the following, an exemplary application of the embodiment of the present invention in a practical application scenario will be described.
The bullet screen presenting mode in the related art can only appear in the current time and the current playing scene, and cannot accurately identify the specific scene, or a plurality of similar scenes, such as that a certain star appears in different video clips, if a user wants to send one bullet screen to a plurality of similar scenes, the user needs to edit for a plurality of times, and sometimes needs to manually pause the playing video for accurately sending one bullet screen, which is complex in operation and affects the viewing experience of the user.
In view of the above, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for processing a barrage, so as to solve the above-mentioned problems.
Referring to fig. 12, fig. 12 is a schematic flow chart of an alternative method for processing a barrage according to an embodiment of the present invention, and the steps shown in fig. 12 will be described.
Step 301: and playing the video content of the target video in a playing interface of the first terminal.
Here, the first terminal is a terminal on the user a side, and the second terminal is a terminal on the user B side.
Step 302: the first terminal responds to the barrage editing operation aiming at the video content, and presents a barrage editing interface corresponding to the video content.
Here, in the process that the user a views the video content of the playing target video, when the user a wants to send a barrage for a certain video content that is viewed, a barrage editing operation for the video content, such as triggering a barrage function item for editing a barrage presented in a playing interface, is triggered, so as to trigger a corresponding barrage editing instruction to a terminal, and the terminal receives the barrage editing instruction and presents a barrage editing interface corresponding to the video content.
For example, in the scenario in which "chen x ream" set 07 is being played in the play interface a of fig. 4, when the video content C of "xiaoxx" is presented in the play interface at 09:49 indicated by B, a bullet screen for the video content is edited.
Step 303: the first terminal obtains the edited barrage based on the barrage editing interface.
Here, when editing a barrage in text form, text content may be input through a text editing box, or may be obtained by text converting an input voice, where the video content for which the edited barrage is aimed includes a target object.
Step 304: and transmitting the barrage to the server through the selected transmission mode.
Here, the transmission modes include a public transmission mode (i.e., the above-described public presentation function item) for indicating that any client playing the target video has the right to display the bullet screen, such as the user a and the user B can both view the edited bullet screen, and a private transmission mode (i.e., the above-described private presentation function item) for indicating that the authorized target client has the right to display the bullet screen, such as only the user a can see the edited bullet screen.
Step 305: the server matches the target video clip containing the target object according to semantic recognition of the barrage content.
In actual implementation, the server performs word segmentation on bullet screen contents of bullet screens to obtain a plurality of corresponding word segments, and then performs semantic analysis on the word segments to obtain corresponding semantic information; for example, if the barrage content of the barrage is "xiaoxx you can" the barrage content is subjected to word segmentation processing to obtain three word segments of "xiaoxx", "you can" and "you can".
Then, respectively performing face recognition or image recognition on the frame images in each video segment of the target video to obtain key information of each video segment, for example, recognizing each video segment in the 07 th set of Chen x ream, and obtaining key information of video segment 1 is as follows: key information of the zodiac XX … and the video clip 2 are: key information of chenxx … and video clip 3 is: key information of … pin XX … and video clip 4 are: king XX …, etc.
Finally, the semantic information of the barrage content is respectively matched with the key information of each video segment, the video segment corresponding to the successfully matched key information is determined to be the target video segment containing the target object, and further, the fact that the target object contained in the target video segment has an association relationship with the barrage content can be understood.
For example, since the key information of the video clip 1 and the key information of the video clip 3 both contain "xiaoxx", that is, the key information of the video clip 1 and the key information of the video clip 3 are considered to be successfully matched with the barrage content, that is, the target video clip associated with the barrage "xiaoxx you can" is: video clip 1 and video clip 2, and marking video clip 1 and video clip 2, such as in particular marking the first frame of the video clip, is specifically seen in fig. 8.
In practical application, for better user experience, the edited barrage content is sent to the first frame of the matched target video segment, so that the edited barrage is accurately presented when the first frame of the target video segment is played, and the barrage is presented only once in the video segment, and a specific presentation mode can be seen in fig. 9A-9D. When replaying next time, the edited barrage is presented when all target video clips containing target objects in the target video are played.
Step 306: the server judges whether the transmission mode is the public mode, and when the transmission mode is the public mode, steps 307 and 308 are executed; when the transmission mode is not the public mode, step 307 is performed.
If the sending mode is the public mode, when the server receives the playing request of the first terminal and the second terminal for the target video, the server returns the video content of the target video and the barrage edited by the user A to the first terminal and the second terminal; thus, the user A and the user B can both see the barrage, and in addition, the barrage is visible to all users watching the target video, so that the interest of the barrage is increased.
If the sending mode is the private mode, when the server receives the playing request of the first terminal and the second terminal for the target video, the server returns the video content of the target video and the barrage edited by the user A to the first terminal, and returns the video content of the target video to the second terminal, namely, the second terminal cannot receive the barrage edited by the user A, namely, the user B cannot watch the barrage edited by the user A, so that the barrage edited by the user A is visible only to the user, the user B is more private, and the barrage is helpful for stimulating the user to create the desire.
Step 307: and when any one of the at least two video clips of the target video is played by the first terminal, wherein the target video clip contains a target object, the barrage is presented in a playing interface corresponding to the target video clip.
Step 308: and when any one of the at least two video clips of the target video is played by the second terminal, wherein the target video clip contains a target object, the barrage is presented in a playing interface corresponding to the target video clip.
Here, step 307 and step 308 do not have any time sequence, and under the authority of watching the bullet screen, the user at any terminal side can watch the bullet screen in the playing interface when watching the target video clip containing the target object; thus, the bullet screen of "xiaoxx you can be presented in all video clips related to" xiaoxx ".
Through the mode, the requirements of severe barrage users can be better met, the edited barrages can be mapped into a plurality of similar scenes for presentation only by one-time editing, the effect that the barrages are sent in the scenes by one key is achieved, the barrage sending efficiency is improved, the watching atmosphere is active, and the user's impression experience is improved.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a bullet screen processing apparatus according to an embodiment of the present invention, and as shown in fig. 13, a bullet screen processing apparatus 555 according to an embodiment of the present invention includes:
A playing module 5551, configured to play the video content of the target video in the playing interface; the target video comprises at least two video clips corresponding to preset time length;
The obtaining module 5552 is configured to obtain a barrage corresponding to the target video, where the video content targeted by the barrage includes a target object;
And the bullet screen presenting module 5553 is configured to present the bullet screen in a playing interface corresponding to the target video segment when playing the target video segment including the target object in any one of the at least two video segments.
In some embodiments, before the capturing of the bullet screen corresponding to the target video, the apparatus further comprises:
The first presentation module is used for responding to the barrage editing operation aiming at the video content and presenting a barrage editing interface corresponding to the video content;
The second presentation module is used for responding to the barrage editing operation triggered based on the barrage editing interface and presenting the barrage corresponding to the video content obtained based on the barrage editing operation;
and the transmitting module is used for responding to the transmitting instruction aiming at the barrage and transmitting the barrage.
In some embodiments, the apparatus further comprises a third presentation module, the third presentation module for, prior to transmitting the bullet screen,
Presenting public presentation function items and private presentation function items of the bullet screen;
the public presentation function item is used for indicating that any client side playing the target video has the authority to display the barrage, and the private presentation function item is used for indicating that the target client side which is authorized has the authority to display the barrage;
and receiving triggering operation aiming at the public presentation function item or the private presentation function item, and triggering a sending instruction aiming at the barrage.
In some embodiments, the third presenting module is further configured to present, in the barrage editing interface, a public presenting function item and a private presenting function item of the barrage.
In some embodiments, the third presenting module is further configured to present the public presenting function item and the private presenting function item of the bullet screen through a card floating layer suspended above the bullet screen editing interface.
In some embodiments, the third presenting module is further configured to present, in the bullet screen editing interface, a sending function item for sending the bullet screen;
Responding to the triggering operation aiming at the sending function item, and presenting a sending mode selection interface with preset transparency, wherein the sending mode selection interface and the barrage editing interface are mutually independent;
And in the sending mode selection interface, displaying the public display function item and the private display function item of the barrage.
In some embodiments, the apparatus further includes an associated segment determining module, configured to perform semantic analysis on a barrage content of the barrage to obtain semantic information of the barrage;
respectively carrying out image recognition on frame images in each video segment of the target video to obtain key information corresponding to each video segment;
And respectively matching the semantic information with each piece of key information, and determining video content corresponding to the key information successfully matched as an association relation with the barrage content.
In some embodiments, the sending module is further configured to send the barrage to a server when the sending instruction is used to instruct any client playing the target video to have the authority to display the barrage, so as to
When the server receives a playing request of any client side for the target video, returning video content of the target video and the barrage, so that when the client side plays to any one of the at least two video clips which contains the target object, the barrage is presented in a playing interface corresponding to the target video clip;
When the sending instruction is used for indicating that the authorized target client side has the authority of displaying the barrage, the barrage is sent to a server so as to
And when the server receives a playing request of the target client side for the target video, returning the video content of the target video and the barrage, so that the barrage is presented in a playing interface corresponding to the target video when the target client side plays to any one of the at least two video clips including the target video clip.
In some embodiments, the apparatus further includes a barrage editing module, where the barrage editing operation is a text adding operation corresponding to the video content, and the presenting is based on the barrage editing operation, before the barrage corresponding to the target video, the barrage editing module is configured to present a text editing box corresponding to the video content;
And responding to a text adding operation triggered based on the text editing box, presenting text content input based on the text editing box in the text editing box, and taking the text content as barrage content of the barrage.
In some embodiments, the barrage editing operation is a text adding operation corresponding to the video content, and the barrage editing module is further configured to
Presenting a voice input icon corresponding to the video content;
Responding to text adding operation triggered based on the voice input icon, presenting text content corresponding to the text adding operation in the barrage editing interface, and taking the text content as barrage content corresponding to the barrage;
The text content is obtained by converting text of voice input based on the voice input icon.
In some embodiments, the barrage editing operation is an image adding operation corresponding to the video content, and the presenting is based on the previous barrage of the video content obtained by the barrage editing operation, and the barrage editing module is further configured to present an image option corresponding to the target video;
and responding to an image adding operation triggered based on the image options, presenting at least one image element selected based on the image options in the barrage editing interface, and taking the image element as a barrage corresponding to the video content.
In some embodiments, the barrage editing operation is a media information adding operation corresponding to the video content, and the presenting is based on before the barrage of the video content obtained by the barrage editing operation, the barrage editing module is further configured to present media information options corresponding to the target video;
Responding to a media information adding operation triggered based on the media information options, presenting a media identifier corresponding to the media information added based on the media information adding operation in the barrage editing interface, and taking the media identifier as a barrage corresponding to the video content;
The media identifier is used for triggering and playing the added media information when receiving triggering operation for the media identifier, and the media information comprises at least one of the following components: audio information, video information.
In some embodiments, the barrage presenting module is further configured to present, in a playing interface corresponding to the target video clip, a media identifier associated with the barrage, where the media identifier is used to indicate that the barrage carries media information, and the media information includes at least one of the following: audio information, video information;
Correspondingly, the playing module is further used for responding to the triggering operation for the media identifier and playing the media information carried by the barrage.
In some embodiments, the bullet screen presentation module is further configured to determine a video frame of the target video clip that includes the target object;
and when at least two frames exist in the video frames, presenting the barrage in a playing interface corresponding to the preset number of video frames.
An embodiment of the present invention provides an electronic device, including:
a memory for storing executable instructions;
And the processor is used for realizing the barrage processing method provided by the embodiment of the invention when executing the executable instructions stored in the memory.
The embodiment of the invention provides a computer readable storage medium which stores executable instructions for realizing the bullet screen processing method provided by the embodiment of the invention when being executed by a processor.
In some embodiments, the storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, such as in one or more scripts in a hypertext markup language (HTML, hyper Text Markup Language) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or distributed across multiple sites and interconnected by a communication network.
The foregoing is merely exemplary embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims (13)
1. A method of treating a barrage, the method comprising:
playing video content of the target video in a playing interface; the target video comprises at least two video clips corresponding to preset time length;
Responding to the barrage editing operation aiming at the video content, and presenting a barrage editing interface corresponding to the video content; responding to the barrage editing operation triggered based on the barrage editing interface, and presenting the barrage corresponding to the target video obtained based on the barrage editing operation;
presenting public presentation function items and private presentation function items of the bullet screen; the public presentation function item is used for indicating that any client playing the target video has the authority to display the barrage, the private presentation function item is used for indicating that the authorized target client has the authority to display the barrage, when the private presentation function item is triggered, a corresponding target client selection interface is presented, and at least one selectable target client function item is presented in the target client selection interface, wherein the target client indicated by the target client function item is a client located in the same local area network as the client editing the barrage or a client appointed by the client editing the barrage;
receiving triggering operation aiming at the public presentation function item or the private presentation function item, and triggering a sending instruction aiming at the barrage; transmitting the barrage in response to a transmission instruction for the barrage;
acquiring a barrage corresponding to the target video, wherein the video content aimed by the barrage comprises a target object; the bullet screen content of the bullet screen has an association relationship with a target object contained in the target video segment;
When any one of the at least two video clips corresponding to the preset duration contains the target video clip of the target object, presenting the barrage in a playing interface corresponding to the target video clip; the target video clips comprise video clips containing the target object in the current play episode and video clips containing the target object in all episodes.
2. The method of claim 1, wherein the presenting public and private presentation functions of the bullet screen comprises:
In the bullet screen editing interface, displaying the public display function item and the private display function item of the bullet screen; or alternatively
And presenting the public presentation function item and the private presentation function item of the bullet screen through a card floating layer suspended on the bullet screen editing interface.
3. The method of claim 1, wherein the presenting public and private presentation functions of the bullet screen comprises:
Presenting a transmitting function item for transmitting the bullet screen in the bullet screen editing interface;
Responding to the triggering operation aiming at the sending function item, and presenting a sending mode selection interface with preset transparency, wherein the sending mode selection interface and the barrage editing interface are mutually independent;
And in the sending mode selection interface, displaying the public display function item and the private display function item of the barrage.
4. The method of claim 1, wherein said transmitting said barrage comprises:
when the sending instruction is used for indicating that any client side playing the target video has the authority of displaying the barrage, the barrage is sent to a server so as to
When the server receives a playing request of any client side for the target video, returning the video content of the target video and the barrage, so that when the client side plays to any one of the at least two video clips corresponding to the preset duration and containing the target video clip of the target object, the barrage is presented in a playing interface corresponding to the target video clip;
When the sending instruction is used for indicating that the authorized target client side has the authority of displaying the barrage, the barrage is sent to a server so as to
And when the server receives a playing request of the target client side for the target video, returning the video content of the target video and the barrage, so that the barrage is presented in a playing interface corresponding to the target video when the target client side plays any one of the at least two video segments corresponding to the preset duration, wherein the target video segment contains the target object.
5. The method of claim 1, wherein the barrage editing operation is a text adding operation corresponding to the video content, the presenting being based on a barrage of the target video resulting from the barrage editing operation, the method further comprising:
Presenting a text edit box corresponding to the video content;
And responding to a text adding operation triggered based on the text editing box, presenting text content input based on the text editing box in the text editing box, and taking the text content as barrage content of the barrage.
6. The method of claim 1, wherein the barrage editing operation is a text adding operation corresponding to the video content, the presenting being based on a barrage of the target video resulting from the barrage editing operation, the method further comprising:
presenting a voice input icon corresponding to the video content;
Responding to text adding operation triggered based on the voice input icon, presenting text content corresponding to the text adding operation in the barrage editing interface, and taking the text content as barrage content corresponding to the barrage;
The text content is obtained by converting text of voice input based on the voice input icon.
7. The method of claim 1, wherein the barrage editing operation is an image adding operation corresponding to the video content, the presenting being based on a barrage of the target video resulting from the barrage editing operation, the method further comprising:
Presenting image options corresponding to the video content;
And responding to an image adding operation triggered based on the image options, presenting at least one image element selected based on the image options in the barrage editing interface, and taking the image element as a barrage corresponding to the target video.
8. The method of claim 1, wherein the barrage editing operation is a media information adding operation corresponding to the video content, the presenting being based on a barrage of the target video resulting from the barrage editing operation, the method further comprising:
presenting media information options corresponding to the video content;
Responding to a media information adding operation triggered based on the media information options, presenting a media identifier corresponding to the media information added based on the media information adding operation in the barrage editing interface, and taking the media identifier as a barrage corresponding to the target video;
The media identifier is used for triggering and playing the added media information when receiving triggering operation for the media identifier, and the media information comprises at least one of the following components: audio information, video information.
9. The method of claim 1, wherein presenting the bullet screen in the playback interface corresponding to the target video clip comprises:
And presenting media identifications associated with the barrage in a playing interface corresponding to the target video clip, wherein the media identifications are used for indicating that the barrage carries media information, and the media information comprises at least one of the following: audio information, video information;
Accordingly, the method further comprises:
And responding to the triggering operation aiming at the media identification, and playing the media information carried by the barrage.
10. The method of claim 1, wherein presenting the bullet screen in the playback interface corresponding to the target video clip comprises:
determining a video frame containing the target object in the target video segment;
and when at least two frames exist in the video frames, presenting the barrage in a playing interface corresponding to the preset number of video frames.
11. A bullet screen processing apparatus, the apparatus comprising:
the playing module is used for playing the video content of the target video in the playing interface; the target video comprises at least two video clips corresponding to preset time length;
The first presentation module is used for responding to the barrage editing operation aiming at the video content and presenting a barrage editing interface corresponding to the video content;
The second presentation module is used for responding to the barrage editing operation triggered based on the barrage editing interface and presenting the barrage corresponding to the target video obtained based on the barrage editing operation;
The third presentation module is used for presenting the public presentation function items and the private presentation function items of the barrage; the public presentation function item is used for indicating that any client side playing the target video has the authority to display the barrage, the private presentation function item is used for indicating that the authorized target client side has the authority to display the barrage, when the private presentation function item is triggered, a corresponding target client side selection interface is presented, at least one selectable target client side function item is presented in the target client side selection interface, wherein the target client side indicated by the target client side function item is a client side which is positioned in the same local area network with the client side editing the barrage, or the client side editing the barrage designates a friend client side; receiving triggering operation aiming at the public presentation function item or the private presentation function item, and triggering a sending instruction aiming at the barrage;
the transmitting module is used for responding to a transmitting instruction aiming at the barrage and transmitting the barrage;
the acquisition module is used for acquiring a barrage corresponding to the target video, wherein the video content aimed by the barrage comprises a target object; the bullet screen content of the bullet screen has an association relationship with a target object contained in the target video segment;
The bullet screen presenting module is used for presenting the bullet screen in a playing interface corresponding to the target video clips when any one of the at least two video clips corresponding to the preset duration contains the target video clip of the target object; the target video clips comprise video clips containing the target object in the current play episode and video clips containing the target object in all episodes.
12. An electronic device, comprising:
a memory for storing executable instructions;
A processor for implementing the method of processing a barrage according to any of claims 1 to 10 when executing executable instructions stored in said memory.
13. A computer readable storage medium storing executable instructions for causing a processor to perform the method of processing a barrage according to any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010680273.0A CN111800668B (en) | 2020-07-15 | 2020-07-15 | Barrage processing method, barrage processing device, barrage processing equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010680273.0A CN111800668B (en) | 2020-07-15 | 2020-07-15 | Barrage processing method, barrage processing device, barrage processing equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111800668A CN111800668A (en) | 2020-10-20 |
CN111800668B true CN111800668B (en) | 2024-06-07 |
Family
ID=72807137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010680273.0A Active CN111800668B (en) | 2020-07-15 | 2020-07-15 | Barrage processing method, barrage processing device, barrage processing equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111800668B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449326A (en) * | 2020-11-06 | 2022-05-06 | 上海哔哩哔哩科技有限公司 | Video annotation method, client, server and system |
CN112328152B (en) * | 2020-11-26 | 2022-07-29 | 腾讯科技(深圳)有限公司 | Method and device for controlling playing of media file, electronic equipment and storage medium |
CN113179412A (en) * | 2021-03-15 | 2021-07-27 | 北京城市网邻信息技术有限公司 | Information processing method and device, electronic equipment and storage medium |
CN115484465B (en) * | 2021-05-31 | 2024-03-15 | 上海幻电信息科技有限公司 | Bullet screen generation method and device, electronic equipment and storage medium |
CN115037964B (en) * | 2022-06-06 | 2023-05-23 | 深圳市前海多晟科技股份有限公司 | Video combining method and device based on barrage, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980809A (en) * | 2015-06-30 | 2015-10-14 | 北京奇艺世纪科技有限公司 | Barrage processing method and apparatus |
CN106375865A (en) * | 2016-09-20 | 2017-02-01 | 腾讯科技(深圳)有限公司 | Method, system and terminal for bullet screen interaction based on social information |
CN109309851A (en) * | 2017-07-26 | 2019-02-05 | 腾讯科技(深圳)有限公司 | Information processing method, server and terminal |
CN109982128A (en) * | 2019-03-19 | 2019-07-05 | 腾讯科技(深圳)有限公司 | Barrage generation method, device, storage medium and the electronic device of video |
CN110460899A (en) * | 2019-06-28 | 2019-11-15 | 咪咕视讯科技有限公司 | Methods of exhibiting, terminal device and the computer readable storage medium of barrage content |
CN111405344A (en) * | 2020-03-18 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Bullet screen processing method and device |
-
2020
- 2020-07-15 CN CN202010680273.0A patent/CN111800668B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980809A (en) * | 2015-06-30 | 2015-10-14 | 北京奇艺世纪科技有限公司 | Barrage processing method and apparatus |
CN106375865A (en) * | 2016-09-20 | 2017-02-01 | 腾讯科技(深圳)有限公司 | Method, system and terminal for bullet screen interaction based on social information |
CN109309851A (en) * | 2017-07-26 | 2019-02-05 | 腾讯科技(深圳)有限公司 | Information processing method, server and terminal |
CN109982128A (en) * | 2019-03-19 | 2019-07-05 | 腾讯科技(深圳)有限公司 | Barrage generation method, device, storage medium and the electronic device of video |
CN110460899A (en) * | 2019-06-28 | 2019-11-15 | 咪咕视讯科技有限公司 | Methods of exhibiting, terminal device and the computer readable storage medium of barrage content |
CN111405344A (en) * | 2020-03-18 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Bullet screen processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111800668A (en) | 2020-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111800668B (en) | Barrage processing method, barrage processing device, barrage processing equipment and storage medium | |
CN108989297B (en) | Information access method, client, device, terminal, server and storage medium | |
CN106658200B (en) | Live video sharing and acquiring method and device and terminal equipment thereof | |
CN111294663B (en) | Bullet screen processing method and device, electronic equipment and computer readable storage medium | |
CN111970577B (en) | Subtitle editing method and device and electronic equipment | |
US8117281B2 (en) | Using internet content as a means to establish live social networks by linking internet users to each other who are simultaneously engaged in the same and/or similar content | |
CN109640129B (en) | Video recommendation method and device, client device, server and storage medium | |
US20140188997A1 (en) | Creating and Sharing Inline Media Commentary Within a Network | |
CN107920274B (en) | Video processing method, client and server | |
CN111447489A (en) | Video processing method and device, readable medium and electronic equipment | |
CN111294606B (en) | Live broadcast processing method and device, live broadcast client and medium | |
CN114025188B (en) | Live advertisement display method, system, device, terminal and readable storage medium | |
CN110958470A (en) | Multimedia content processing method, device, medium and electronic equipment | |
CN113010698B (en) | Multimedia interaction method, information interaction method, device, equipment and medium | |
CN110930220A (en) | Display method, display device, terminal equipment and medium | |
CN115379136B (en) | Special effect prop processing method and device, electronic equipment and storage medium | |
CN111949908A (en) | Media information processing method and device, electronic equipment and storage medium | |
CN112073738B (en) | Information processing method and device | |
US9152707B2 (en) | System and method for creating and providing media objects in a navigable environment | |
US20240177249A1 (en) | Interaction method based on multimedia object, device, electronic apparatus and non-transitory computer-readable storage medium | |
CN106936830B (en) | Multimedia data playing method and device | |
CN115563320A (en) | Information reply method, device, electronic equipment, computer storage medium and product | |
Renz et al. | Optimizing the video experience in moocs | |
CN115550550A (en) | Method for shooting and generating video and related equipment | |
CN117786159A (en) | Text material acquisition method, apparatus, device, medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40030872 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |