CN114071205A - 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
CN114071205A
CN114071205A CN202111356054.8A CN202111356054A CN114071205A CN 114071205 A CN114071205 A CN 114071205A CN 202111356054 A CN202111356054 A CN 202111356054A CN 114071205 A CN114071205 A CN 114071205A
Authority
CN
China
Prior art keywords
playing
video
progress
terminals
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111356054.8A
Other languages
Chinese (zh)
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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202111356054.8A priority Critical patent/CN114071205A/en
Publication of CN114071205A publication Critical patent/CN114071205A/en
Pending legal-status Critical Current

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/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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43076Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of the same content streams on multiple devices, e.g. when family members are watching the same movie on different devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure provides a video playing method, which is applied to each playing terminal in a playing terminal cluster, and includes: responding to the downloading instruction, downloading the video matched with the downloading instruction, and sending a downloading progress to other playing terminals; receiving the downloading progress of other playing terminals, playing the video according to the playing node corresponding to the downloading instruction after determining that the downloading between the playing terminal and the other playing terminals is finished, and sending the playing progress to the other playing terminals; and if the playing progress is asynchronous with the playing progress of other playing terminals, adjusting the playing progress to the target playing progress. According to the video playing method provided by the disclosure, the synchronous playing of the video can be realized by the plurality of playing terminals, the addition of the main equipment is not needed, the synchronous playing cost of the video is reduced, even if one or more of the plurality of playing terminals fails, the synchronous playing of other playing terminals is not influenced, and the aim of decentralized synchronous video playing is fulfilled.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of video playing technologies, and in particular, to a video playing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of video playing technology, people have not been satisfied with playing video at a single video playing end, and according to the increasing demands of users, a multi-screen synchronous video playing technology has appeared.
The existing video synchronous playing technology generally adopts a master-slave device mode, and controls the video playing progress of a plurality of slave video playing devices through a master device so as to achieve the purpose that the plurality of slave video playing devices play videos synchronously.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to overcome the above-mentioned deficiencies in the prior art, and provides a video playing method, an apparatus, an electronic device and a computer-readable storage medium.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, a video playing method is provided, which is applied to each playing terminal in a playing terminal cluster, and the method includes:
responding to a downloading instruction, downloading the video matched with the downloading instruction, and sending a downloading progress to other playing terminals;
receiving the downloading progress of other playing terminals, playing the video according to the playing node corresponding to the downloading instruction after determining that the downloading between the playing terminal and other playing terminals is finished, and sending the playing progress to other playing terminals;
and if the playing progress is asynchronous with the playing progress of other playing terminals, adjusting the playing progress to a target playing progress.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and determining the playing progress of the video stream in the video according to the playing progress of the audio stream in the video.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and receiving the playing time stamps of the audio streams in the videos of other playing terminals within a preset interval time, and performing weighted average calculation on the playing time stamps and the audio stream playing time stamps to obtain a time stamp weighted average value.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and if the difference value of the weighted average value of the time stamps and the reference value of the preset time stamps is within a preset range, determining the playing progress of the video.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and if the difference value between the weighted average value of the time stamps and the reference value of the preset time stamps exceeds a preset range, adjusting the playing progress of the video to a target playing progress.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and in a preset interval time, sending the system time to other playing terminals, receiving the system time of other playing terminals, and performing weighted average calculation on the system time of the player and the system time of other playing terminals to obtain a weighted average value of the system time.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and if the difference value of the weighted average value of the system time and a preset time reference value is within a preset range, determining the system time.
In some embodiments of the present disclosure, based on the foregoing, the method further comprises:
and if the difference value of the weighted average value of the system time and a preset time reference value exceeds a preset range, adjusting the system time to be preset reference time.
According to another aspect of the present disclosure, there is provided a video playback apparatus including:
the acquisition module is used for acquiring the downloading instruction, the video matched with the downloading instruction and the playing node corresponding to the downloading instruction;
the computing module is used for comparing the video playing progress of the playing terminal with the playing progress of other playing terminals;
the connection module is used for establishing the connection between the playing terminal and other playing terminals and the connection between the playing terminal and the cloud platform;
and the control module is used for controlling the playing terminal to adjust the video playing progress.
According to another aspect of the present disclosure, there is provided an electronic device comprising a processor and a memory, the memory having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to implement the method of any one of claims 1 to 8.
According to another aspect of the disclosure, there is provided a computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement the method of any one of claims 1 to 8.
According to the video playing method provided by the disclosure, on one hand, videos needing to be played synchronously are sent to the playing terminals through the cloud platform, and a user can control the number of the playing terminals and the content of the played videos through the cloud platform, so that the management and the use of the user are facilitated;
in the second aspect, the plurality of playing terminal devices download the video through the cloud platform, and determine the playing progress according to the playing progress of other playing terminals, so that the video playing synchronization of the plurality of playing terminals is effectively ensured, the video synchronous playing function can be realized without adding a main device, and the video synchronous playing cost is reduced;
in the third aspect, because the method realizes decentralized synchronous video playing, when one or more devices in a plurality of playing terminals break down, the synchronous effect of other playing terminals cannot be influenced, and the application range is wide.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a schematic flowchart of a video playing method in an exemplary embodiment of the present disclosure.
Fig. 2 is a workflow diagram of a cloud platform in an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a method for determining system time of a broadcast terminal in an exemplary embodiment of the disclosure.
Fig. 4 is a flowchart illustrating a method for determining a playing progress of a playing terminal in an exemplary embodiment of the disclosure.
Fig. 5 is a schematic structural diagram of a video playing system in an exemplary embodiment of the present disclosure.
Fig. 6 is a schematic flowchart of a video playing process performed by a playing terminal in an exemplary embodiment of the present disclosure.
Fig. 7 is a schematic block diagram of a video playback device in an exemplary embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their detailed description will be omitted. Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale.
In the video synchronous playing technology, video synchronous playing between video playing devices such as televisions, computers, and mobile phones can adopt a plurality of modes, and the first video synchronous playing mode is as follows: the mode of adding the playing source is that a DVD player or a computer host is added, then audio and video lines are laid, and the playing content is transmitted to each video playing device, so that each device can play video synchronously.
The second video synchronous playing mode is as follows: the mode of adding the main server is that a main server is added to provide an access interface to transmit the video content currently played by the main server outwards, and the video playing device in the local area network where the main server is located acquires the video information currently played through the interface which is connected with the main server to realize synchronous playing of the video playing device and the main server.
The third video synchronous playing mode is as follows: the mode of using a certain video playing device as a playing host can be regarded as a simplified version of the second mode, and only a main server does not need to be added, one video playing device in a plurality of video playing devices is used as a center to send broadcast to inform other devices of synchronous playing, and the video synchronous playing mode has the same defects as the second playing mode, namely once the main playing device breaks down, the other devices cannot receive synchronous broadcast, the synchronous playing cannot be continued, and the video synchronous function fails.
Therefore, to overcome the disadvantages of the video synchronous playing method, the present disclosure provides a video playing method, which can implement decentralized video synchronous playing, and each playing.
The disclosed embodiment provides a video playing method, as shown in fig. 1, the video playing method is applied to each playing terminal in a playing terminal cluster, and the method includes:
s101: responding to the downloading instruction, downloading the video matched with the downloading instruction, and sending a downloading progress to other playing terminals;
s102: receiving the downloading progress of other playing terminals, playing the video according to the playing node corresponding to the downloading instruction after determining that the downloading between the playing terminal and the other playing terminals is finished, and sending the playing progress to the other playing terminals;
s103: and if the playing progress is asynchronous with the playing progress of other playing terminals, adjusting the playing progress to the target playing progress.
In step S101, in response to the download instruction, the video matched with the download instruction is downloaded, and the download progress is sent to other playback terminals.
Each playing terminal in the playing terminal cluster needs to establish a connection with the cloud platform, and in a general case, each playing terminal and the cloud platform establish a connection with an HTTPS (hypertext Transfer Protocol over secure transport Protocol) as a transmission Protocol.
The cloud platform may provide terminal registration for the playback terminals, and may manage each playback terminal, for example, the cloud platform may select the playback number of the playback terminals according to the needs of the user, or may set one or some of the multiple playback terminal devices as a white list or a black list, so as to facilitate management. The user can upload videos needing to be played synchronously to the cloud platform, the cloud platform can save and send the videos of the user, the cloud platform can issue the videos to the playing terminals and send different video clips to different playing terminals according to different video synchronization modes, wherein the video issuing of the cloud platform to the playing terminals can be achieved by simultaneously issuing one or more videos to different playing terminals or by issuing the videos to different playing terminals at different time points, and the video issuing time and the video issuing sequence of the cloud platform can be determined according to actual use requirements.
In the disclosure, the video synchronization mode of the playing terminal includes a video synchronization mode and a video splicing mode, where the video synchronization mode is that the selected playing terminal simultaneously plays the same video or the same part of the same video, and the playing terminal is ensured to play the same picture of the video; the video splicing mode is that each selected playing terminal plays a part of the same video, which can be the same segment or different segments, and the playing of each playing terminal is different segments in the same video, and the videos played by a plurality of different terminal devices in the same time period can form a complete video, but the synchronous playing of a plurality of playing terminals is also ensured, so that the continuity of video playing in the video splicing mode can be ensured.
The workflow of the cloud platform is described below with reference to fig. 2:
firstly, the cloud platform determines the number of devices in a playing terminal cluster according to the needs of a user, and determines a specific playing terminal;
secondly, the cloud platform determines a playing video according to video playing content required by a user;
thirdly, the cloud platform screens and cuts the video according to the video playing mode selected by the user: if the user selects a video splicing mode, cutting the selected video, and sending the cut video segments to different playing terminals according to the playing sequence; and if the user selects the video synchronization mode, directly transmitting the selected video to different playing terminals.
And finally, the cloud platform issues a downloading instruction to the playing terminal, and the playing terminal can download the video according to the setting of the playing terminal.
According to the work flow of the cloud platform, the uploading and downloading of videos can be flexibly realized through the management of the contents uploaded by the user and the playing terminal, and the use of the user is facilitated.
In step S102, the download progress of other playing terminals is received, and after it is determined that the download between the playing terminal and the other playing terminals is completed, the video is played according to the playing node corresponding to the download instruction, and the play progress is sent to the other playing terminals.
After the cloud platform issues the played video to the playing terminals, the playing terminals start downloading the video corresponding to the downloading instruction, because each playing terminal can be a device with different model, therefore, the video downloading speed of each playing terminal can also be different, thus the video downloading end time points of different playing terminals can also be different, in order to ensure that the subsequent playing start time is the same, it is required to ensure that the selected playing terminals can start playing the video after the downloading is finished, therefore, a plurality of selected playing terminals can be arranged in the same local area network, each playing terminal can carry out butt-joint communication with other playing terminals through an interface carried by the playing terminal, and in the process of downloading the video, each playing terminal can periodically send a User Datagram Protocol (UDP) broadcast to other playing terminals, the downloading progress is sent through broadcasting, each playing terminal can also receive and store the downloading progress sent by other playing terminals, the downloading progress of the playing terminal and the downloading progress of other playing terminals are comprehensively considered, if the downloading progress of the playing terminal is faster than that of other playing terminals, the next step of operation is stopped after the video is downloaded, the downloading of other playing terminals is waited until all the selected playing terminals are downloaded, the video is uniformly played according to the playing node information in the instruction sent by the cloud platform, and meanwhile, each selected playing terminal needs to send the video playing progress to other playing terminals.
In step S103, if the playing progress is not synchronous with the playing progress of other playing terminals, the playing progress is adjusted to the target playing progress.
In the process of video playing, each playing terminal periodically sends playing progress to other playing terminals, meanwhile, each playing terminal also receives the video playing progress of other playing terminals, a target playing progress is determined by combining the playing progress of the playing terminal with the playing progress of other playing terminals, the playing progress is uniformly adjusted to the target playing progress, the target playing progress can be the fastest playing progress in a plurality of playing terminals, the playing progress which a user wants to adjust can also be the playing progress, the target playing progress can be set according to actual needs, and the disclosure does not specifically limit the process.
When the playing progress of the playing terminal is adjusted, the system time of the playing terminal is adjusted, and the playing progress of the audio stream in the video of the playing terminal is adjusted.
The adjustment of the system time of the playing terminal comprises the following steps:
in fig. 3, S201: and in a preset interval time, sending the system time to other playing terminals, receiving the system time of other playing terminals, and performing weighted average calculation on the system time of the player and the system time of other playing terminals to obtain a weighted average value of the system time.
S202: and if the difference value of the weighted average value of the system time and the preset time reference value is within the preset range, determining the system time.
S203: and if the difference value of the weighted average value of the system time and the preset time reference value exceeds the preset range, adjusting the system time to be the preset reference time.
After the playing terminals start playing videos, each playing terminal sends own system time to other playing terminals within a preset time interval, because each terminal device is in the same local area network, each terminal device can send UDP broadcasts through the local area network, system time information is transmitted to a plurality of playing terminal devices, and meanwhile, each playing terminal can also receive and store the system time of other playing terminals.
The preset time interval may be 10 minutes, the smaller the preset time interval is, the smaller the error of the system time is, and of course, the preset time interval may also be less than 10 minutes, for example, 8 minutes, 6 minutes, 4 minutes, and the like, and although the smaller the preset time interval is, the smaller the error of the system time is, due to the shortening of the time interval, the calculation amount of the playing terminal for calculating the average weighted value of the system time may be increased, and the loading speed and the playing speed may be slowed down, and the like.
After the playing terminal receives the system time of other terminal equipment, the system time of the playing terminal and the system time of other playing terminals are weighted and averaged, the system time after weighted averaging is set as the existing system time, each playing terminal is guaranteed to have the same system time, meanwhile, a third-party linear time is taken as a reference value, namely a preset time reference value, for the terminal equipment cluster, and if the difference value of the existing system time and the preset time reference value is in a preset range, the playing terminal can keep the existing system time as the system time; if the difference between the current system time and the preset time reference value exceeds the preset range, the current system time of the playing terminal needs to be further adjusted to the preset reference time to ensure that all the playing terminals have the same system time, which is the basis for video synchronous playing.
The adjustment of the playing progress of the playing terminal comprises the following steps:
in fig. 4, S301: and determining the playing progress of the video stream in the video according to the playing progress of the audio stream in the video.
S302: and receiving the playing time stamps of the audio streams in the videos of other playing terminals within a preset interval time, and performing weighted average calculation on the playing time stamps and the audio stream playing time stamps to obtain a time stamp weighted average value.
S303: and if the difference value of the weighted average value of the time stamps and the reference value of the preset time stamps is within a preset range, determining the playing progress of the video.
S304: and if the difference value between the weighted average value of the time stamps and the reference value of the preset time stamps exceeds the preset range, adjusting the playing progress of the video to the target playing progress.
After the uniform playing time of the playing terminal is determined, the playing progress needs to be adjusted, the playing terminal can send the video playing progress of the playing terminal to other playing terminals within a preset time interval, and meanwhile, the video playing progress sent by other playing terminals can be received, wherein the video playing progress mainly refers to the playing progress of audio streams in videos, the playing terminal can receive audio stream timestamps sent by other playing terminals and audio stream timestamps of the playing terminal to perform weighted average calculation, the weighted average value is obtained, and the existing audio timestamps of the playing terminal are obtained.
The preset time interval may be set to be every m milliseconds, that is, every m seconds is taken as a time interval to periodically send the audio stream time stamp to other playing terminals, and in order to ensure that the video playing progress is kept synchronous, the preset time interval is not too long, so that the playing terminals can be kept updating the audio stream time stamp in real time, the audio stream time stamps of a plurality of playing terminals are kept the same, but in order to ensure the speed of calculating the weighted average value of the playing terminals, the preset time interval is not too short, and therefore, the preset time interval is set at the millisecond level.
After the playing terminal obtains the existing audio stream timestamp, the existing audio stream timestamp is compared with a preset audio stream timestamp, if the difference value between the existing timestamp and a preset timestamp reference value is within a preset range, the existing timestamp is determined to be used as the audio stream timestamp of the playing terminal, the playing progress of the video stream is adjusted to be synchronous with the playing progress of the audio stream, and the playing progress of the video can be determined; and if the difference value between the current timestamp and the preset timestamp reference value exceeds the preset range, adjusting the playing progress of the audio stream to the target playing progress, and simultaneously adjusting the playing progress of the video stream according to the playing progress of the audio stream, namely adjusting the playing progress of the video to the target playing progress.
The target playing progress can be the playing progress with the fastest playing progress in the video stream of the playing terminal, or the playing progress which is set by a user in a user-defined mode according to needs, the target playing progress can be defined according to actual needs, and the method is not specifically limited in the disclosure.
The following describes the playing flow of the playing terminal with reference to fig. 5 and 6:
the method comprises the steps that the playing terminals receive a downloading instruction sent by a cloud platform to start downloading videos, each playing terminal broadcasts video downloading progress to other playing terminals through a local area network, and if the video downloading of all the playing terminals is finished, the video playing is started;
after the playing terminal starts video playing, the playing terminal broadcasts video playing progress to other playing terminals through a local area network, wherein the broadcasted video playing progress comprises: the method comprises the steps that a playing terminal sends equipment system time to other playing terminals every n minutes, receives the system time of other playing terminal equipment, carries out weighted average calculation on the system time of the playing terminal and the system time of other playing terminals to obtain the system time, if the difference value between the obtained system time and preset time is within a certain range, the system time after weighted average calculation is determined to be the system time of the playing terminal, and if the difference value exceeds the preset range, the preset time is set to be the system time of the playing terminal, and the consistency of the system time of a plurality of playing terminals is kept;
meanwhile, the playing terminal sends audio playing progress to other playing terminals every m milliseconds and receives the audio playing progress sent by other playing terminals, the playing terminal performs weighted average calculation on the audio playing progress of the playing terminal and the audio playing progress of other playing terminals to obtain the audio playing progress, if the difference value between the obtained audio playing progress and the preset playing progress is within a preset range, the audio playing progress of the playing terminal is determined, if the difference value exceeds the preset range, the audio playing progress of the playing terminal is adjusted to the target preset audio playing progress, and the corresponding video playing progress can be automatically adjusted according to the audio playing progress; and after the playing progress is finished, the playing terminal finishes playing.
According to the video playing method, weighted average calculation is carried out on the system time and the audio stream time stamp of the playing terminal, so that a decentralized video synchronous playing strategy is realized, the playing progress of other playing terminals cannot be influenced even if a single playing terminal breaks down, the playing terminal can stop or start at any time, the integral video synchronous playing effect is not influenced, and the cost of equipment is reduced.
It should be noted that although the steps of the video playback method of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In an embodiment of the present disclosure, a video playing apparatus is further provided, and fig. 7 is a schematic diagram of a framework of a video playing apparatus in an exemplary embodiment of the present disclosure, as shown in fig. 7, the video playing apparatus 1 includes: the device comprises an acquisition module 10, a calculation module 20, a connection module 30 and a control module 40.
The obtaining module 10 is configured to obtain a download instruction, a video matched with the download instruction, and a playing node corresponding to the download instruction.
The calculating module 20 is configured to compare the video playing progress of the playing terminal with the playing progress of other playing terminals.
The connection module 30 is configured to establish a connection between the playback terminal and another playback terminal, and a connection between the playback terminal and the cloud platform.
The control module 40 is configured to control the playing terminal to adjust the video playing progress.
The device plays videos by using the video playing method through the four modules of the acquisition module, the calculation module, the connection module and the control module, can be suitable for a plurality of video playing terminals, can realize the connection and communication of the plurality of playing terminals through the video playing device, and provides a device for synchronous playing of video decentralized.
Fig. 8 is a schematic structural diagram of an electronic device in an exemplary embodiment of the disclosure, and as shown in fig. 8, the electronic device 1000 is represented in the form of a general-purpose computing device. The components of the electronic device 1000 may include, but are not limited to: at least one processing unit 1010, at least one memory unit 1020, and a bus 1030 that couples various system components including the memory unit 1020 and the processing unit 1010.
Where the storage unit stores program code that may be executed by the processing unit 1010 to cause the processing unit 1010 to perform the steps according to various exemplary embodiments of the present invention described in the "exemplary methods" section above in this specification. For example, the processing unit 1010 may perform the method steps, etc., as shown in fig. 1.
The memory unit 1020 may include volatile memory units such as a random access memory unit (RAM)1021 and/or a cache memory unit 1022, and may further include a read only memory unit (ROM) 1023.
Storage unit 1020 may also include a program/utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1030 may include a data bus, an address bus, and a control bus.
The electronic device 1000 may also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.), which may be through input/output (I/O) interfaces 1040. The electronic device 1000 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 1050. As shown, the network adapter 1050 communicates with the other modules of the electronic device 1000 via a bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which may be implemented in the form of a program product, including program code for causing an electronic device to perform the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "exemplary method" section of this specification, when the program product is run on the electronic device. In one embodiment, the program product may be embodied as a portable compact disc read only memory (CD-ROM) and include program code, and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
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 application 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 within 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.

