CN112866755A - Video playing method and device, electronic equipment and storage medium - Google Patents

Video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112866755A
CN112866755A CN202011626099.8A CN202011626099A CN112866755A CN 112866755 A CN112866755 A CN 112866755A CN 202011626099 A CN202011626099 A CN 202011626099A CN 112866755 A CN112866755 A CN 112866755A
Authority
CN
China
Prior art keywords
video
played
playing
progress
current
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.)
Granted
Application number
CN202011626099.8A
Other languages
Chinese (zh)
Other versions
CN112866755B (en
Inventor
罗彬�
魏春旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gaotu Education Technology Group Co ltd
Original Assignee
Beijing Xiaozao Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaozao Technology Co ltd filed Critical Beijing Xiaozao Technology Co ltd
Priority to CN202011626099.8A priority Critical patent/CN112866755B/en
Publication of CN112866755A publication Critical patent/CN112866755A/en
Application granted granted Critical
Publication of CN112866755B publication Critical patent/CN112866755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/08Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-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/47217End-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

Abstract

The embodiment of the application provides a video playing method, a video playing device, electronic equipment and a storage medium, wherein the video playing method comprises the following steps: sending a video playing request aiming at a video to be played to a server; receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server, wherein the description file comprises a storage address of the video to be played; determining the current playing progress of the video to be played; acquiring the video stream of the video to be played according to the storage address, and playing the video stream from the current playing progress; in the playing process, video correction parameters are determined at preset time intervals, and the current playing progress of the video to be played is corrected based on the video correction parameters. The technical scheme provided by the application can replace the traditional RTMP mode, is simple to access, improves the stability of video live broadcast, and reduces the network cost.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of video playing, in particular to a video playing method and device, electronic equipment and a storage medium.
Background
With the rise of the online education industry, the efficiency of online education is greatly improved by means of the energization of technology, and in the background, an AI pseudo-live broadcast class starts to rise and is generally adopted by online education companies. Traditional pseudo live broadcasting can be recorded in advance to broadcast the video, wait to broadcast the time point, and the live pushes away the streaming server and passes through live protocols such as RTMP and give the customer end to the video stream, and the user watches the video through living the device. The prior art has high cost and serious seizure problem, and is easily interfered by network jitter and other problems in the continuous real-time stream pushing process, so that the live broadcast stability is low, and the watching experience of a user is seriously influenced.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a video playing method, a video playing device, an electronic device and a storage medium, which can perform pseudo live broadcast in a mode of determining the current live broadcast progress to position a pseudo live broadcast video, are beneficial to improving the live broadcast stability and reducing the broadband cost of a live broadcast network.
According to an aspect of the present application, a video playing method is provided, which is applied to a live video client, and the video playing method includes:
sending a video playing request aiming at a video to be played to a server;
receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server, wherein the description file comprises a storage address of the video to be played;
determining the current playing progress of the video to be played;
acquiring the video stream of the video to be played according to the storage address, and playing the video stream from the current playing progress;
in the playing process, video correction parameters are determined at preset time intervals, and the current playing progress of the video to be played is corrected based on the video correction parameters.
In some embodiments, the description file may further include a current timestamp and a play start timestamp of the video to be played, wherein determining a current play progress of the video to be played may include: determining the time difference between the current time stamp and the play starting time stamp of the video to be played; and determining the time difference as the current playing progress of the video to be played.
In some embodiments, the video correction parameters may be determined by: determining the actual playing progress of the video to be played; determining the theoretical playing progress of the video to be played; and determining the absolute value of the time difference between the actual playing progress and the theoretical playing progress of the video to be played as the video correction parameter.
In some embodiments, the modifying the current playing progress of the video to be played based on the video correction parameter may include: comparing the video correction parameters with a set time threshold; if the video correction parameter is not larger than the set time threshold, not correcting the current playing progress of the video to be played; and if the video correction parameter is larger than the set time threshold, modifying the current playing progress of the video to be played based on the video correction parameter.
In some embodiments, the modifying the current playing progress of the video to be played based on the video correction parameter may include: determining whether the time difference between the actual playing progress and the theoretical playing progress of the video to be played is greater than zero; if the time difference is larger than zero, slowing down the current playing progress of the video to be played according to the video correction parameters; and if the time difference is not greater than zero, the current playing progress of the video to be played is quickened according to the video correction parameters.
In some embodiments, the actual playing progress is a video progress recorded by a live video client; and determining the theoretical playing progress as the video progress controlled by the client.
According to another aspect of the present application, there is provided a video playing apparatus applied to a live video client, the video playing apparatus including:
the request sending module is used for sending a video playing request aiming at a video to be played to the server;
the file receiving module is used for receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server, wherein the description file comprises a storage address of the video to be played;
the progress determining module is used for determining the current playing progress of the video to be played;
the video playing module acquires the video stream of the video to be played according to the storage address and plays the video stream from the current playing progress;
in the playing process, the progress determining module determines video correction parameters at preset time intervals, and corrects the current playing progress of the video to be played based on the video correction parameters.
In some embodiments, the description file further includes a current timestamp and a play start timestamp of the video to be played, wherein the progress determination module determines a time difference between the current timestamp and the play start timestamp of the video to be played; and determining the time difference as the current playing progress of the video to be played.
According to another aspect of the present application, there is also provided an electronic device, including: the video playing method comprises a processor, a memory and a bus, wherein the memory stores machine readable instructions executable by the processor, when the electronic device runs, the processor and the memory are communicated through the bus, and the processor executes the machine readable instructions to execute the steps of the video playing method.
According to another aspect of the present application, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the video playback method described above.
The video playing method provided by the embodiment of the application is applied to a live video client, and comprises the following steps: sending a video playing request aiming at a video to be played to a server; receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server, wherein the description file comprises a storage address of the video to be played; determining the current playing progress of the video to be played; acquiring the video stream of the video to be played according to the storage address, and playing the video stream from the current playing progress; in the playing process, video correction parameters are determined at preset time intervals, and the current playing progress of the video to be played is corrected based on the video correction parameters.
Compared with the prior art, the invention has the following beneficial effects:
the video playing method provided by the invention plays the video by capturing the current playing progress of the video to be played. From this, can trigger the broadcast of video according to current time information, replace the pseudo-live mode of traditional RTMP, the access is simple, realizes preloading video at the live client of video more easily, has promoted the speed of opening the live broadcast, has solved pseudo-live broadcast time delay problem, is favorable to promoting user's experience and feels, greatly reduced the use cost of broadband.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present application;
fig. 2 is a flowchart of another video playing method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In order to enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a specific application scenario "online education, online lecture listening". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of a video online live session, it should be understood that this is merely one exemplary embodiment.
One aspect of the present application relates to a video playback method. The method can position the video to be played according to the video playing progress to realize pseudo live broadcast, reduces the pause rate, avoids the phenomenon of video packet loss and improves the video stability.
It is worth noting that before the application is provided, the traditional pseudo live broadcast mode is that live broadcast video is recorded in advance, when the live broadcast time point is reached, a live broadcast stream pushing server pushes video stream to a client through live broadcast protocols such as RTMP, and a user watches the video through a live broadcast device.
However, the video playing method provided by the application abandons the traditional RTMP stream pushing scheme, adopts a mode of determining the video playing progress to position and play the video, improves the video stability and reduces the broadband cost.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present invention. The method is applied to a live video client, namely, the video playing method is a method for controlling the playing progress of a video to be played at the live video client, and the specific flow is as follows:
step S101, sending a video playing request aiming at a video to be played to a server.
In an optional embodiment, the video playing method can be applied to scenes such as online education, online teaching, online lecture listening and the like, and corresponding videos can be played in the scenes in a live broadcast mode.
Besides, the corresponding video can be played in a pseudo-live mode in the scene. Here, pseudo live broadcasting refers to broadcasting a video recorded in advance in a live broadcasting manner. At this time, the video to be played may refer to a pseudo live video. For example, a pseudo live broadcast video is pre-stored in a server, the time when the pseudo live broadcast starts is recorded in the server, the server sends a corresponding description file according to the time when different live broadcast clients enter a live broadcast interface, and the description file is used for determining the live broadcast progress of the different live broadcast clients, so that the pseudo live broadcast effect is achieved. For example, the start playing time set by the pseudo live video is 9 am, and if a live video client enters a live interface at 9 am and 5 min, and sends a video playing request, the live video client can start playing directly from the 5 th min of the pseudo live video, that is, videos seen by all live video clients are synchronized.
Illustratively, a live video client may first enter a live interface including a plurality of live programs (e.g., a plurality of online courses), and when receiving a selection of any live program of the plurality of live programs from a user, generate a video play request, and send the video play request to a server.
Here, any selected live program is a video to be played, and the generated video playing request is a video playing request for the video to be played.
Step S102, receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server. Here, the description file may include a storage address of the video to be played, so that the application to the live video client can obtain a video stream of the video to be played based on the storage address.
For example, the video playing request may carry related information of a video to be played, where the related information may include, but is not limited to, one or more of the following: the name of the video to be played and the content label of the video to be played.
After receiving the video playing request, the server analyzes the video playing request to obtain the relevant information of the video to be played, and determines the description file of the video to be played based on the relevant information.
That is to say, after the live video client enters live broadcasting, the live video client sends a video playing request for a video to be played to the server, and then the live video client receives a description file of the video to be played, which is fed back by the server in response to the video playing request.
Step S103, determining the current playing progress of the video to be played.
In the embodiment of the present application, the description file may further include a current timestamp and a play start timestamp of the video to be played, in addition to the storage address of the video to be played.
Here, the current time stamp may refer to the total number of seconds from the greenwich mean time 1970, 01, 00 hours 00 minutes 00 seconds (the beijing time 1970, 01, 08 hours 00 seconds) to the current live time, and the play start time stamp of the video to be played may refer to the start time of the video to be played, for example, when the video to be played is a learning video of a mathematical course of online education, the play start time stamp of the video to be played may refer to the start time of the learning video. The current playing progress of the video to be played is also the current live broadcasting progress.
In this case, in this step, a time difference between the current time stamp and the play start time stamp of the video to be played may be determined, and the time difference is determined as the current play progress of the video to be played.
And step S104, acquiring the video stream of the video to be played according to the storage address, and playing the video stream from the current playing progress.
According to the video playing method, in the playing process, the video correction parameters are determined at preset time intervals, and the current playing progress of the video to be played is corrected based on the video correction parameters.
Here, the video correction parameter is used to correct the current playing progress of the video to be played by the live video client, that is, the video correction parameter is determined based on a determination result of whether the actual playing progress of the video to be played is consistent with the theoretical playing progress, so as to correct the current playing progress of the video to be played.
In this embodiment, a video to be played, which is recorded in advance, is stored in the server, and the video playing time (i.e., the playing progress) of the video to be played is recorded from the moment when the video to be played starts to be played. When the live video client enters live broadcasting at a certain moment, the live video client acquires the current playing progress of the video to be played from the server, and the live video client positions the video to be played to the progress to play the video.
Referring to fig. 2, a schematic flow chart of another video playing method provided in the embodiment of the present application is shown, where the method may be executed by a live video client, and the specific execution process is as follows:
step S201, a video playing request for a video to be played is sent to a server.
Step S202, receiving the description file of the video to be played, which is fed back by the server in response to the video playing request, from the server. Here, the description file includes a storage address of a video to be played.
Step S203, determining the current playing progress of the video to be played.
And step S204, acquiring the video stream of the video to be played according to the storage address, and playing the video stream from the current playing progress.
The descriptions of steps S201 to S204 may refer to the descriptions of steps S101 to S104 shown in fig. 1, and the same technical effects can be achieved, which are not described in detail herein.
For example, the description file may be parsed to obtain a storage address of the video to be played, where the storage address is located in the on-demand server, so as to obtain the video stream of the video to be played according to the storage address for playing.
Illustratively, for various courses in online education, during playing, a server encapsulates a video to be played (a prerecorded pseudo live video) into an on-demand video stream, and then a live video client actively pulls the on-demand video stream, so that the live effect same as that of the traditional RTMP live broadcast is realized. The live video client starts to preload videos before live broadcast starts, when a user starts to watch the videos, the actual videos are preloaded, the videos can be watched directly without any loading process, so that the opening time of the first frame of the videos is almost 0 millisecond, the length of the playing process can be flexibly cached, the problem of pseudo live broadcast delay is avoided, and the pause phenomenon is avoided more easily.
In step S205, in the playing process, the video correction parameter is determined at a predetermined time interval, so as to modify the current playing progress of the video to be played based on the video correction parameter.
In an alternative embodiment, the video correction parameters (as represented by δ) may be determined by: determining the actual playing progress of the video to be played; determining the theoretical playing progress of a video to be played; and determining the absolute value of the time difference between the actual playing progress and the theoretical playing progress of the video to be played as a video correction parameter.
Here, the actual playing progress of the video to be played is the live time progress recorded by the live video client, the theoretical playing progress is the difference between the current timestamp and the live starting timestamp, wherein the current timestamp and the playing starting timestamp (i.e., the live starting timestamp) of the video to be played can be obtained by parsing the description file acquired from the server for the first time from the live video client, the difference between the current timestamp of the server and the local current timestamp of the live video client is recorded by the live video client, the theoretical playing progress is not required to be acquired from the server after calculation, and the sum of the difference and the local current timestamp can be determined as the current timestamp.
As an example, the predetermined time interval may be set to 5S, but the present application is not limited thereto, and the numerical value of the predetermined time interval may be set by those skilled in the art as needed, and the present application is not limited thereto. In an embodiment, the video correction parameter δ is determined every 5S to determine whether the current playing progress of the video to be played needs to be corrected.
Step S206, determining whether the video correction parameter is greater than a predetermined time threshold.
If the video correction parameter is greater than the set time threshold, step S206 is executed: and modifying the current playing progress of the video to be played based on the video correction parameter.
As an example, in this step, it may be determined whether a time difference between an actual playing progress and a theoretical playing progress of the video to be played is greater than zero; if the time difference is greater than zero, the current playing progress of the video to be played is slowed down according to the video correction parameters, for example, the difference value between the current playing progress and the video correction parameters is determined as a new playing progress, and the new playing progress is positioned to be played. If the time difference is smaller than zero, the current playing progress of the video to be played is adjusted according to the video correction parameter, for example, the sum of the current playing progress and the video correction parameter is determined as a new playing progress, and the current playing progress is positioned to be played.
For example, the current video playing progress is recorded, and the process returns to step S203, so that the live video client obtains a new start position of the video stream according to the timestamp of the current playing progress, the timestamp stored in the video and the data position information (the video stream in the MP4 format), corrects the new start position, and pulls the new video stream from the server again.
As an example, the set time threshold may be set to 5S, but the application is not limited thereto, and the value of the set time threshold may be set by a person skilled in the art as needed, and the application is not limited thereto.
For the above listed example, if δ is not greater than 5S, the current playing progress of the video to be played is not corrected; if delta is larger than 5S, the live video client obtains a new start position of the video stream according to the current playing progress timestamp, the timestamp stored in the video header and the data position information (the video stream in the MP4 format), pulls the new video stream from the server again, and corrects the time progress of the video to be played according to the parameter.
Because the current live broadcast progress is inconsistent with the expected pseudo live broadcast progress due to network or other reasons, in the playing process, a video correction parameter is determined at a preset time interval, and the video correction parameter is compared with a set time threshold value, so that the live broadcast progress is checked.
If the video correction parameter is not greater than the set time threshold, the current playing progress of the video to be played is not modified, and step S207 is continuously executed: and judging whether the video to be played is played completely.
Here, whether the video to be played is played to the end may be interrupted based on the current playing progress of the video to be played and the total video duration of the video to be played. For example, if the difference between the total video duration of the video to be played and the current playing progress of the video to be played is zero, it indicates that the video to be played has been played, and if the difference between the total video duration of the video to be played and the current playing progress of the video to be played is not zero, it indicates that the video to be played has not been played.
If the video playing to be played is not finished, the process returns to step S203 to continue playing the video.
If the video broadcast to be played is already played, the video playing is ended, for example, the video live broadcast client can quit the live broadcast.
Based on the same inventive concept, a video playing apparatus corresponding to the video playing method shown in fig. 1 is also provided in the embodiments of the present application, and since the principle of the apparatus in the embodiments of the present application for solving the problem is similar to the service pushing method described above in the embodiments of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 3, which is a schematic diagram of a video playback device according to an embodiment of the present application, the video playback device 300 includes: a request sending module 310, a file receiving module 320, a progress determining module 330, and a video playing module 340; wherein the content of the first and second substances,
the request sending module 310 sends a video playing request for a video to be played to the server.
The file receiving module 320 receives, from the server, the description file of the video to be played, which is fed back by the server in response to the video playing request. Here, the description file includes a storage address of a video to be played.
The progress determination module 330 determines the current playing progress of the video to be played.
The video playing module 340 obtains the video stream of the video to be played according to the storage address, and plays the video stream from the current playing progress.
During the playing process, the progress determination module 330 determines the video correction parameters at predetermined time intervals, and modifies the current playing progress of the video to be played based on the video correction parameters.
In one possible embodiment, the description file may include a storage address of the video to be played, a current timestamp, and a playing start timestamp of the video to be played, in which case, the progress determining module 330 may determine a current playing progress of the video to be played, and determine a time difference between the current timestamp and the playing start timestamp of the video to be played; and determining the time difference as the current playing progress of the video to be played.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 runs, the processor 410 communicates with the memory 420 through the bus 430, and when the machine-readable instructions are executed by the processor 410, the steps of the video playing method in the method embodiments shown in fig. 1 and fig. 2 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video playing method in the method embodiments shown in fig. 1 and fig. 2 may be executed.
In summary, the video playing method, the video playing device, the electronic device and the storage medium provided in this embodiment perform live video playing by positioning the current playing progress of the video to be played. From this, this kind of mode has replaced the pseudo-live mode of traditional RTMP, and the access is simple, is favorable to realizing preloading the video at the customer end, has promoted stability, has solved the problem that pseudo-live is delayed, has reduced the card and has pause the rate, very big enhancement user experience sense.
It should be noted that, in this document, 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.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A video playing method is applied to a live video client, and comprises the following steps:
sending a video playing request aiming at a video to be played to a server;
receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server, wherein the description file comprises a storage address of the video to be played;
determining the current playing progress of the video to be played;
acquiring the video stream of the video to be played according to the storage address, and playing the video stream from the current playing progress;
in the playing process, video correction parameters are determined at preset time intervals, and the current playing progress of the video to be played is corrected based on the video correction parameters.
2. The video playing method according to claim 1, wherein the description file further includes a current time stamp and a playing start time stamp of the video to be played,
wherein, the determining the current playing progress of the video to be played includes:
determining the time difference between the current time stamp and the play starting time stamp of the video to be played;
and determining the time difference as the current playing progress of the video to be played.
3. The video playback method of claim 1, wherein the video correction parameter is determined by:
determining the actual playing progress of the video to be played;
determining the theoretical playing progress of the video to be played;
and determining the absolute value of the time difference between the actual playing progress and the theoretical playing progress of the video to be played as the video correction parameter.
4. The video playing method according to claim 3, wherein the modifying the current playing progress of the video to be played based on the video correction parameter comprises:
comparing the video correction parameters with a set time threshold;
if the video correction parameter is not larger than the set time threshold, not correcting the current playing progress of the video to be played;
and if the video correction parameter is larger than the set time threshold, modifying the current playing progress of the video to be played based on the video correction parameter.
5. The video playing method according to claim 3 or 4, wherein the modifying the current playing progress of the video to be played based on the video correction parameter comprises:
determining whether the time difference between the actual playing progress and the theoretical playing progress of the video to be played is greater than zero;
if the time difference is larger than zero, slowing down the current playing progress of the video to be played according to the video correction parameters;
and if the time difference is smaller than zero, the current playing progress of the video to be played is quickened according to the video correction parameters.
6. The video playing method according to claim 3, wherein the actual playing progress is a video progress recorded by a live video client;
and determining the theoretical playing progress as the video progress controlled and played by the server side.
7. A video playing device is applied to a live video client, and comprises:
the request sending module is used for sending a video playing request aiming at a video to be played to the server;
the file receiving module is used for receiving a description file of the video to be played, which is fed back by the server in response to the video playing request, from the server, wherein the description file comprises a storage address of the video to be played;
the progress determining module is used for determining the current playing progress of the video to be played;
the video playing module acquires the video stream of the video to be played according to the storage address and plays the video stream from the current playing progress;
in the playing process, the progress determining module determines video correction parameters at preset time intervals, and corrects the current playing progress of the video to be played based on the video correction parameters.
8. The video playback device of claim 7, wherein the description file further includes a current time stamp and a playback start time stamp of the video to be played,
the progress determining module determines the time difference between the current timestamp and the playing starting timestamp of the video to be played; and determining the time difference as the current playing progress of the video to be played.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method of any of claims 1 to 6.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the method according to any one of claims 1 to 6.
CN202011626099.8A 2020-12-31 2020-12-31 Video playing method and device, electronic equipment and storage medium Active CN112866755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011626099.8A CN112866755B (en) 2020-12-31 2020-12-31 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011626099.8A CN112866755B (en) 2020-12-31 2020-12-31 Video playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112866755A true CN112866755A (en) 2021-05-28
CN112866755B CN112866755B (en) 2023-06-23

Family

ID=75999488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011626099.8A Active CN112866755B (en) 2020-12-31 2020-12-31 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112866755B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125536A (en) * 2021-11-26 2022-03-01 北京字跳网络技术有限公司 In-game live broadcast interaction method and device, computer equipment and storage medium
CN114827746A (en) * 2022-03-30 2022-07-29 阿里巴巴(中国)有限公司 Video playing control method, video playing control device, electronic equipment, media and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648010A (en) * 2013-11-28 2014-03-19 陕西千山航空电子有限责任公司 Synchronous flight data and multi-channel video and audio data playback method
CN106572358A (en) * 2016-11-11 2017-04-19 青岛海信宽带多媒体技术有限公司 Live broadcast time shift method and client
US20170171605A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast
CN106993239A (en) * 2017-03-29 2017-07-28 广州酷狗计算机科技有限公司 Method for information display during live
CN108174229A (en) * 2017-12-29 2018-06-15 北京奇虎科技有限公司 The determining method and apparatus of delay are broadcast live
WO2019140747A1 (en) * 2018-01-19 2019-07-25 深圳市沃特沃德股份有限公司 Method for synchronous playing of multiple playing devices, and playing device
CN111294634A (en) * 2020-02-27 2020-06-16 腾讯科技(深圳)有限公司 Live broadcast method, device, system, equipment and computer readable storage medium
CN112073791A (en) * 2020-08-03 2020-12-11 上海商泰汽车信息系统有限公司 Playing synchronization method and device, storage medium and user side

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648010A (en) * 2013-11-28 2014-03-19 陕西千山航空电子有限责任公司 Synchronous flight data and multi-channel video and audio data playback method
US20170171605A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast
CN106572358A (en) * 2016-11-11 2017-04-19 青岛海信宽带多媒体技术有限公司 Live broadcast time shift method and client
CN106993239A (en) * 2017-03-29 2017-07-28 广州酷狗计算机科技有限公司 Method for information display during live
CN108174229A (en) * 2017-12-29 2018-06-15 北京奇虎科技有限公司 The determining method and apparatus of delay are broadcast live
WO2019140747A1 (en) * 2018-01-19 2019-07-25 深圳市沃特沃德股份有限公司 Method for synchronous playing of multiple playing devices, and playing device
CN111294634A (en) * 2020-02-27 2020-06-16 腾讯科技(深圳)有限公司 Live broadcast method, device, system, equipment and computer readable storage medium
CN112073791A (en) * 2020-08-03 2020-12-11 上海商泰汽车信息系统有限公司 Playing synchronization method and device, storage medium and user side

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125536A (en) * 2021-11-26 2022-03-01 北京字跳网络技术有限公司 In-game live broadcast interaction method and device, computer equipment and storage medium
WO2023093451A1 (en) * 2021-11-26 2023-06-01 北京字跳网络技术有限公司 Live-streaming interaction method and apparatus in game, and computer device and storage medium
CN114827746A (en) * 2022-03-30 2022-07-29 阿里巴巴(中国)有限公司 Video playing control method, video playing control device, electronic equipment, media and program product

Also Published As

Publication number Publication date
CN112866755B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US10880620B2 (en) Playback synchronization across playback devices
US11272232B2 (en) Synchronizing multiple over the top streaming clients
US8010986B2 (en) Synchronization and automation in an ITV environment
CN106470352B (en) Live channel playing method, device and system
CN112866755A (en) Video playing method and device, electronic equipment and storage medium
CN113518247A (en) Video playing method, related equipment and computer readable storage medium
US9319731B2 (en) Methods and apparatuses for resuming paused media
CN109698961B (en) Monitoring method and device and electronic equipment
WO2016090916A1 (en) Code stream transmission method and device
US20220103609A1 (en) Method and apparatus for playing multimedia streaming data
CN102694823A (en) Method, server and client side to realize control of segmented program playing
CN112383795B (en) Video synchronous playing system
CN108366291B (en) Audio decoding strategy in audio playing
CN114374860A (en) Video service processing method and device
KR20160129631A (en) Apparatus and method for transmiting event information in a broadcasting system

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
TA01 Transfer of patent application right

Effective date of registration: 20210803

Address after: 100094 W102, 1 / F, building 7, east yard, No.10, xibeiwangdong Road, Haidian District, Beijing

Applicant after: Gaotu Education Technology Group Co.,Ltd.

Address before: 100082 room 101-401, 4th floor, building 21, East District, yard 10, northwest Wangdong Road, Haidian District, Beijing

Applicant before: Beijing Xiaozao Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant