CN108184158B - Method and system for synchronously playing videos - Google Patents

Method and system for synchronously playing videos Download PDF

Info

Publication number
CN108184158B
CN108184158B CN201711473275.7A CN201711473275A CN108184158B CN 108184158 B CN108184158 B CN 108184158B CN 201711473275 A CN201711473275 A CN 201711473275A CN 108184158 B CN108184158 B CN 108184158B
Authority
CN
China
Prior art keywords
playing
playing device
file
video frame
played
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711473275.7A
Other languages
Chinese (zh)
Other versions
CN108184158A (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.)
Shenzhen OCT Vision Inc
Original Assignee
Shenzhen OCT Vision Inc
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 Shenzhen OCT Vision Inc filed Critical Shenzhen OCT Vision Inc
Priority to CN201711473275.7A priority Critical patent/CN108184158B/en
Publication of CN108184158A publication Critical patent/CN108184158A/en
Application granted granted Critical
Publication of CN108184158B publication Critical patent/CN108184158B/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/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
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44012Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity

Abstract

The invention discloses a method and a system for synchronously playing videos, wherein the method comprises the following steps: when the main playing device receives a playing instruction, a first rendering request of a current video frame of a file to be played is generated according to the playing instruction; generating a synchronous request according to the first rendering request, and sending the synchronous request to at least one slave playing device; each slave playing device verifies the synchronous request and feeds back a verification result to the master playing device; and when receiving the feedback information of successful verification, the main playing device renders the current video frame to a video window and generates a second rendering request of the next video frame so as to circularly synchronize all the video frames of the file to be played. The invention controls the slave playing equipment to synchronously render the same video frame through the master playing equipment, ensures the consistency of the same video played by different playing equipment at the same time and improves the synchronization of video playing.

Description