Claims (11)

1. A video playing method is applied to each playing terminal in a playing terminal cluster, and is characterized by comprising the following steps:
responding to a downloading instruction, downloading the video matched with the downloading instruction, and sending a downloading progress to other playing terminals;
receiving the downloading progress of other playing terminals, playing the video according to the playing node corresponding to the downloading instruction after determining that the downloading between the playing terminal and other playing terminals is finished, and sending the playing progress to other playing terminals;
and if the playing progress is asynchronous with the playing progress of other playing terminals, adjusting the playing progress to a target playing progress.
2. The video playback method of claim 1, wherein the method further comprises:
and determining the playing progress of the video stream in the video according to the playing progress of the audio stream in the video.
3. The video playback method of claim 2, further comprising:
and receiving the playing time stamps of the audio streams in the videos of other playing terminals within a preset interval time, and performing weighted average calculation on the playing time stamps and the audio stream playing time stamps to obtain a time stamp weighted average value.
4. The video playback method of claim 3, further comprising:
and if the difference value of the weighted average value of the time stamps and the reference value of the preset time stamps is within a preset range, determining the playing progress of the video.
5. The video playback method of claim 3, further comprising:
and if the difference value between the weighted average value of the time stamps and the reference value of the preset time stamps exceeds a preset range, adjusting the playing progress of the video to a target playing progress.
6. The video playback method of claim 1, wherein the method further comprises:
and in a preset interval time, sending the system time to other playing terminals, receiving the system time of other playing terminals, and performing weighted average calculation on the system time of the player and the system time of other playing terminals to obtain a weighted average value of the system time.
7. The video playback method of claim 6, wherein the method further comprises:
and if the difference value of the weighted average value of the system time and a preset time reference value is within a preset range, determining the system time.
8. The video playback method of claim 6, wherein the method further comprises:
and if the difference value of the weighted average value of the system time and a preset time reference value exceeds a preset range, adjusting the system time to be preset reference time.
9. A video playback apparatus, comprising:
the acquisition module is used for acquiring the downloading instruction, the video matched with the downloading instruction and the playing node corresponding to the downloading instruction;
the computing module is used for comparing the video playing progress of the playing terminal with the playing progress of other playing terminals;
the connection module is used for establishing the connection between the playing terminal and other playing terminals and the connection between the playing terminal and the cloud platform;
and the control module is used for controlling the playing terminal to adjust the video playing progress.
10. An electronic device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to implement the method of any of claims 1 to 8.
11. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement the method of any one of claims 1 to 8.
CN202111356054.8A 2021-11-16 2021-11-16 Video playing method and device, electronic equipment and storage medium Pending CN114071205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111356054.8A CN114071205A (en) 2021-11-16 2021-11-16 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111356054.8A CN114071205A (en) 2021-11-16 2021-11-16 Video playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114071205A true CN114071205A (en) 2022-02-18

Family

ID=80273422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111356054.8A Pending CN114071205A (en) 2021-11-16 2021-11-16 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114071205A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000125265A (en) * 1998-10-15 2000-04-28 Nec Corp Audio video synchronizing reproducing device
CN103685515A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and system for downloading application
CN104244110A (en) * 2013-06-18 2014-12-24 好看科技(深圳)有限公司 Play control method and module, terminal and system
CN109068385A (en) * 2018-09-14 2018-12-21 西北工业大学 A kind of underwater wireless method for synchronizing network time with fault-tolerance
CN109241165A (en) * 2018-08-30 2019-01-18 联动优势科技有限公司 A kind of the determination method, apparatus and equipment of database synchronization delay
CN109618209A (en) * 2018-12-25 2019-04-12 深圳创维-Rgb电子有限公司 Audio video synchronization playback method, equipment and computer readable storage medium
CN111541913A (en) * 2020-05-12 2020-08-14 京东方科技集团股份有限公司 Video playing method and device of spliced screen, computer equipment and medium
CN112399219A (en) * 2020-12-08 2021-02-23 浙江清鹤科技有限公司 Material playing method and system, terminal and medium and material synchronous playing method
CN113115090A (en) * 2021-03-16 2021-07-13 西安万像电子科技有限公司 Image delivery method and system, terminal device and terminal device management system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000125265A (en) * 1998-10-15 2000-04-28 Nec Corp Audio video synchronizing reproducing device
CN104244110A (en) * 2013-06-18 2014-12-24 好看科技(深圳)有限公司 Play control method and module, terminal and system
CN103685515A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and system for downloading application
CN109241165A (en) * 2018-08-30 2019-01-18 联动优势科技有限公司 A kind of the determination method, apparatus and equipment of database synchronization delay
CN109068385A (en) * 2018-09-14 2018-12-21 西北工业大学 A kind of underwater wireless method for synchronizing network time with fault-tolerance
CN109618209A (en) * 2018-12-25 2019-04-12 深圳创维-Rgb电子有限公司 Audio video synchronization playback method, equipment and computer readable storage medium
CN111541913A (en) * 2020-05-12 2020-08-14 京东方科技集团股份有限公司 Video playing method and device of spliced screen, computer equipment and medium
CN112399219A (en) * 2020-12-08 2021-02-23 浙江清鹤科技有限公司 Material playing method and system, terminal and medium and material synchronous playing method
CN113115090A (en) * 2021-03-16 2021-07-13 西安万像电子科技有限公司 Image delivery method and system, terminal device and terminal device management system

