CN113343984A - Bullet screen prompting method and device, electronic equipment and storage medium - Google Patents
Bullet screen prompting method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113343984A CN113343984A CN202110720857.0A CN202110720857A CN113343984A CN 113343984 A CN113343984 A CN 113343984A CN 202110720857 A CN202110720857 A CN 202110720857A CN 113343984 A CN113343984 A CN 113343984A
- Authority
- CN
- China
- Prior art keywords
- bullet screen
- target data
- bullet
- data
- target
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 14
- 238000003062 neural network model Methods 0.000 claims description 6
- 238000012216 screening Methods 0.000 claims description 6
- 238000012163 sequencing technique Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 21
- 230000006870 function Effects 0.000 description 10
- 230000009471 action Effects 0.000 description 4
- 238000013475 authorization Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009194 climbing Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a bullet screen prompting method, a bullet screen prompting device, electronic equipment and a storage medium, which are applied to the technical field of computers, wherein the method comprises the following steps: when a user operates a bullet screen input box positioned in a playing interface of a multimedia file, determining currently played multimedia data of the multimedia file as target data; generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: a history bullet screen associated with the target data and/or target multimedia data which contains the target data and belongs to a specified data length; outputting bullet screen prompt words aiming at the target data in a playing interface based on the first type of bullet screen candidate words; the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected. The problem that the user needs to manually input the bullet screen, and the input process is not convenient enough can be solved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a bullet screen prompting method and apparatus, an electronic device, and a storage medium.
Background
In the process of playing the multimedia data, a user can give a view of the playing content at any playing time through a bullet screen at any playing time.
In the prior art, a playing interface of multimedia data includes an input box, so that a user can input a bullet screen to be published in the input box. Correspondingly, after the client acquires the bullet screen of the to-be-issued list, the client controls the bullet screen of the to-be-issued list to be displayed in the playing interface.
However, because the interactive mode of inputting the barrage in the input box requires the user to design and organize the language and manually input the designed barrage into the input box, the input process is not convenient enough.
Disclosure of Invention
The embodiment of the invention aims to provide a bullet screen prompting method, a bullet screen prompting device, electronic equipment and a storage medium, and aims to solve the problem that a user needs to manually input a bullet screen and the input process is not convenient enough. The specific technical scheme is as follows:
in a first aspect of the present invention, a bullet screen prompting method is provided, where when a user operates a bullet screen input box located in a playing interface of a multimedia file, currently played multimedia data of the multimedia file is determined as target data;
generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: the historical bullet screen is associated with the target data, and/or the target multimedia data which contains the target data and belongs to the specified data length;
outputting bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words;
and the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
Optionally, before outputting the bullet screen cue word for the target data in the playing interface based on the first type of bullet screen candidate word, the method further includes:
when detecting that a related key word is input into the bullet screen input box, generating a second type of bullet screen candidate words aiming at the target data by using the key word and a historical bullet screen associated with the target data;
the outputting of the bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words comprises:
selecting a plurality of bullet screen candidate words from the first type of bullet screen candidate words and the second type of bullet screen candidate words as bullet screen prompt words aiming at the target data;
and outputting the bullet screen prompt words aiming at the target data in the playing interface.
Optionally, the generating, by using the keyword and a historical bullet screen associated with the target data, a second type of bullet screen candidate word for the target data includes:
and determining the bullet screens matched with the keywords from the historical bullet screens associated with the target data as second-type bullet screen candidate words aiming at the target data.
Optionally, when the reference information includes: when the target multimedia data is obtained, generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data, wherein the generation comprises the following steps:
and identifying object information and/or scene information contained in the target multimedia data as a first type of bullet screen candidate word aiming at the target data.
Optionally, the identifying object information and/or scene information included in the target multimedia data includes:
and inputting the target multimedia data into a pre-trained neural network model for identifying object information and/or scene information to obtain the object information and/or the scene information contained in the target multimedia data.
Optionally, when the reference information includes: when the historical bullet screen is associated with the target data, generating first type bullet screen candidate words aiming at the target data according to the reference information of the target data, wherein the generation comprises the following steps:
and screening the bullet screens meeting the preset heat condition from the historical bullet screens associated with the target data to serve as first-class bullet screen candidate words for the target data.
Optionally, the screening, from the historical barrages associated with the target data, barrages meeting a predetermined heat condition includes:
determining the occurrence frequency of each bullet screen in the historical bullet screens related to the target data; taking the bullet screen with the occurrence frequency larger than a preset threshold value as a bullet screen meeting a preset heat condition; or,
sequencing the historical barrages associated with the target data according to the occurrence times; and taking the bullet screens sequenced in the preset range as bullet screens meeting the preset heat condition.
In a second aspect of the present invention, there is also provided a bullet screen prompting device, including:
the data determining module is used for determining currently played multimedia data of the multimedia file as target data when a user operates a bullet screen input box in a playing interface of the multimedia file;
the first generation module is used for generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: the historical bullet screen is associated with the target data, and/or the target multimedia data which contains the target data and belongs to the specified data length;
the bullet screen output module is used for outputting bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words;
and the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
Optionally, the apparatus further comprises:
a second generation module, configured to generate, before the bullet screen output module, a second type of bullet screen candidate words for the target data by using the keyword and a historical bullet screen associated with the target data when it is detected that a related keyword is input in the bullet screen input box;
the bullet screen output module is specifically configured to select a plurality of bullet screen candidate words from the first type of bullet screen candidate words and the second type of bullet screen candidate words as bullet screen prompt words for the target data;
and outputting the bullet screen prompt words aiming at the target data in the playing interface.
Optionally, the second generating module is specifically configured to determine, from the historical barracks associated with the target data, a barrack that matches the keyword, as a second type of barrack candidate word for the target data.
Optionally, when the reference information includes: when the target multimedia data is obtained, the first generation module is specifically configured to identify object information and/or scene information included in the target multimedia data, and use the object information and/or scene information as a first-type bullet screen candidate word for the target data.
Optionally, the first generating module is specifically configured to input the target multimedia data to a pre-trained neural network model for identifying object information and/or scene information, so as to obtain the object information and/or the scene information included in the target multimedia data.
Optionally, when the reference information includes: when the historical barrage is associated with the target data, the first generation module is specifically configured to filter, from the historical barrages associated with the target data, barrages that meet a predetermined heat condition as first-class barrage candidate words for the target data.
Optionally, the first generating module is specifically configured to determine the number of occurrences of each bullet screen in the historical bullet screens associated with the target data; taking the bullet screen with the occurrence frequency larger than a preset threshold value as a bullet screen meeting a preset heat condition; or sorting the historical barrages associated with the target data according to the occurrence times; and taking the bullet screens sequenced in the preset range as bullet screens meeting the preset heat condition.
In another aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any bullet screen prompting method when the program stored in the memory is executed.
In another aspect of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any one of the bullet screen prompting methods described above.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the bullet screen prompting methods described above.
According to the bullet screen prompting method provided by the embodiment of the invention, when a user operates a bullet screen input box positioned in a playing interface of a multimedia file, currently played multimedia data of the multimedia file is determined to be used as target data; generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: the historical bullet screen is associated with the target data, and/or the target multimedia data which contains the target data and belongs to the specified data length; and outputting bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words. According to the scheme, when a user operates the bullet screen input box, the first type of bullet screen candidate words can be automatically generated according to the reference information of the target data, and bullet screen prompt words are output on the play interface based on the first type of bullet screen candidate words for selection of the user, so that the problem that the user needs to manually input the bullet screen, and the input process is not convenient enough is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a bullet screen prompting method in an embodiment of the present invention;
fig. 2 is another flowchart of a bullet screen prompt method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a bullet screen prompting device in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to solve the problem that a user needs to manually input a bullet screen and the input process is not convenient enough, the embodiment of the invention provides a bullet screen prompting method and device, electronic equipment and a storage medium.
It should be noted that the barrage prompting method provided in the embodiment of the present invention is applied to an electronic device, and the electronic device may be any mobile terminal running with a multimedia client, and may also be a server corresponding to the multimedia client. In practical applications, the mobile terminal may be: smart phones, tablet computers, and the like.
Specifically, the execution subject of the bullet screen prompting method may be a bullet screen prompting device. For example, when the barrage prompting method is applied to a mobile terminal, the barrage prompting device may be a multimedia playing client running in the mobile terminal, for example: video clients, audio clients, etc.; of course, it is reasonable that the bullet screen prompting device can also be a plug-in program in the multimedia playing client. For example, when the barrage prompting method is applied to a server, the barrage prompting device may be a computer program running in the server.
In addition, when the multimedia playing client plays the multimedia file, the user can release the bullet screen through the bullet screen input box of the playing interface at any playing time, and the multimedia playing client can locally store the bullet screen released by the user.
The multimedia file related in the embodiment of the present invention may include a video file or an audio file, and the multimedia file may be a local multimedia file of the mobile terminal or an online multimedia file. In addition, the multimedia file may be composed of multimedia data of any data length. Illustratively, when the multimedia file is a video file, the video file may be comprised of any number of video frames.
The bullet screen prompting method provided by the embodiment of the invention comprises the following steps:
when a user operates a bullet screen input box positioned in a playing interface of a multimedia file, determining currently played multimedia data of the multimedia file as target data;
generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: a history bullet screen associated with the target data and/or target multimedia data which contains the target data and belongs to a specified data length;
outputting bullet screen prompt words aiming at the target data in a playing interface based on the first type of bullet screen candidate words;
the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
According to the scheme, when a user operates the bullet screen input box, the first type of bullet screen candidate words can be automatically generated according to the reference information of the target data, and bullet screen prompt words are output on the play interface based on the first type of bullet screen candidate words for selection of the user, so that the problem that the user needs to manually input the bullet screen, and the input process is not convenient enough is solved.
A bullet screen prompting method provided by the embodiment of the present invention is described in detail below with reference to fig. 1.
As shown in fig. 1, a bullet screen prompting method provided in an embodiment of the present invention may include:
s101, when a user operates a bullet screen input box in a playing interface of a multimedia file, determining currently played multimedia data of the multimedia file as target data;
it can be understood that when the user has a requirement for publishing the bullet screen, the user can realize publication of the bullet screen by operating the bullet screen input box. The bullet screen input box can be arranged at any position of the playing interface, or a user can click the input box display button to display the bullet screen input box in the playing interface. Correspondingly, there may be a plurality of ways for the user to operate the bullet screen input box, for example, when the bullet screen input box is set in the play interface, the ways for the user to operate the bullet screen input box may include: clicking the bullet screen input box; for example, when the bullet screen input box needs to be displayed by clicking an input box display button, the manner of the user operating the bullet screen input box may include: and clicking an input frame display button in the playing interface to display the bullet screen input frame in the playing interface, and further clicking the bullet screen input frame. In addition, when the bullet screen prompting method is applied to the server, the server detects that the user operates a bullet screen input box in a playing interface of the multimedia file when a bullet screen prompting word generation request sent by the multimedia client is received.
Moreover, the multimedia file may be composed of multimedia data with different data lengths, and the bullet screen that the user needs to publish may have a large association with the currently played multimedia data. Therefore, in order to improve the matching degree between the generated bullet screen prompt words and the user requirements, when the user operates a bullet screen input box located in a playing interface of the multimedia file, the currently played multimedia data of the multimedia file can be determined as target data. Moreover, for a video file, the currently played multimedia data of the multimedia file may be a currently played video frame of the video file; for an audio file, the currently played multimedia data of the multimedia file may be a currently played audio frame, i.e., an audio segment, of the audio file.
For example, in one implementation, determining currently playing multimedia data of the multimedia file as the target data may include: determining the played time length of the multimedia file, and determining the currently played multimedia data of the multimedia file as target data according to the played time length and the file time length of the multimedia file; or, identifying a current playing time point, and determining the multimedia data of the current playing time point as the currently played multimedia data of the multimedia file.
It can be understood that, in the playing process of the multimedia file, each playing time point has corresponding multimedia data, and then, according to the played time length of the multimedia file and the file time length of the multimedia file, the current playing time point of the multimedia file can be determined, so that the multimedia data corresponding to the current playing time point can be determined.
In addition, in order to improve the user experience, whether to execute the barrage prompting process can be determined according to the requirements of the user. In an implementation manner, the mobile terminal may provide a function switch for a user whether to start the barrage prompting function, and the function switch may be set on a setting interface of the mobile terminal or a playing interface of the multimedia file. For the condition that the function switch is arranged on the setting interface, a user can start the function in the setting interface, so that the mobile terminal can trigger and execute S101 when the multimedia file starts to play; for the case that the function switch is set in the playing interface, the user may start the function in the playing interface, so that the mobile terminal may trigger to execute S101 when the multimedia data starts to be played.
In another implementation manner, the mobile terminal may implement the barrage prompting process by requesting user authorization. For example: the mobile terminal outputs prompt information for guiding the user to authorize, and when the user selects authorization, the mobile terminal can execute the barrage prompting process, and when the user does not select authorization, the mobile terminal does not execute the barrage prompting process. The output timing of the prompt message may include, but is not limited to: the user requests to play the multimedia file during the playing process of the multimedia file.
S102, generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data;
wherein the reference information may include: a history bullet screen associated with the target data, and/or target multimedia data which contains the target data and belongs to a specified data length. For example, when the target data is video data, the target multimedia data of the specified length may be: a specified number of video frames; when the target data is audio data, the target multimedia data of the specified length may be: audio data of a specified audio length.
Considering that reference information of target data may be various, specific implementation manners for generating the first type of bullet screen candidate words for the target data according to the reference information of the target data may be various. Illustratively, in one implementation, when the reference information includes: when the target multimedia data is generated, according to the reference information of the target data, the generating of the first type of bullet screen candidate words for the target data may include: and identifying object information and/or scene information contained in the target multimedia data as a first type of bullet screen candidate word aiming at the target data.
There may be various object information and/or scene information included in the target multimedia data, for example: and identifying object information and/or scene information contained in the target multimedia data through a preset neural network model.
In this case, the identifying object information and/or scene information included in the target multimedia data may include:
and inputting the target multimedia data into a pre-trained neural network model for identifying the object information and/or the scene information to obtain the object information and/or the scene information contained in the target multimedia data.
For example, when the multimedia data is video data, the object information included in the target multimedia data may include, but is not limited to: the personal information included in the video data, such as: actors, character characters played by actors, etc.; the scene information contained in the target multimedia data may include, but is not limited to: the environment in which the persona is located, for example: mountain forest, etc., the actions performed, such as: mountain climbing, taking a picture, etc.
Illustratively, in another implementation, when the reference information includes: when the historical bullet screen is associated with the target data, generating a first type of bullet screen candidate word for the target data according to the reference information of the target data may include: and screening the bullet screens meeting the preset heat condition from the historical bullet screens associated with the target data to serve as first-class bullet screen candidate words for the target data.
Considering that different users may publish the same bullet screen for the same target data, when generating the first type bullet screen candidate words, the bullet screen meeting the predetermined heat condition may be filtered from the historical bullet screens associated with the target data as the first type bullet screen candidate words for the target data.
Optionally, in an implementation manner, any one of the following manners may be adopted to screen the bullet screens meeting the predetermined heat condition, including;
the method comprises the steps that in the first mode, the occurrence frequency of each bullet screen in historical bullet screens relevant to target data is determined; and taking the bullet screen with the occurrence frequency larger than a preset threshold value as the bullet screen meeting the preset heat condition.
The preset threshold may be determined according to needs and scenes, for example, the preset threshold may be 6.
In a second mode, sorting historical barrages associated with target data according to occurrence times; taking the bullet screens sequenced in the preset range as bullet screens meeting the preset heat condition
The preset range may be N in the top order, N may be determined according to the requirement and the scene, and for example, N may be 4.
The predetermined thermal condition may include various conditions, such as: the occurrence times reach a preset threshold value, and the occurrence times are sorted in a preset range, for example: sort first N, and so on.
In addition, when the reference information includes both a historical bullet screen associated with the target data and target multimedia data that includes the target data and belongs to a specified data length, generating a first type of bullet screen candidate word for the target data according to the reference information of the target data may include: identifying object information and/or scene information contained in the target multimedia data; screening the bullet screens meeting the preset heat condition from the historical bullet screens associated with the target data; and determining the identified object information and/or scene information and the screened bullet screens as first-class bullet screen candidate words aiming at the target data.
S103, outputting bullet screen prompt words aiming at the target data in the playing interface based on the first type bullet screen candidate words;
the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
For example, in an implementation manner, outputting, in the play interface, a bullet screen cue word for the target data based on the first type of bullet screen candidate word may include: and taking the first type of bullet screen candidate words as bullet screen prompt words aiming at the target data, and outputting the bullet screen prompt words on the playing interface.
It can be understood that there may be a plurality of bullet screen cue words output, then, after the bullet screen cue words for the target data are output in the playing interface, the user may select one or more bullet screen cue words from the output bullet screen cue words for publication, where the manner in which the user selects the bullet screen cue words may include, but is not limited to: clicking the output bullet screen prompt words, and the like. For example, in one implementation, when the user selects from the bullet screen cue words by clicking, the selected bullet screen cue words may serve as input content, and a bullet screen display area of the playing interface is displayed, where the bullet screen display area may be located at any position of the playing interface, for example: top, intermediate, etc.
For example, in another implementation manner, when the user selects from the bullet screen cue words by clicking, the selected bullet screen cue words may be displayed in a bullet screen input box of the playing interface as input content, and when a publication instruction of the user is obtained, the content in the bullet screen input box is published.
In addition, in order to improve the user experience, whether to display the bullet screen in the bullet screen display area can be determined according to the user requirements. For example, the playing interface may provide a function switch for a user whether to turn on a bullet screen displayed in the bullet screen display area, and when the function switch is turned on, the bullet screen display area may display a historical bullet screen, a currently published bullet screen, and the like.
According to the scheme, when a user operates the bullet screen input box, the first type of bullet screen candidate words can be automatically generated according to the reference information of the target data, and bullet screen prompt words are output on the play interface based on the first type of bullet screen candidate words for selection of the user, so that the problem that the user needs to manually input the bullet screen, and the input process is not convenient enough is solved.
Optionally, in another embodiment of the present invention, before outputting the bullet screen cue word for the target data in the playing interface based on the first type of bullet screen candidate word, the method may further include:
and when detecting that the related key words are input into the bullet screen input box, generating second type bullet screen candidate words aiming at the target data by using the key words and the historical bullet screen associated with the target data.
It is understood that, after the user operates the bullet screen input box, the user may input a keyword in the bullet screen input box, where the keyword may be a part of the bullet screen conceived by the user. Then, for convenience of user input, a second type of bullet screen candidate word for the target data may be generated by using the keyword and the historical bullet screen associated with the target data when the related keyword is detected to be input in the bullet screen input box.
For example, in one implementation, generating a second type of bullet screen candidate word for the target data by using the keyword and a historical bullet screen associated with the target data may include: and determining the bullet screens matched with the keyword from the historical bullet screens associated with the target data as second-type bullet screen candidate words aiming at the target data.
Wherein, the implementation process of determining the bullet screen matched with the keyword is not specifically limited, for example: compare the keyword to a historical bullet screen associated with the target data, and so on. It is contemplated that one or more matching barrages may be determined from the historical barrages associated with the target data. Then, for example, when a plurality of matched bullet screens are determined, it is reasonable that all the determined bullet screens are used as second-type bullet screen candidate words for the target data, or the bullet screen with the largest occurrence frequency in the determined bullet screens is used as the second-type bullet screen candidate words for the target data.
As the generated bullet screen candidate words may include a first type of bullet screen candidate words and a second type of bullet screen candidate words, in an exemplary implementation manner, based on the first type of bullet screen candidate words, the outputting of the bullet screen cue words for the target data in the play interface includes:
selecting a plurality of bullet screen candidate words from the first type of bullet screen candidate words and the second type of bullet screen candidate words as bullet screen prompt words aiming at the target data; and outputting the bullet screen prompt words aiming at the target data in the playing interface. The implementation process of selecting multiple bullet screen candidate words is not specifically limited, for example: randomly selected, in a preset priority order, etc.
For clarity of the scheme, as shown in fig. 2, a bullet screen prompting method provided in an embodiment of the present invention is introduced from an interaction angle between a multimedia playing client and a server corresponding to the multimedia client.
As shown in fig. 2, the bullet screen prompting method provided in the embodiment of the present invention may include the following steps S201 to S206:
s201, when a multimedia playing client detects that a user operates a bullet screen input box in a playing interface of a multimedia file, sending a bullet screen cue word generation request to a server;
s202, the server receives the bullet screen cue word generation request and determines the currently played multimedia data of the multimedia file as target data;
s203, the server identifies object information and/or scene information contained in the target multimedia data, and screens bullet curtains meeting a preset heat condition from historical bullet curtains associated with the target data to obtain first-class bullet curtain candidate words;
s204, when detecting that the related key words are input into the bullet screen input box, the server generates second type bullet screen candidate words aiming at the target data by using the key words and the historical bullet screen associated with the target data;
the execution sequence of steps S203 to S204 is not limited.
S205, the server determines the bullet screen cue words aiming at the target data based on the first type bullet screen candidate words and the second type bullet screen candidate words, and feeds the determined bullet screen cue words back to the multimedia playing client;
s206, the multimedia playing client receives the barrage prompting word and displays the barrage prompting word in the playing interface.
Compared with the above method embodiment, as shown in fig. 3, an embodiment of the present invention further provides a bullet screen prompting device, including:
a data determining module 310, configured to determine, when a user operates a bullet screen input box located in a playing interface of a multimedia file, currently played multimedia data of the multimedia file as target data;
the first generating module 320 is configured to generate a first type of bullet screen candidate words for the target data according to the reference information of the target data; wherein the reference information includes: a history bullet screen associated with the target data and/or target multimedia data which contains the target data and belongs to a specified data length;
the bullet screen output module 330 is configured to output bullet screen prompt words for the target data in the play interface based on the first type of bullet screen candidate words;
the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
According to the scheme, when a user operates the bullet screen input box, the first type of bullet screen candidate words can be automatically generated according to the reference information of the target data, and bullet screen prompt words are output on the play interface based on the first type of bullet screen candidate words for selection of the user, so that the problem that the user needs to manually input the bullet screen, and the input process is not convenient enough is solved.
Optionally, the apparatus further comprises:
the second generation module is used for generating second-class bullet screen candidate words aiming at the target data by using the keywords and the historical bullet screen associated with the target data when the fact that related key words are input in the bullet screen input box is detected before the bullet screen output module;
the bullet screen output module is specifically used for selecting a plurality of bullet screen candidate words from the first class of bullet screen candidate words and the second class of bullet screen candidate words as bullet screen prompt words aiming at the target data;
and outputting the bullet screen prompt words aiming at the target data in the playing interface.
Optionally, the second generating module is specifically configured to determine, from the historical barrages associated with the target data, a barrage that matches the keyword as a second type of barrage candidate word for the target data.
Optionally, when the reference information includes: when the target multimedia data is processed, the first generation module is specifically configured to identify object information and/or scene information included in the target multimedia data as a first type of bullet screen candidate word for the target data.
Optionally, the first generating module is specifically configured to input the target multimedia data to a pre-trained neural network model for identifying the object information and/or the scene information, so as to obtain the object information and/or the scene information included in the target multimedia data.
Optionally, when the reference information includes: when the historical barrage is associated with the target data, the first generation module is specifically configured to screen the barrage meeting the predetermined heat condition from the historical barrage associated with the target data, and use the barrage as a first-class barrage candidate word for the target data.
Optionally, the first generating module is specifically configured to determine the number of occurrences of each bullet screen in the historical bullet screens associated with the target data; taking the bullet screen with the occurrence frequency larger than a preset threshold value as a bullet screen meeting a preset heat condition; or sorting the historical barrages associated with the target data according to the occurrence times; and taking the bullet screens sequenced in the preset range as bullet screens meeting the preset heat condition.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement any of the bullet screen prompting method steps when executing the program stored in the memory 403.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program implements the bullet screen prompting method described in any of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the bullet screen prompting method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments such as the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A bullet screen prompting method is characterized by comprising the following steps:
when a user operates a bullet screen input box positioned in a playing interface of a multimedia file, determining currently played multimedia data of the multimedia file as target data;
generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: the historical bullet screen is associated with the target data, and/or the target multimedia data which contains the target data and belongs to the specified data length;
outputting bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words;
and the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
2. The method of claim 1, wherein before outputting the bullet screen cue word for the target data in the playing interface based on the first type bullet screen candidate word, the method further comprises:
when detecting that a related key word is input into the bullet screen input box, generating a second type of bullet screen candidate words aiming at the target data by using the key word and a historical bullet screen associated with the target data;
the outputting of the bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words comprises:
selecting a plurality of bullet screen candidate words from the first type of bullet screen candidate words and the second type of bullet screen candidate words as bullet screen prompt words aiming at the target data;
and outputting the bullet screen prompt words aiming at the target data in the playing interface.
3. The method of claim 2, wherein generating a second type of bullet screen candidate word for the target data by using the keyword and a historical bullet screen associated with the target data comprises:
and determining the bullet screens matched with the keywords from the historical bullet screens associated with the target data as second-type bullet screen candidate words aiming at the target data.
4. A method according to any of claims 1-3, characterized in that when said reference information comprises: when the target multimedia data is obtained, generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data, wherein the generation comprises the following steps:
and identifying object information and/or scene information contained in the target multimedia data as a first type of bullet screen candidate word aiming at the target data.
5. The method according to claim 4, wherein the identifying object information and/or scene information contained in the target multimedia data comprises:
and inputting the target multimedia data into a pre-trained neural network model for identifying object information and/or scene information to obtain the object information and/or the scene information contained in the target multimedia data.
6. A method according to any of claims 1-3, characterized in that when said reference information comprises: when the historical bullet screen is associated with the target data, generating first type bullet screen candidate words aiming at the target data according to the reference information of the target data, wherein the generation comprises the following steps:
and screening the bullet screens meeting the preset heat condition from the historical bullet screens associated with the target data to serve as first-class bullet screen candidate words for the target data.
7. The method of claim 6, wherein the screening of the bullet screens meeting a predetermined heat condition from the historical bullet screens associated with the target data comprises:
determining the occurrence frequency of each bullet screen in the historical bullet screens related to the target data; taking the bullet screen with the occurrence frequency larger than a preset threshold value as a bullet screen meeting a preset heat condition; or,
sequencing the historical barrages associated with the target data according to the occurrence times; and taking the bullet screens sequenced in the preset range as bullet screens meeting the preset heat condition.
8. The utility model provides a bullet curtain suggestion device which characterized in that includes:
the data determining module is used for determining currently played multimedia data of the multimedia file as target data when a user operates a bullet screen input box in a playing interface of the multimedia file;
the first generation module is used for generating a first type of bullet screen candidate words aiming at the target data according to the reference information of the target data; wherein the reference information includes: the historical bullet screen is associated with the target data, and/or the target multimedia data which contains the target data and belongs to the specified data length;
the bullet screen output module is used for outputting bullet screen prompt words aiming at the target data in the playing interface based on the first type of bullet screen candidate words;
and the bullet screen prompt words are contents selectable by the user and are displayed in the playing interface as input contents after being selected.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110720857.0A CN113343984A (en) | 2021-06-28 | 2021-06-28 | Bullet screen prompting method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110720857.0A CN113343984A (en) | 2021-06-28 | 2021-06-28 | Bullet screen prompting method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113343984A true CN113343984A (en) | 2021-09-03 |
Family
ID=77479222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110720857.0A Pending CN113343984A (en) | 2021-06-28 | 2021-06-28 | Bullet screen prompting method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113343984A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115348479A (en) * | 2022-07-22 | 2022-11-15 | 北京奇艺世纪科技有限公司 | Video playing problem identification method, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040824A (en) * | 2017-04-18 | 2017-08-11 | 深圳市金立通信设备有限公司 | A kind of method and terminal for sending barrage |
CN107835439A (en) * | 2017-10-25 | 2018-03-23 | 中国移动通信集团公司 | A kind of barrage method for pushing, electronic equipment and computer-readable recording medium |
CN108268666A (en) * | 2018-02-26 | 2018-07-10 | 北京奇艺世纪科技有限公司 | A kind of searching method and device |
CN108924658A (en) * | 2018-06-05 | 2018-11-30 | 上海哔哩哔哩科技有限公司 | Barrage association-feeding method, device and computer readable storage medium |
CN111601174A (en) * | 2020-04-26 | 2020-08-28 | 维沃移动通信有限公司 | Subtitle adding method and device |
CN111629270A (en) * | 2019-02-27 | 2020-09-04 | 北京搜狗科技发展有限公司 | Candidate item determination method and device and machine-readable medium |
CN112698735A (en) * | 2020-12-24 | 2021-04-23 | 维沃移动通信有限公司 | Information input method and device and electronic equipment |
-
2021
- 2021-06-28 CN CN202110720857.0A patent/CN113343984A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040824A (en) * | 2017-04-18 | 2017-08-11 | 深圳市金立通信设备有限公司 | A kind of method and terminal for sending barrage |
CN107835439A (en) * | 2017-10-25 | 2018-03-23 | 中国移动通信集团公司 | A kind of barrage method for pushing, electronic equipment and computer-readable recording medium |
CN108268666A (en) * | 2018-02-26 | 2018-07-10 | 北京奇艺世纪科技有限公司 | A kind of searching method and device |
CN108924658A (en) * | 2018-06-05 | 2018-11-30 | 上海哔哩哔哩科技有限公司 | Barrage association-feeding method, device and computer readable storage medium |
CN111629270A (en) * | 2019-02-27 | 2020-09-04 | 北京搜狗科技发展有限公司 | Candidate item determination method and device and machine-readable medium |
CN111601174A (en) * | 2020-04-26 | 2020-08-28 | 维沃移动通信有限公司 | Subtitle adding method and device |
CN112698735A (en) * | 2020-12-24 | 2021-04-23 | 维沃移动通信有限公司 | Information input method and device and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115348479A (en) * | 2022-07-22 | 2022-11-15 | 北京奇艺世纪科技有限公司 | Video playing problem identification method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9451305B2 (en) | Method, computer readable storage medium, and introducing and playing device for introducing and playing media | |
CN111432226B (en) | Live broadcast recommendation method and device, server, terminal and storage medium | |
CN108475260A (en) | Method, system and the medium of the language identification of items of media content based on comment | |
CN110708588B (en) | Barrage display method and device, terminal and storage medium | |
JP2014116026A (en) | Hierarchical tag having community-based rating | |
CN109729377B (en) | Anchor information pushing method and device, computer equipment and storage medium | |
US20220303735A1 (en) | Providing a summary of media content to a communication device | |
CN115134653A (en) | Predictive media routing | |
CN108470057B (en) | Generating and pushing method, device, terminal, server and medium of integrated information | |
US20150372952A1 (en) | Method and system for enhanced content messaging | |
CN113343984A (en) | Bullet screen prompting method and device, electronic equipment and storage medium | |
US10389871B2 (en) | Call alert options | |
CN112995765B (en) | Network resource display method and device | |
CN112073757A (en) | Emotion fluctuation index acquisition method, emotion fluctuation index display method and multimedia content production method | |
CN111460181A (en) | Multimedia resource recommendation method, electronic device and storage medium | |
US9875242B2 (en) | Dynamic current results for second device | |
CN110717109B (en) | Method, device, electronic equipment and storage medium for recommending data | |
CN110674330B (en) | Expression management method and device, electronic equipment and storage medium | |
CN114357293A (en) | Object recommendation method and device, electronic equipment and computer-readable storage medium | |
CN110989954B (en) | Multi-screen linkage resource display method and device and electronic equipment | |
CN114173199A (en) | Video output method and device, intelligent equipment and storage medium | |
CN113449147A (en) | Video recommendation method and device based on theme | |
WO2015061465A1 (en) | A landing page for presenting media items | |
CN115118697B (en) | Method and device for activating resource access rights | |
CN118138798A (en) | Video processing method, device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210903 |