Method and system for synchronously playing videos
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a method and a system for synchronously playing videos.
Background
The existing video player generally adopts the following two modes to carry out synchronous playing, one mode is based on industrial communication equipment to realize synchronization, the method is based on an industrial communication card to respectively connect a plurality of terminal equipment with a server through cables so as to provide special data channels for the plurality of terminal equipment, and then real-time synchronization is triggered by utilizing switching values such as instantaneous interruption of a PCI industrial control card, but the method has higher requirement on hardware configuration and has limited quantity of terminal equipment capable of realizing synchronization. Another way is to implement synchronization based on global time synchronization, which is global time synchronization using a hardware clock system, but it needs to query the system time frequently, which increases the load and complexity of software implementation of the terminal, thereby affecting the effect of synchronous playing.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for playing video synchronously, aiming at overcoming the defects of the prior art, so as to solve the problem of poor synchronicity existing in the prior art that a plurality of terminal devices play the same video file simultaneously.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of synchronously playing videos, comprising:
when the main playing device receives a playing instruction, a first rendering request of a current video frame of a file to be played is generated according to the playing instruction;
generating a synchronization request according to the first rendering request, and sending the synchronization request to at least one slave playing device, wherein the synchronization request carries a file identifier of a file to be played;
each slave playing device verifies the synchronous request and feeds back a verification result to the master playing device;
and when receiving the feedback information of successful verification, the main playing device renders the current video frame to a video window and generates a second rendering request of the next video frame so as to circularly synchronize all the video frames of the file to be played.
The method for synchronously playing the video, wherein when the main playing device receives a playing instruction, the method for generating a rendering request of a current video frame of a file to be played according to the playing instruction comprises the following steps:
the master playing device and each slave playing device are respectively connected with the server and receive a playing instruction sent by the server, wherein the playing instruction carries a file identifier of a file to be played.
The method for synchronously playing the video, wherein when the main playing device receives a playing instruction, generating a first rendering request of a current video frame of a file to be played according to the playing instruction specifically includes:
the main playing device receives the playing instruction and reads a file identifier carried by the playing instruction;
and acquiring a current video frame of the file to be played according to the file identifier, and generating a first rendering request according to the current video frame.
The method for synchronously playing the video, wherein the step of verifying the synchronization request by each slave playing device and feeding back the verification result to the master playing device comprises the following steps:
each slave playing device receives the synchronization request and extracts the file identification carried by the synchronization request;
judging whether the file to be played exists according to the file identification so as to verify the synchronous request;
when the file to be played exists, sending feedback information of successful verification to main playing equipment, and rendering a video frame to be rendered of the file to be played;
and when the file to be played does not exist, sending feedback information of failed verification to the main playing device.
The method for synchronously playing the video, wherein when the file to be played exists, sending feedback information of successful verification to a main playing device, and rendering the video frame to be rendered of the file to be played specifically comprises:
when the file to be played exists, sending feedback information of successful verification to main playing equipment;
acquiring a first frame sequence number of a video frame to be rendered, and comparing the first frame sequence number with a second frame sequence number of a current video frame to be rendered by a main playing device;
if the first frame serial number is the same as the second frame serial number, rendering the video frame to be rendered;
and if the first frame serial number is different from the second frame serial number, searching the corresponding video frame according to the second frame serial number, and rendering and searching the video frame.
The method for synchronously playing the video, wherein the rendering the current video frame to the video window and generating the second rendering request of the next video frame to circularly synchronize each video frame of the file to be played when the main playing device receives the feedback information that the verification is successful specifically comprises:
the master playing device receives the feedback information sent by each slave playing device and reads the verification result carried by each feedback information;
and when the verification result is successful, rendering the current video frame to a video window, and generating a second rendering request of the next video frame to circularly synchronize all the video frames of the file to be played.
The method for synchronously playing the video, wherein the step of rendering the current video frame to the video window by the main playing device when receiving the feedback information that the verification is successful and generating a second rendering request of the next video frame to circularly synchronize the video frames of the file to be played further comprises the following steps:
and when the verification result is not successful, sending the synchronization request corresponding to the current video frame to each slave playing device after a preset time interval.
A system for synchronously playing videos comprises a main playing device and at least one slave playing device, wherein the main playing device is respectively connected with each slave playing device, receives a playing instruction, generates a first rendering request and a synchronization request according to the playing instruction, and sends the synchronization request to each slave playing device; each slave playing device receives the synchronous request, verifies the synchronous request and feeds back a verification result to the master playing device; and the master playing device receives the feedback information sent by each slave playing device, renders the current video frame to a video window when receiving the feedback information which is verified successfully, and generates a second rendering request of the next video frame to circularly synchronize each video frame of the file to be played.
The system for synchronously playing the videos further comprises a server, wherein the server is respectively connected with the master playing device and each slave playing device and respectively sends a file to be played to the master playing device and each slave playing device so as to play the command.
The system for synchronously playing the videos further comprises a router; the server is respectively connected with the main playing device and each slave playing device through the router, and the main playing device is directly connected with each slave playing device through the internet access.
Has the advantages that: compared with the prior art, the invention provides a method and a system for synchronously playing videos, wherein the method comprises the following steps: when the main playing device receives a playing instruction, a first rendering request of a current video frame of a file to be played is generated according to the playing instruction; generating a synchronous request according to the first rendering request, and sending the synchronous request to at least one slave playing device; each slave playing device verifies the synchronous request and feeds back a verification result to the master playing device; and when receiving the feedback information of successful verification, the main playing device renders the current video frame to a video window and generates a second rendering request of the next video frame so as to circularly synchronize all the video frames of the file to be played. The invention controls the slave playing equipment to synchronously render the same video frame through the master playing equipment, ensures the consistency of the same video played by different playing equipment at the same time and improves the synchronization of video playing.
Drawings
Fig. 1 is a flowchart illustrating a method for synchronously playing video according to a preferred embodiment of the present invention.
Fig. 2 is a timing diagram illustrating a method for synchronously playing video according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a system for synchronously playing video according to a preferred embodiment of the present invention.
Fig. 4 is a schematic diagram of a system for synchronously playing video according to a preferred embodiment of the present invention.
Detailed Description
The present invention provides a method and a system for synchronously playing video, and in order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further explained by the description of the embodiments with reference to the drawings.
As shown in fig. 1 and fig. 2, the present invention provides a method for synchronously playing videos, which includes:
and S10, when the main playing device receives the playing instruction, generating a first rendering request of the current video frame of the file to be played according to the playing instruction.
Specifically, the file to be played is a playing file that the playing instruction instructs the main playing device to play. The master playing device may obtain the file to be played, and the slave playing device may also obtain the file to be played. The playing instruction can be sent to the master playing device by the server, and meanwhile, the slave playing device can also synchronously receive the playing instruction. That is to say, the master playing device and the slave playing device are simultaneously connected to the same server, and the server sends a playing instruction to the master playing device and the slave playing device and provides a video file to be played for the master playing device and the slave playing device. Correspondingly, when the main playback device receives a playback instruction, generating a rendering request of a current video frame of a file to be played according to the playback instruction includes:
the master playing device and each slave playing device are respectively connected with the server and receive a playing instruction sent by the server, wherein the playing instruction carries a file identifier of a file to be played.
Specifically, the server is connected to the master playing device and each slave playing device through a network, and sends playing instructions to the master playing device and each slave playing device, and the master playing device and each slave playing device may obtain the file to be played from the server. In addition, in order to ensure that the files to be played, which are obtained by the master playing device and the slave playing devices, are the same, the playing instruction may carry a file identifier of the file to be played, so that the file to be played may be determined according to the file identifier, and the files to be played, which are obtained by the master playing device and the slave playing devices, are the same.
Meanwhile, in this embodiment, after receiving the play instruction, the main play device obtains a video frame to be played currently of the file to be played, and records the video frame as a current video frame; and generating a rendering request of a current video frame to render the current video frame to a video window by executing the rendering request to play the current video frame. Correspondingly, when the main playback device receives a playback instruction, generating a first rendering request of a current video frame of a file to be played according to the playback instruction specifically includes:
the main playing device receives the playing instruction and reads a file identifier carried by the playing instruction;
and acquiring a current video frame of the file to be played according to the file identifier, and generating a first rendering request according to the current video frame.
S20, generating a synchronization request according to the first rendering request, and sending the synchronization request to at least one slave playing device, wherein the synchronization request carries a file identifier of a file to be played.
Specifically, the synchronization request is generated for the master playing device, and is sent to each slave playing device to request each slave terminal device to synchronously play the current video frame. The synchronization request carries a file identifier, so that the slave playing device determines whether a video file corresponding to the file identifier needs to be rendered, that is, determines whether the slave playing device is used for synchronously playing the file to be played according to the file identifier. The main playing device and each slave playing device are directly connected through the network ports, and the main playing device sends the synchronization request to each slave playing device through direct connection of the network ports.
And S30, each slave playing device verifies the synchronization request and feeds back the verification result to the master playing device.
Specifically, the verification of the synchronization request by each slave playback device means that each slave playback device determines whether there is a file to be played corresponding to the file identifier, and generates a verification result according to the determination result. The verification result comprises a verification success and a verification failure, the verification success is that the file to be played is stored or can be acquired from the playing device, and the verification failure is that the file to be played is not stored and cannot be acquired from the playing device. Correspondingly, the verifying the synchronization request by each slave playback device and feeding back the verification result to the master playback device includes:
each slave playing device receives the synchronization request and extracts the file identification carried by the synchronization request;
judging whether the file to be played exists according to the file identification so as to verify the synchronous request;
when the file to be played exists, sending feedback information of successful verification to main playing equipment, and rendering a video frame to be rendered of the file to be played;
and when the file to be played does not exist, sending feedback information of failed verification to the main playing device.
Specifically, the rendering of the video frame to be rendered of the file to be played refers to rendering the video frame which needs to be rendered currently. The video frame to be rendered needs to be the same as the current video frame of the main playing device, that is, the frame number of the video frame to be rendered needs to be the same as the frame number of the current video frame of the main playing device. The frame number of the current video frame of the master playing device may be carried when the master device sends a synchronization request to the slave devices, that is, the synchronization request carries a file identifier for verifying the consistency of a file to be played and a first frame number of the current video frame of the master playing device, so that each slave device can obtain the first frame number and verify the frame number of the video frame to be rendered by itself with the first frame number as a reference. Correspondingly, when the file to be played exists, sending feedback information that verification is successful to a main playing device, and rendering the video frame to be rendered of the file to be played specifically includes:
when the file to be played exists, sending feedback information of successful verification to main playing equipment;
acquiring a first frame sequence number of a video frame to be rendered, and comparing the first frame sequence number with a second frame sequence number of a current video frame to be rendered by a main playing device;
if the first frame serial number is the same as the second frame serial number, rendering the video frame to be rendered;
and if the first frame serial number is different from the second frame serial number, searching the corresponding video frame according to the second frame serial number, and rendering and searching the video frame.
Specifically, the difference between the first frame number and the second frame number indicates that the current video frame of the master playback device and the video frame to be rendered of the slave playback device are different video frames of the playback file corresponding to the file identifier. And in order to synchronize the video, the slave playing devices with different playing schedules from the master playing device are adjusted on the basis of the playing schedule of the master playing device, so that the video frames to be rendered of each slave playing device are the current video frames of the master playing device.
And S40, when receiving the feedback information that the verification is successful, the main playing device renders the current video frame to the video window, and generates a second rendering request of the next video frame to circularly synchronize all the video frames of the file to be played.
Specifically, the fact that the master playback device receives the feedback information that the verification is successful means that there is feedback information that the slave playback device transmits the verification to the master playback device. When receiving the feedback information of successful verification, the main playing device can directly render the current video frame to the video window. In addition, the main playing device may also pre-configure a rendering policy, and render the current video frame according to the rendering policy. Of course, the master playback device also synchronizes the rendering policy with each slave playback device, so that the rendering policies applied by each slave playback device and the master playback device are the same.
The playing and rendering strategy may be that the master player sends rendering confirmation instructions to the slave playing devices and the master playing device, and when the slave playing devices and the master playing device receive the rendering confirmation instructions, rendering is performed according to the rendering confirmation instructions. And the rendering confirmation instruction is only sent to the slave playing device with the verification result of successful verification. In addition, the rendering strategy may be to delay a preset time to perform the rendering operation, so as to avoid the problem of asynchronous playing caused by a difference between transmission times of the master playing device and the slave playing device. Wherein, the preset time can be preset, for example, 0.01 s.
Meanwhile, in this embodiment, all the verification results carried by the feedback information sent from the playback device may be verified successfully, part of the verification results carried by the feedback information sent from the playback device may be verified successfully, or none of the verification results carried by the feedback information sent from the playback device is verified successfully. Correspondingly, when receiving the feedback information that the verification is successful, the main playing device renders the current video frame to the video window, and generates a second rendering request of a next video frame to circularly synchronize each video frame of the file to be played specifically includes:
the master playing device receives the feedback information sent by each slave playing device and reads the verification result carried by each feedback information;
when the verification result is successful, rendering the current video frame to a video window, and generating a second rendering request of the next video frame to circularly synchronize all the video frames of the file to be played;
and when the verification result is not successful, sending the synchronization request corresponding to the current video frame to each slave playing device after a preset time interval.
Specifically, when the verification success does not exist, the master playing device repeatedly sends the synchronization request to each slave playing device after a preset time interval, and monitors the verification result of each slave playing device. And if the feedback information with the verification result of successful verification is not received for the continuous preset times, prompting the user that the multi-device synchronous playing fails. In addition, when part of the verification results are successful, recording the continuous synchronization failure times and the total synchronization failure times of the slave playing devices with failed verification, and prompting the user that the slave playing devices fail to synchronously play when the continuous synchronization failure times reach a first preset threshold; and when the total number of synchronization failures reaches a second preset threshold value, prompting a user that the slave play equipment has faults. Here, the preset times, the first preset threshold and the second preset threshold are all preset, and the three may be the same, for example, all of the three are 3. Of course, the three may be different, for example, the preset number of times is 3, the first preset threshold is 4, the second preset threshold is 5, and the like.
Based on the above method for synchronously playing video, as shown in fig. 3 and fig. 4, the present invention further provides a system for synchronously playing video, which includes a master playing device 100 and at least one slave playing device 200, where the master playing device 100 is respectively connected to each slave playing device 200, the master playing device 100 receives a playing instruction, generates a first rendering request and a synchronization request according to the playing instruction, and sends the synchronization request to each slave playing device 200; each slave playback device 200 receives the synchronization request, verifies the synchronization request, and feeds back a verification result to the master playback device 100; the master playing device 100 receives the feedback information sent by each slave playing device, renders the current video frame to the video window when receiving the feedback information successfully verified, and generates a second rendering request of the next video frame to cyclically synchronize each video frame of the file to be played.
The system for synchronously playing the video further comprises a server 300, wherein the server 300 is respectively connected with the master playing device 100 and each slave playing device 200, and respectively sends a file to be played to the master playing device 100 and each slave playing device 200 to play a command.
The system for synchronously playing the videos further comprises a router 400; the server 300 is connected to the master playback device 100 and each slave playback device 200 through the router 400, and the master playback device 100 is directly connected to each slave playback device 200 through a network interface.
In addition, the specific working processes of the components in the system are described in detail in the method, and are not stated in detail here.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for synchronized playback of video, comprising:
when the main playing device receives a playing instruction, a first rendering request of a current video frame of a file to be played is generated according to the playing instruction;
generating a synchronization request according to the first rendering request, and sending the synchronization request to at least one slave playing device, wherein the synchronization request carries a file identifier of a file to be played;
each slave playing device verifies the synchronous request and feeds back a verification result to the master playing device;
when receiving the feedback information of successful verification, the main playing device renders the current video frame to a video window and generates a second rendering request of the next video frame to circularly synchronize all video frames of the file to be played;
when receiving the feedback information that the verification is successful, the main playing device renders the current video frame to the video window, and generates a second rendering request of a next video frame to circularly synchronize each video frame of the file to be played specifically includes:
the master playing device receives the feedback information sent by each slave playing device and reads the verification result carried by each feedback information;
when the verification result is successful, rendering the current video frame to a video window, and generating a second rendering request of the next video frame to circularly synchronize all the video frames of the file to be played;
and when the verification result is not successful, sending the synchronization request corresponding to the current video frame to each slave playing device after a preset time interval.
2. The method for synchronously playing the video according to claim 1, wherein when the main playing device receives the playing instruction, generating a first rendering request of a current video frame of the file to be played according to the playing instruction comprises:
the master playing device and each slave playing device are respectively connected with the server and receive a playing instruction sent by the server, wherein the playing instruction carries a file identifier of a file to be played.
3. The method for synchronously playing the video according to claim 2, wherein, when the main playing device receives the playing instruction, the generating of the first rendering request of the current video frame of the file to be played according to the playing instruction specifically comprises:
the main playing device receives the playing instruction and reads a file identifier carried by the playing instruction;
and acquiring a current video frame of the file to be played according to the file identifier, and generating a first rendering request according to the current video frame.
4. The method for synchronously playing back video according to claim 1, wherein the verifying the synchronization request by each slave playback device and feeding back the verification result to the master playback device comprises:
each slave playing device receives the synchronization request and extracts the file identification carried by the synchronization request;
judging whether the file to be played exists according to the file identification so as to verify the synchronous request;
when the file to be played exists, sending feedback information of successful verification to main playing equipment, and rendering a video frame to be rendered of the file to be played;
and when the file to be played does not exist, sending feedback information of failed verification to the main playing device.
5. The method for synchronously playing the video according to claim 4, wherein when the file to be played exists, sending feedback information that the verification is successful to a main playing device, and rendering the video frame to be rendered of the file to be played specifically comprises: when the file to be played exists, sending feedback information of successful verification to main playing equipment;
acquiring a first frame sequence number of a video frame to be rendered, and comparing the first frame sequence number with a second frame sequence number of a current video frame to be rendered by a main playing device;
if the first frame serial number is the same as the second frame serial number, rendering the video frame to be rendered;
and if the first frame serial number is different from the second frame serial number, searching the corresponding video frame according to the second frame serial number, and rendering the searched video frame.
6. A system for synchronously playing videos is characterized by comprising a master playing device and at least one slave playing device, wherein the master playing device is respectively connected with each slave playing device, receives a playing instruction, generates a first rendering request and a synchronous request according to the playing instruction, and sends the synchronous request to each slave playing device; each slave playing device receives the synchronous request, verifies the synchronous request and feeds back a verification result to the master playing device; the master playing device receives the feedback information sent by each slave playing device, renders the current video frame to a video window when receiving the feedback information which is verified successfully, and generates a second rendering request of the next video frame to circularly synchronize each video frame of the file to be played;
when receiving the feedback information that the verification is successful, the main playing device renders the current video frame to the video window, and generates a second rendering request of a next video frame to circularly synchronize each video frame of the file to be played specifically includes:
the master playing device receives the feedback information sent by each slave playing device and reads the verification result carried by each feedback information;
when the verification result is successful, rendering the current video frame to a video window, and generating a second rendering request of the next video frame to circularly synchronize all the video frames of the file to be played;
and when the verification result is not successful, sending the synchronization request corresponding to the current video frame to each slave playing device after a preset time interval.
7. The system for synchronously playing back video according to claim 6, further comprising a server, wherein the server is respectively connected to the master playing device and each slave playing device, and respectively sends the file to be played back to the master playing device and each slave playing device for playing back the file.
8. The system for synchronized playback of video according to claim 7, further comprising a router; the server is respectively connected with the main playing device and each slave playing device through the router, and the main playing device is directly connected with each slave playing device through the internet access.
CN201711473275.7A 2017-12-29 2017-12-29 Method and system for synchronously playing videos Active CN108184158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711473275.7A CN108184158B (en) 2017-12-29 2017-12-29 Method and system for synchronously playing videos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711473275.7A CN108184158B (en) 2017-12-29 2017-12-29 Method and system for synchronously playing videos

Publications (2)

Publication Number Publication Date
CN108184158A CN108184158A (en) 2018-06-19
CN108184158B true CN108184158B (en) 2020-11-03

Family

ID=62549031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711473275.7A Active CN108184158B (en) 2017-12-29 2017-12-29 Method and system for synchronously playing videos

Country Status (1)

Country Link
CN (1) CN108184158B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248047B (en) * 2019-06-27 2021-06-15 深圳市拔超科技有限公司 Synchronous switching method and system of video matrix
CN111601136B (en) * 2020-05-11 2021-03-26 腾讯科技(深圳)有限公司 Video data processing method and device, computer equipment and storage medium
CN113596547A (en) * 2021-07-29 2021-11-02 海信电子科技(武汉)有限公司 Display device, synchronous playing method and system
CN113923495B (en) * 2021-09-08 2024-01-12 北京奇艺世纪科技有限公司 Video playing method, system, electronic equipment and storage medium
CN114025150A (en) * 2021-10-29 2022-02-08 歌尔光学科技有限公司 Video frame synchronization method and device for multi-head-mounted equipment, head-mounted equipment and medium
CN116347140A (en) * 2021-12-22 2023-06-27 京东方科技集团股份有限公司 Video synchronous playing method and device, storage medium and electronic equipment
CN115190351B (en) * 2022-07-06 2023-09-29 Vidaa国际控股(荷兰)公司 Display equipment and media resource scaling control method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202568B (en) * 2006-12-14 2012-01-25 北京三星通信技术研究有限公司 Terminal and method for supporting combination playing
CN101674364B (en) * 2009-09-28 2011-11-09 华为终端有限公司 Wireless screen splicing display method, mobile communication terminal and device
CN103139610B (en) * 2013-01-23 2016-12-28 深圳市创凯智能股份有限公司 The method and apparatus that cluster audio video synchronization is play
CN103151058B (en) * 2013-01-30 2016-02-03 福建三元达软件有限公司 The method and system that audio video synchronization is play
CN104186014B (en) * 2013-02-18 2018-08-21 华为技术有限公司 A kind of method and device that net cast synchronizes
CN106488290A (en) * 2016-10-08 2017-03-08 广东欧珀移动通信有限公司 Multimedia synchronous play method, apparatus and system
CN106454010A (en) * 2016-10-21 2017-02-22 青岛海信电器股份有限公司 Synchronous display calibration method for multi-screen spliced display system, displays and multi-screen spliced display system

Also Published As

Publication number Publication date
CN108184158A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN108184158B (en) Method and system for synchronously playing videos
CN104375789B (en) The synchronous display method and system of mosaic screen
CN108055564B (en) Method and system for synchronously playing played contents of multiple playing terminals
US10390321B2 (en) Timing advance adjustment method and device
KR20130139354A (en) A method of handover in carrier aggregation scenarios
CN105308673A (en) Methods, systems, and media for managing output of an HDMI source
CN106169964B (en) Network equipments configuration synchronous method and device
CN104581188A (en) Method and apparatus for IP video signal synchronization
US20150081068A1 (en) Method for synchronizing audio playback of plural playing devices and audio playback system
WO2017162079A1 (en) Data synchronization method and apparatus
CN110278457A (en) The more audio video synchronization playback methods of more hosts and system
EP2884807A1 (en) Clock synchronization system and method for base station
KR102566550B1 (en) Method of display playback synchronization of digital contents in multiple connected devices and apparatus using the same
US20220386258A1 (en) Time code synchronization method
CN103369662A (en) Adapter, baseband processing unit and base station system
US8307121B2 (en) Method and a type of transmit and receive ends for data synchronization
JP4881008B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
CN104363486A (en) Combined television and USB (universal serial bus) sharing method thereof
US20220124435A1 (en) Earphone upgrade method, earphone assembly, upgrade device and non-transitory computer readable storage medium
CN103246840A (en) Method and device for distributing user permissions
US9641268B2 (en) Method, system and device for synchronizing clocks
US20150032856A1 (en) Communication device, communication system, control method for these, and program for causing computer to execute this method
WO2016119362A1 (en) Clock synchronization method, router and cluster routing system
WO2019141150A1 (en) Cross-platform content control method and device, terminal, server, and storage medium
CN109274532B (en) Method, device and system for issuing policy, centralized control equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Li Yang

Inventor after: Li Jian

Inventor after: Wen Hongguang

Inventor after: Lu Nianhua

Inventor after: Ji Shengyong

Inventor after: Chen Bingjie

Inventor before: Li Jian

Inventor before: Wen Hongguang

Inventor before: Lu Nianhua

Inventor before: Ji Shengyong

Inventor before: Chen Bingjie

GR01 Patent grant
GR01 Patent grant