Similar Documents

Publication Publication Date Title
WO2020221190A1 (en) Applet state synchronization method, device and computer storage medium
US20160323647A1 (en) Video sharing method and system in smart tv
CN111541913B (en) Video playing method and device of spliced screen, computer equipment and medium
US9843825B1 (en) Distributed and synchronized media switching
CN106301865B (en) Data processing method and device applied to service providing device
CN112261416A (en) Cloud-based video processing method and device, storage medium and electronic equipment
US11259063B2 (en) Method and system for setting video cover
US20120317243A1 (en) Audio processing method and device for remote desktop protocol
CN112752109B (en) Video playing control method and system
US10649817B2 (en) Method for application action synchronization, terminal device, and storage medium
CN112839238B (en) Screen projection playing method and device and storage medium
EP3800894A1 (en) Method and apparatus for detecting video playing quality
WO2023284428A1 (en) Live video playback method and apparatus, electronic device, storage medium, and program product
CN103096133B (en) The acquisition methods of a kind of data and device
CN112383794B (en) Live broadcast method, live broadcast system, server and computer storage medium
CN110034828B (en) Audio acquisition method and server for cloud application
CN111026406A (en) Application running method, device and computer readable storage medium
KR20090059263A (en) Service supporting method and system of distribution streaming of portable device
CN114071205A (en) Video playing method and device, electronic equipment and storage medium
CN109948082B (en) Live broadcast information processing method and device, electronic equipment and storage medium
WO2017071642A1 (en) Media playback method, device and computer storage medium
CN111290861A (en) Message processing method and device and electronic equipment
CN111107387A (en) Video transcoding method and device and computer storage medium
CN115988577A (en) Data transmission method, data transmission device, storage medium and electronic equipment
CN113271487B (en) Audio and video synchronous playing method, device, system, program product and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination