CN112954380B - Video playing processing method and device - Google Patents
Video playing processing method and device Download PDFInfo
- Publication number
- CN112954380B CN112954380B CN202110184197.9A CN202110184197A CN112954380B CN 112954380 B CN112954380 B CN 112954380B CN 202110184197 A CN202110184197 A CN 202110184197A CN 112954380 B CN112954380 B CN 112954380B
- Authority
- CN
- China
- Prior art keywords
- stream
- video
- video stream
- played
- barrage
- 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
Images
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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- 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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
-
- 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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- 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/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- 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/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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The disclosure relates to a video playing processing method and device. Wherein, the method comprises the following steps: acquiring a video playing request, wherein information carried in the video playing request comprises user account information and playing progress information; according to the user account information and the playing progress information, selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream; and sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas respectively. The technical problem that when video playing or live broadcast service is provided for a user in the prior art, the video pictures are blocked due to too many bullet screens, and the user loses interactive pleasure due to too few bullet screens is solved.
Description
Technical Field
The present disclosure relates to the field of video playing, and in particular, to a video playing processing method and apparatus.
Background
Network video platforms have become an important part of the internet, and more audiences watch online videos through terminals such as computers and mobile phones. The user can be through sending the barrage or watching the barrage that other users sent when watching video or live through the terminal to arouse the interactive passion between the user, strengthen the input sense of watching the video, however, if the barrage on the screen too much can shelter from the video picture, the barrage is too few again can miss information.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the disclosure provides a video playing processing method and device, and at least solves the technical problems that in the prior art, when video playing or live broadcast service is provided for a user, too many barrages cause video frames to be blocked, and too few barrages cause the user to lose interactive pleasure.
According to an aspect of the embodiments of the present disclosure, there is provided a video playback processing method, including: acquiring a video playing request, wherein the video playing request comprises user account information and playing progress information; according to the user account information and the playing progress information, selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream; and sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas respectively.
Optionally, before obtaining the video playing request, the method further includes: acquiring the first video stream and the first barrage stream; and synchronously storing the first video stream and the first barrage stream based on the playing progress of the first video stream, wherein the timestamp information of the synchronously stored first video stream and the timestamp information of the first barrage stream are consistent.
Optionally, based on the play progress of the first video stream, the synchronous storage of the first video stream and the first barrage stream includes: determining first timestamp information of the first video stream corresponding to the playing progress; and synchronously storing the first video stream and the first bullet screen stream based on the first timestamp information.
Optionally, selecting, according to the user account information and the play progress information, a second video stream to be played from the first video stream and a second barrage stream played synchronously with the second video stream from the first barrage stream, including: determining second timestamp information corresponding to the playing progress information; and selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream by using the user account information and the second timestamp information.
Optionally, the method further includes: detecting whether a playing progress adjustment request is received, wherein information carried in the playing progress adjustment request comprises: user account information and playing progress adjusting information; selecting a third video stream to be played from the first video stream and a third barrage stream which is played synchronously with the third video stream from the first barrage stream by using the user account information and the playing progress adjustment information; and sending the third video stream and the third barrage stream to at least one client.
Optionally, sending the second video stream and the second barrage stream to at least one client includes: acquiring hardware attribute information of the at least one client; determining a video display strategy based on the hardware attribute information; and sending the second video stream and the second barrage stream to the at least one client according to the video display strategy.
According to another aspect of the embodiments of the present disclosure, there is also provided a video playing processing method, including: sending a video playing request to a server, wherein information carried in the video playing request comprises user account information and playing progress information; receiving a video stream to be played and a bullet screen stream to be played, which is synchronized with the video stream to be played, returned by the server, wherein the video stream to be played and the bullet screen stream to be played are determined by the user account information and the playing progress information; and respectively displaying the video stream to be played and the bullet screen stream to be played in different display areas.
Optionally, the displaying the video stream to be played and the barrage stream to be played in different display areas respectively includes: and displaying the video stream to be played in a first display area of a first display terminal, and displaying the bullet screen stream to be played in a second display area of a second display terminal.
Optionally, the displaying the to-be-played video stream and the to-be-played barrage stream in different display areas respectively includes: and displaying the video stream to be played in a first display area of a first display terminal, and displaying the bullet screen stream to be played in a second display area of the first display terminal.
According to another aspect of the embodiments of the present disclosure, there is also provided a video playback processing apparatus, including: the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is configured to execute acquisition of a video playing request, and information carried in the video playing request comprises user account information and playing progress information; a first selecting unit, configured to select a second video stream to be played from the first video stream and a second barrage stream played synchronously with the second video stream from the first barrage stream according to the user account information and the playing progress information; a first sending unit configured to execute sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas, respectively.
Optionally, the apparatus further comprises: a second acquiring unit configured to perform acquisition of the first video stream and the first bullet screen stream; and the storage unit is configured to execute synchronous storage of the first video stream and the first barrage stream based on the playing progress of the first video stream, wherein the timestamp information of the synchronously stored first video stream and the first barrage stream is consistent.
Optionally, the storage unit includes: a first determining subunit configured to perform determination of first timestamp information of the first video stream corresponding to the play progress; and the storage subunit is configured to perform synchronous storage on the first video stream and the first bullet screen stream based on the first timestamp information.
Optionally, the first selecting unit includes: a second determining subunit configured to perform determination of second time stamp information corresponding to the play progress information; and the selecting subunit is configured to select, by using the user account information and the second timestamp information, a second video stream to be played from the first video stream, and select, from the first barrage stream, a second barrage stream to be played in synchronization with the second video stream.
Optionally, the apparatus further comprises: a detecting unit, configured to perform detection to determine whether a play progress adjustment request is received, where information carried in the play progress adjustment request includes: user account information and playing progress adjusting information; a second selecting unit, configured to select, by using the user account information and the play progress adjustment information, a third video stream to be played from the first video stream and a third barrage stream played synchronously with the third video stream from the first barrage stream; and a second sending unit configured to execute sending the third video stream and the third barrage stream to at least one client.
Optionally, the first sending unit includes: an obtaining subunit, configured to perform obtaining hardware attribute information of the at least one client; a determining subunit configured to perform determining a video display policy based on the hardware attribute information; a sending subunit configured to execute sending the second video stream and the second barrage stream to the at least one client according to the video display policy.
According to another aspect of the embodiments of the present disclosure, there is also provided a video playback processing apparatus, including: the request unit is configured to execute sending of a video playing request to a server, wherein information carried in the video playing request comprises user account information and playing progress information; a receiving unit, configured to execute receiving of a to-be-played video stream returned by the server and a to-be-played barrage stream synchronized with the to-be-played video stream, where the to-be-played video stream and the to-be-played barrage stream are determined by the user account information and the playing progress information; and the display unit is configured to display the video stream to be played and the bullet screen stream to be played in different display areas respectively.
Optionally, the display unit includes: and the first display subunit is configured to display the video stream to be played in a first display area of the first display terminal, and display the bullet screen stream to be played in a second display area of the second display terminal.
Optionally, the display unit includes: and the second display subunit is configured to display the video stream to be played in a first display area of a first display terminal, and display the barrage stream to be played in a second display area of the first display terminal.
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to run the computer program to execute any one of the above video playing processing methods.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium, where instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above-mentioned video playing processing methods.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer program product, which includes a computer program/instruction, when executed by a processor, the computer program/instruction implements any one of the above-mentioned video playing processing methods.
In the embodiment of the disclosure, a video stream and a barrage stream are separately displayed, and a video playing request is acquired, wherein the video playing request comprises user account information and playing progress information; according to the user account information and the playing progress information, selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream; the second video stream and the second barrage stream are sent to at least one client, so that the second video stream and the second barrage stream are respectively displayed in different display areas by the at least one client, the purpose of guaranteeing interactive pleasure when a user watches videos due to the fact that too many barrages lead to shielding video pictures is achieved, the technical effect of better experience of video playing or live broadcasting services is achieved for the user, and the technical problem that when video playing or live broadcasting services are provided for the user in the prior art, too many barrages lead to shielding video pictures, and too few barrages lead to the fact that the user loses interactive pleasure is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a video playback processing method in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating an alternative video playback processing method in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another video playback processing method in accordance with an illustrative embodiment;
fig. 4 is a schematic structural diagram illustrating a video playback processing apparatus according to an exemplary embodiment;
fig. 5 is a schematic structural diagram illustrating another video playback processing apparatus according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those skilled in the art, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only some embodiments of the present disclosure, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
In accordance with an embodiment of the present disclosure, there is provided an embodiment of a video playback processing method, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flow chart illustrating a video playback processing method according to an exemplary embodiment, as shown in fig. 1, the method including the steps of:
step S102, a video playing request is obtained, wherein the video playing request comprises user account information and playing progress information;
step S104, selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream according to the user account information and the playing progress information;
step S106, sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas, respectively.
In the embodiment of the disclosure, a video stream and a barrage stream are separately displayed, and a video playing request is acquired, wherein the video playing request comprises user account information and playing progress information; according to the user account information and the playing progress information, selecting a second video stream to be played from a first video stream and selecting a second barrage stream which is played synchronously with the second video stream from a first barrage stream; the second video stream and the second barrage stream are sent to at least one client, so that the second video stream and the second barrage stream are respectively displayed in different display areas by the at least one client, the purpose of guaranteeing interactive pleasure when a user watches videos due to the fact that too many barrages lead to shielding video pictures is achieved, the technical effect of better experience of video playing or live broadcasting services is achieved for the user, and the technical problem that when video playing or live broadcasting services are provided for the user in the prior art, too many barrages lead to shielding video pictures, and too few barrages lead to the fact that the user loses interactive pleasure is solved.
It should be noted that, an execution subject in the embodiment of the present disclosure is a server, for example, a video playing server, where when a user plays a video, the server receives a video playing request sent by a client, determines, according to information carried in the video playing request, that is, according to user account information, which user account the current video playing request is sent by, reads a timestamp of a current playing picture of the user according to playing progress information, selects a second video stream to be played from a first video stream, and selects a second barrage stream that is played synchronously with the second video stream from the first barrage stream.
For example, the user may log in the client on one display terminal, and the second video stream and the second barrage stream may be played in two display areas of one display terminal, or the two display areas of the two display terminals that are independent from each other may be played, respectively.
For example, if the server sends the video stream and the barrage stream to two different clients, only the video stream is sent to one client, and only the barrage stream is sent to the other client; only sending a video stream to one client, and sending a barrage stream and a video stream to the other client; or sending the video stream and the barrage stream to a client, but the video stream and the barrage stream are separately displayed in different areas (for example, two or more) of a screen on the client, or sending the video stream and the barrage stream to a client, and the client is provided with two displays (for example, a computer is connected with the two displays, a mobile phone is used for projecting a screen, and the like), and the video stream and the barrage stream are separately displayed on the client.
As an optional embodiment, after detecting that a user logs in a client or a web page version of the same video platform on two display terminals, and after the user starts the bullet screen split-screen mode, the user can select one display terminal to receive the second video stream for playing video data through user account information, for example, the display terminal in which the account login state can be logged in, and another display terminal only receives the second bullet screen stream and displays the bullet screen data, but the video data and the bullet screen data can also be played simultaneously in a manner of processing bullet screen videos conventionally.
Because the two display terminals are related through the user account, the server can know which video picture is played by the current user account and the playing progress, so that the video pictures and the barrage data of the two display terminals can be synchronously displayed. Through the method and the device, the technical problems that the bullet screen characters shield video playing pictures and a plurality of terminals are matched to display videos and the bullet screen cannot be synchronized are solved.
In the embodiment of the present disclosure, when a user only holds one display terminal, the above scheme cannot be effectively implemented. At this time, the display area can be divided into two parts in a browser or a client, or a split screen display mode is adopted, so that the purpose of simulating the cooperation of two display terminals to synchronously display the video data and the barrage data is realized.
It should be noted that, the server does not handle the functions of pause, fast forward and rewind of the live video, and the server only needs to store the received video stream data and the barrage stream data and forward the corresponding video stream data and barrage stream data to each client according to the received video playing request.
In an optional embodiment, as shown in fig. 2, before acquiring the video playing request, the method further includes:
step S202, obtaining the first video stream and the first barrage stream;
step S204, based on the playing progress of the first video stream, synchronously storing the first video stream and the first barrage stream, where the timestamp information of the synchronously stored first video stream and the first barrage stream is consistent.
Optionally, the playing progress may be determined based on timestamp information of the first video stream, as shown in fig. 2, the server may add timestamp information that is consistent with the corresponding first video stream to the acquired first barrage stream, and store the first video stream and the first barrage stream in the database synchronously.
In an optional embodiment, the synchronously storing the first video stream and the first barrage stream based on the playing progress of the first video stream includes:
step S302, determining first timestamp information of the first video stream corresponding to the playing progress;
step S304, based on the first timestamp information, synchronously storing the first video stream and the first barrage stream.
In the embodiment of the present disclosure, before acquiring a video playing request, a server receives an existing first video stream and a first barrage stream, adds timestamp information consistent with a corresponding video stream to each barrage stream, and synchronously stores the first video stream and the first barrage stream in a database.
In an optional embodiment, selecting, according to the user account information and the playing progress information, a second video stream to be played from the first video stream and a second barrage stream played synchronously with the second video stream from the first barrage stream include:
step S402, determining second time stamp information corresponding to the playing progress information;
step S404, selecting a second video stream to be played from the first video stream and selecting a second barrage stream played synchronously with the second video stream from the first barrage stream by using the user account information and the second timestamp information.
In this disclosure, by using the user account information and the second timestamp information, a second video stream to be played is selected from the first video stream, and a second barrage stream that is played synchronously with the second video stream is selected from the first barrage stream, so that the synchronous second video stream and the second barrage stream can be obtained.
In an optional embodiment, the method further includes:
step S502, detecting whether a play progress adjustment request is received, where information carried in the play progress adjustment request includes: user account information and playing progress adjusting information;
step S504, selecting a third video stream to be played from the first video stream and a third barrage stream which is played synchronously with the third video stream from the first barrage stream by using the user account information and the playing progress adjustment information;
step S506, sending the third video stream and the third barrage stream to at least one client.
In the embodiment of the disclosure, if a user needs to adjust the playing progress when playing a video, the server receives a playing progress adjustment request of the user and then adjusts the playing progress based on user account information and playing progress adjustment information carried in the playing progress adjustment request; selecting a third video stream to be played from the first video stream and selecting a third barrage stream which is played synchronously with the third video stream from the first barrage stream; and sending the third video stream and the third barrage stream to at least one client.
Through the embodiment of the disclosure, even if the user adjusts the playing progress in the process of playing the video, the server adjusts the playing progress based on the user account information and the playing progress adjustment information carried in the playing progress adjustment request; and selecting the adjusted third video stream and a third barrage stream which is played synchronously with the third video stream, thereby still ensuring that the adjusted video data and the barrage data are played synchronously.
As an optional embodiment, the sending the second video stream and the second barrage stream to at least one client includes:
step S510, acquiring hardware attribute information of the at least one client;
step S512, determining a video display strategy based on the hardware attribute information;
step S514, sending the second video stream and the second barrage stream to the at least one client according to the video display policy.
In this embodiment of the present disclosure, hardware attribute information of at least one client may be obtained, for example, the number of display terminals of the client or a display area in the display terminals of the client, and a corresponding video display policy is determined based on the obtained hardware attribute information, that is, the second video stream and the second barrage stream are respectively displayed in different display areas of which terminals, or the second video stream and the second barrage stream are respectively displayed in different display terminals of a plurality of display terminals, and then the second video stream and the second barrage stream are correspondingly sent to the at least one client based on the video display policy, so that a technical effect of providing a better experience of video playing or live broadcasting service for a user may be achieved.
According to an embodiment of the present disclosure, an embodiment of another video playing processing method is provided, and fig. 3 is a flowchart illustrating another video playing processing method according to an exemplary embodiment, as shown in fig. 3, the method includes the following steps:
step S602, sending a video playing request to a server, wherein information carried in the video playing request comprises user account information and playing progress information;
step S604, receiving a to-be-played video stream returned by the server and a to-be-played barrage stream synchronized with the to-be-played video stream, where the to-be-played video stream and the to-be-played barrage stream are determined by the user account information and the play progress information;
step S606, respectively displaying the video stream to be played and the bullet screen stream to be played in different display areas.
In the embodiment of the disclosure, a video stream and a barrage stream are separately displayed, and a video playing request is sent to a server, wherein information carried in the video playing request includes user account information and playing progress information; receiving a video stream to be played and a bullet screen stream to be played, which is synchronized with the video stream to be played, returned by the server, wherein the video stream to be played and the bullet screen stream to be played are determined by the user account information and the playing progress information; show respectively in the display area of difference that the aforesaid is treated to broadcast the video stream and the aforesaid is treated to broadcast the barrage stream, reached and avoided when leading to sheltering from the video picture because the barrage is too much, the purpose of the interactive enjoyment when the guarantee user watched the video, thereby realized providing the technical effect who experiences better video broadcast or live broadcast service for the user, and then solved among the prior art when providing video broadcast or live broadcast service for the user, there is the barrage too much to lead to sheltering from the video picture, the barrage leads to the user to lose the technical problem of interactive enjoyment too little.
It should be noted that an execution subject in the embodiment of the present disclosure is a display terminal, where a client, for example, a video playing client and a video playing web page, runs on the display terminal, and when a user plays a video, a video playing request is sent to a server through the client, the server receives the video playing request sent by the client, determines, according to information carried in the video playing request, that is, according to user account information, which user account the current video playing request is sent by, reads a timestamp of a current playing picture of the user according to playing progress information, selects a second video stream to be played from a first video stream and a second bullet screen stream that is played synchronously with the second video stream from the first bullet screen stream, and sends the second bullet screen stream to the client in time, and displays the video stream to be played in a first display area and the bullet screen stream to be played in a second display area through the display terminal.
For example, the user may log in the client on one display terminal, and the server may play the second video stream and the second barrage stream in different display areas of one display terminal, where the different display areas may be two display areas of two display terminals that are respectively independent, and the second video stream and the second barrage stream are respectively played.
In an optional embodiment, the displaying the video stream to be played and the barrage stream to be played in different display areas respectively includes:
step S702, displaying the video stream to be played in a first display area of a first display terminal, and displaying the bullet screen stream to be played in a second display area of a second display terminal.
As an optional embodiment, after detecting that a user logs in a client or a web page version of the same video platform on two display terminals, and after the user starts the barrage split-screen mode, one display terminal may be selected to receive the second video stream for playing video data through user account information, for example, the display terminal in which the account log-in state can log in, and the other display terminal only receives the second barrage stream and displays the barrage data, but may also play the video data and the barrage data simultaneously in a conventional manner of processing a barrage video.
Because the two display terminals are related through the user account, the server can know which video picture is played by the current user account and the playing progress, so that the video pictures and the barrage data of the two display terminals can be synchronously displayed. Through the method and the device, the technical problems that the bullet screen characters shield video playing pictures and a plurality of terminals are matched to display videos and the bullet screen cannot be synchronized are solved.
In an optional embodiment, displaying the to-be-played video stream and the to-be-played barrage stream in different display areas respectively includes:
step S802, displaying the video stream to be played in a first display area of a first display terminal, and displaying the bullet screen stream to be played in a second display area of the first display terminal.
In the embodiment of the present disclosure, when a user only holds one display terminal, the above scheme cannot be effectively implemented. At this time, the display area can be divided into two parts in a browser or a client, or a split screen display mode is adopted, so that the purpose of simulating the cooperation of two display terminals to synchronously display the video data and the barrage data is realized.
According to an embodiment of the present disclosure, there is also provided an apparatus embodiment for implementing the video playback processing method, and fig. 4 is a schematic structural diagram of a video playback processing apparatus according to an exemplary embodiment, and as shown in fig. 4, the video playback processing apparatus includes: a first obtaining unit 40, a first selecting unit 42 and a first sending unit 44, wherein:
a first obtaining unit 40, configured to perform obtaining of a video playing request, where information carried in the video playing request includes user account information and playing progress information; a first selecting unit 42, configured to select a second video stream to be played from the first video stream and a second barrage stream played synchronously with the second video stream from the first barrage stream according to the user account information and the playing progress information; a first sending unit 44 configured to perform sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas, respectively.
It should be noted that the first obtaining unit 40, the first selecting unit 42 and the first sending unit 44 correspond to steps S102 to S106 in the method embodiment, and the modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure in the method embodiment. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
In an optional embodiment, the first sending unit includes: an obtaining subunit, configured to perform obtaining hardware attribute information of the at least one client; a determining subunit configured to perform determining a video display policy based on the hardware attribute information; a sending subunit, configured to execute sending, to the at least one client, the second video stream and the second barrage stream according to the video display policy.
In an optional embodiment, the apparatus further comprises: a second acquiring unit configured to perform acquisition of the first video stream and the first bullet screen stream; and the storage unit is configured to execute synchronous storage of the first video stream and the first barrage stream based on the playing progress of the first video stream, wherein the timestamp information of the synchronously stored first video stream and the first barrage stream is consistent.
In an optional embodiment, the storage unit includes: a first determining subunit configured to perform determining first time stamp information of the first video stream corresponding to the play progress; and the storage subunit is configured to perform synchronous storage of the first video stream and the first barrage stream based on the first timestamp information.
In an optional embodiment, the first selecting unit includes: a second determining subunit configured to perform determination of second time stamp information corresponding to the play progress information; and the selecting subunit is configured to select, by using the user account information and the second timestamp information, a second video stream to be played from the first video stream, and select, from the first barrage stream, a second barrage stream to be played in synchronization with the second video stream.
In an optional embodiment, the apparatus further comprises: a detecting unit, configured to perform detection to determine whether a play progress adjustment request is received, where information carried in the play progress adjustment request includes: user account information and playing progress adjusting information; a second selecting unit, configured to select, by using the user account information and the play progress adjustment information, a third video stream to be played from the first video stream and a third barrage stream played synchronously with the third video stream from the first barrage stream; and a second sending unit configured to execute sending the third video stream and the third barrage stream to at least one client.
According to an embodiment of the present disclosure, another apparatus embodiment for implementing the video playback processing method is further provided, fig. 5 is a schematic structural diagram of another video playback processing apparatus according to an exemplary embodiment, and as shown in fig. 5, the video playback processing apparatus includes: a requesting unit 50, a receiving unit 52 and a displaying unit 54, wherein:
the request unit 50 is configured to execute sending of a video playing request to a server, where information carried in the video playing request includes user account information and playing progress information; a receiving unit 52, configured to execute receiving a to-be-played video stream returned by the server and a to-be-played barrage stream synchronized with the to-be-played video stream, where the to-be-played video stream and the to-be-played barrage stream are determined by the user account information and the playing progress information; and a display unit 54 configured to perform displaying the video stream to be played and the bullet screen stream to be played in different display areas, respectively.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
In an alternative embodiment, the display unit includes: and the first display subunit is configured to display the video stream to be played in a first display area of the first display terminal, and display the bullet screen stream to be played in a second display area of the second display terminal.
In an alternative embodiment, the display unit includes: and the second display subunit is configured to execute displaying the video stream to be played in a first display area of the first display terminal and displaying the bullet screen stream to be played in a second display area of the first display terminal.
It should be noted here that the requesting unit 50, the receiving unit 52 and the displaying unit 54 correspond to steps S602 to S606 in the method embodiment, and the modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the method embodiment. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, for alternative or preferred embodiments of the present embodiment, reference may be made to the related description in the method embodiment, and details are not described herein again.
The video playing processing device may further include a processor and a memory, where the first obtaining unit 40, the first selecting unit 42, the first sending unit 44, the requesting unit 50, the receiving unit 52, the displaying unit 54, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), including at least one memory chip.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the video playing processing methods described above.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer program product, which includes computer programs/instructions, when executed by a processor, implement any one of the above-mentioned video playing processing methods.
According to an embodiment of the present disclosure, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to execute a program, where the program executes any one of the video playing processing methods.
According to an embodiment of the present disclosure, there is also provided an embodiment of an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the video playing processing methods.
Optionally, fig. 6 is a block diagram illustrating an electronic device according to an exemplary embodiment, and as shown in fig. 6, the electronic device may include: at least one (only one shown) processor 61, memory 62, and peripheral interface 63.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the processing and apparatus for feature vectors in the embodiments of the disclosure, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the video playing processing method described above. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform any one of the above-mentioned video playing processing method steps.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description, and do not represent the advantages or disadvantages of the embodiments.
In the above embodiments of the present disclosure, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (17)
1. A video playback processing method, comprising:
acquiring a video playing request, wherein the video playing request comprises user account information and playing progress information;
according to the user account information and the playing progress information, selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream;
sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas respectively;
wherein the method further comprises: detecting whether a playing progress adjustment request is received, wherein information carried in the playing progress adjustment request comprises: user account information and playing progress adjusting information; selecting a third video stream to be played from the first video stream and selecting a third barrage stream which is played synchronously with the third video stream from the first barrage stream by using the user account information and the playing progress adjustment information; and sending the third video stream and the third barrage stream to at least one client.
2. The method of claim 1, wherein prior to obtaining the video playback request, the method further comprises:
acquiring the first video stream and the first barrage stream;
and synchronously storing the first video stream and the first barrage stream based on the playing progress of the first video stream, wherein the timestamp information of the synchronously stored first video stream and the first barrage stream is consistent.
3. The method of claim 2, wherein the synchronously storing the first video stream and the first barrage stream based on the playing progress of the first video stream comprises:
determining first timestamp information of the first video stream corresponding to the playing progress;
and synchronously storing the first video stream and the first bullet screen stream based on the first timestamp information.
4. The method of claim 1, wherein selecting a second video stream to be played from the first video stream and a second barrage stream played synchronously with the second video stream from the first barrage stream according to the user account information and the playing progress information comprises:
determining second timestamp information corresponding to the playing progress information;
and selecting a second video stream to be played from the first video stream and selecting a second barrage stream which is played synchronously with the second video stream from the first barrage stream by using the user account information and the second timestamp information.
5. The method of claim 1, wherein sending the second video stream and the second barrage stream to at least one client comprises:
acquiring hardware attribute information of the at least one client;
determining a video display policy based on the hardware attribute information;
and sending the second video stream and the second barrage stream to the at least one client according to the video display strategy.
6. A video playback processing method, comprising:
sending a video playing request to a server, wherein information carried in the video playing request comprises user account information and playing progress information;
receiving a video stream to be played and a bullet screen stream to be played, which is synchronized with the video stream to be played, returned by the server, wherein the video stream to be played and the bullet screen stream to be played are determined by the user account information and the playing progress information;
and respectively displaying the video stream to be played and the bullet screen stream to be played in different display areas.
7. The method according to claim 6, wherein displaying the video stream to be played and the bullet screen stream to be played in different display areas respectively comprises:
and displaying the video stream to be played in a first display area of a first display terminal, and displaying the bullet screen stream to be played in a second display area of a second display terminal.
8. The method according to claim 6, wherein displaying the video stream to be played and the barrage stream to be played in different display areas respectively comprises:
and displaying the video stream to be played in a first display area of a first display terminal, and displaying the bullet screen stream to be played in a second display area of the first display terminal.
9. A video playback processing apparatus, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is configured to execute acquisition of a video playing request, and information carried in the video playing request comprises user account information and playing progress information;
the first selection unit is configured to select a second video stream to be played from the first video stream and select a second barrage stream which is played synchronously with the second video stream from the first barrage stream according to the user account information and the playing progress information;
a first sending unit configured to execute sending the second video stream and the second barrage stream to at least one client, so that the at least one client displays the second video stream and the second barrage stream in different display areas, respectively;
wherein the apparatus further comprises: a detecting unit configured to perform detection on whether a play progress adjustment request is received, where information carried in the play progress adjustment request includes: user account information and playing progress adjusting information; a second selecting unit, configured to select, by using the user account information and the play progress adjustment information, a third video stream to be played from the first video stream and a third barrage stream that is played in synchronization with the third video stream from the first barrage stream; a second transmitting unit configured to perform transmitting the third video stream and the third barrage stream to at least one client.
10. The apparatus of claim 9, further comprising:
a second acquisition unit configured to perform acquisition of the first video stream and the first barrage stream;
the storage unit is configured to execute synchronous storage of the first video stream and the first barrage stream based on the playing progress of the first video stream, wherein the timestamp information of the first video stream and the timestamp information of the first barrage stream which are synchronously stored are consistent.
11. The apparatus of claim 10, wherein the storage unit comprises:
a first determining subunit configured to perform determining first time stamp information of the first video stream corresponding to the play progress;
a storage subunit configured to perform synchronous storage of the first video stream and the first barrage stream based on the first timestamp information.
12. The apparatus according to claim 9, wherein the first selecting unit comprises:
a second determining subunit configured to perform determining second time stamp information corresponding to the play progress information;
and the selecting subunit is configured to select, by using the user account information and the second timestamp information, a second video stream to be played from the first video stream, and select, from the first barrage stream, a second barrage stream that is played synchronously with the second video stream.
13. The apparatus of claim 9, wherein the first sending unit comprises:
an acquisition subunit configured to perform acquisition of hardware attribute information of the at least one client;
a determining subunit configured to perform determining a video display policy based on the hardware attribute information;
a sending subunit configured to execute sending the second video stream and the second barrage stream to the at least one client according to the video display policy.
14. A video playback processing apparatus, comprising:
the request unit is configured to execute sending of a video playing request to a server, wherein information carried in the video playing request comprises user account information and playing progress information;
the receiving unit is configured to execute receiving of a to-be-played video stream returned by the server and a to-be-played barrage stream synchronized with the to-be-played video stream, wherein the to-be-played video stream and the to-be-played barrage stream are determined by the user account information and the playing progress information;
and the display unit is configured to display the video stream to be played and the bullet screen stream to be played in different display areas respectively.
15. The apparatus of claim 14, wherein the display unit comprises:
the first display subunit is configured to display the video stream to be played in a first display area of a first display terminal, and display the bullet screen stream to be played in a second display area of a second display terminal.
16. The apparatus of claim 14, wherein the display unit comprises:
and the second display subunit is configured to display the video stream to be played in a first display area of a first display terminal, and display the barrage stream to be played in a second display area of the first display terminal.
17. A computer-readable storage medium whose instructions, when executed by a processor of an electronic device, enable the electronic device to perform the video playback processing method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110184197.9A CN112954380B (en) | 2021-02-10 | 2021-02-10 | Video playing processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110184197.9A CN112954380B (en) | 2021-02-10 | 2021-02-10 | Video playing processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112954380A CN112954380A (en) | 2021-06-11 |
CN112954380B true CN112954380B (en) | 2023-03-21 |
Family
ID=76245572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110184197.9A Active CN112954380B (en) | 2021-02-10 | 2021-02-10 | Video playing processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112954380B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115277650B (en) * | 2022-07-13 | 2024-01-09 | 深圳乐播科技有限公司 | Screen-throwing display control method, electronic equipment and related device |
CN115623068A (en) * | 2022-09-14 | 2023-01-17 | 深圳市湘凡科技有限公司 | Video screen projection playing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107920270A (en) * | 2017-10-27 | 2018-04-17 | 努比亚技术有限公司 | Video separated screen control method for playing back, terminal and computer-readable recording medium |
CN108600853A (en) * | 2018-05-10 | 2018-09-28 | 北京奇艺世纪科技有限公司 | A kind of barrage playback method, device, system and electronic equipment |
CN109040811A (en) * | 2018-08-16 | 2018-12-18 | 北京奇艺世纪科技有限公司 | A kind of video broadcasting method and device |
WO2019006939A1 (en) * | 2017-07-05 | 2019-01-10 | 武汉斗鱼网络科技有限公司 | On-screen comment display method and apparatus, and electronic device |
CN109379636A (en) * | 2018-09-20 | 2019-02-22 | 京东方科技集团股份有限公司 | Barrage processing method, apparatus and system |
CN110719516A (en) * | 2019-10-21 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Video synchronization method and device, terminal and storage medium |
CN110769303A (en) * | 2019-10-31 | 2020-02-07 | 维沃移动通信有限公司 | Playing control method and device and mobile terminal |
CN111131876A (en) * | 2019-12-13 | 2020-05-08 | 深圳市咨聊科技有限公司 | Control method, device and terminal for live video and computer readable storage medium |
-
2021
- 2021-02-10 CN CN202110184197.9A patent/CN112954380B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019006939A1 (en) * | 2017-07-05 | 2019-01-10 | 武汉斗鱼网络科技有限公司 | On-screen comment display method and apparatus, and electronic device |
CN107920270A (en) * | 2017-10-27 | 2018-04-17 | 努比亚技术有限公司 | Video separated screen control method for playing back, terminal and computer-readable recording medium |
CN108600853A (en) * | 2018-05-10 | 2018-09-28 | 北京奇艺世纪科技有限公司 | A kind of barrage playback method, device, system and electronic equipment |
CN109040811A (en) * | 2018-08-16 | 2018-12-18 | 北京奇艺世纪科技有限公司 | A kind of video broadcasting method and device |
CN109379636A (en) * | 2018-09-20 | 2019-02-22 | 京东方科技集团股份有限公司 | Barrage processing method, apparatus and system |
CN110719516A (en) * | 2019-10-21 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Video synchronization method and device, terminal and storage medium |
CN110769303A (en) * | 2019-10-31 | 2020-02-07 | 维沃移动通信有限公司 | Playing control method and device and mobile terminal |
CN111131876A (en) * | 2019-12-13 | 2020-05-08 | 深圳市咨聊科技有限公司 | Control method, device and terminal for live video and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112954380A (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109089154B (en) | Video extraction method, device, equipment and medium | |
CN106161219B (en) | Message treatment method and device | |
CN109089127B (en) | Video splicing method, device, equipment and medium | |
US20170171274A1 (en) | Method and electronic device for synchronously playing multiple-cameras video | |
CN108632632B (en) | Live webcast data processing method and device | |
CN112470482A (en) | Video playing method, device, terminal and storage medium | |
CN109714622B (en) | Video data processing method and device and electronic equipment | |
CN104918061B (en) | A kind of recognition methods of television channel and system | |
CN108635863B (en) | Live webcast data processing method and device | |
CN112714327B (en) | Interaction method, device and equipment based on live application program and storage medium | |
CN111147911A (en) | Video clipping method and device, electronic equipment and storage medium | |
CN112954380B (en) | Video playing processing method and device | |
RU2673560C1 (en) | Method and system for displaying multimedia information, standardized server and direct broadcast terminal | |
WO2019114330A1 (en) | Video playback method and apparatus, and terminal device | |
CN104185040A (en) | Application synchronization method, application server and terminal | |
CN113141531B (en) | Method and device for cross-device play control and play device | |
CN111050204A (en) | Video clipping method and device, electronic equipment and storage medium | |
CN108833809A (en) | A kind of video mixed flow control method, device, system, equipment and medium | |
CN111107434A (en) | Information recommendation method and device | |
CN112533048A (en) | Video playing method, device and equipment | |
US20170225077A1 (en) | Special video generation system for game play situation | |
KR102163695B1 (en) | Method for providing real-time engaging streaming service over internet and apparatus therefor | |
CN107529075B (en) | Cross-screen continuous playing method, system, server, equipment and cross-screen continuous playing equipment | |
CN109862385B (en) | Live broadcast method and device, computer readable storage medium and terminal equipment | |
US10491681B2 (en) | Method and a device for enriching a call |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |