CN111277883B - Playing method, terminal and playing system - Google Patents

Playing method, terminal and playing system Download PDF

Info

Publication number
CN111277883B
CN111277883B CN202010091379.7A CN202010091379A CN111277883B CN 111277883 B CN111277883 B CN 111277883B CN 202010091379 A CN202010091379 A CN 202010091379A CN 111277883 B CN111277883 B CN 111277883B
Authority
CN
China
Prior art keywords
terminal
playing
synchronization command
target frame
content
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
CN202010091379.7A
Other languages
Chinese (zh)
Other versions
CN111277883A (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.)
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 CN202010091379.7A priority Critical patent/CN111277883B/en
Publication of CN111277883A publication Critical patent/CN111277883A/en
Application granted granted Critical
Publication of CN111277883B publication Critical patent/CN111277883B/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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/633Control signals issued by server directed to the network components or client
    • H04N21/6332Control signals issued by server directed to the network components or client directed to client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • H04N21/6377Control signals issued by the client directed to the server or network components directed to server

Abstract

The invention provides a playing method, a terminal and a playing system, and relates to the technical field of playing. Wherein, the method comprises the following steps: receiving playing content and playing control information sent by a server; generating a first synchronization command including first target frame information in the play content; and sending the first synchronization command to each second terminal so that the second terminal plays the playing content according to the playing control information from the first target frame information when receiving the first synchronization command. In the invention, the first synchronous command for realizing synchronous playing can be sent to the second terminal in the same local area network by the first terminal, and then the first terminal and the second terminal can start playing the content from the first target frame information, thereby realizing synchronous playing. Because the synchronization operation is finished by the first terminal and the second terminal in the same local area network without being executed by the server, the synchronization operation does not depend on the network condition between the server and the terminals, and the accuracy of the playing synchronization of a plurality of terminals is improved.

Description

Playing method, terminal and playing system
Technical Field
The present invention relates to the field of playing technologies, and in particular, to a playing method, a terminal, and a playing system.
Background
At present, in many scenes, the playing contents of multiple terminals need to be synchronized, for example, multiple outdoor spliced advertisement screens can play the same advertisement content, and for example, a supermarket in a market can play the same discounted video through multiple playing terminals, where multiple terminals play the same content and need to perform playing synchronization.
Currently, synchronous playing can be generally realized by pushing playing contents to each playing terminal through a server, and correcting the time of each playing terminal according to the communication time between each playing terminal and the server, so as to realize synchronous playing of each playing terminal. However, the communication time between the broadcast terminal and the server may change at any time according to the network condition, and when the network condition is different, the communication time may fluctuate, which may cause different delays, and the delay time is difficult to calculate, so the accuracy of broadcast synchronization is low.
Disclosure of Invention
The invention provides a playing method, a terminal and a playing system, which aim to solve the problem that in the prior art, the accuracy of playing synchronization of a plurality of terminals is low.
In order to solve the above problem, the present invention discloses a playing method, which is applied to a first terminal in a playing system, wherein the playing system further comprises a server and at least one second terminal, the first terminal and the second terminal are in the same local area network, and the method comprises:
receiving the playing content and the playing control information sent by the server;
generating a first synchronization command, wherein the first synchronization command comprises first target frame information in the playing content;
and sending the first synchronization command to each second terminal, so that the second terminals start to play the pre-received playing content according to the pre-received playing control information from the first target frame information when receiving the first synchronization command.
Optionally, the generating the first synchronization command includes:
inquiring the first priority of the first terminal from first play configuration information received in advance;
and when the first priority is a preset maximum priority, generating a first synchronization command.
In order to solve the above problem, the present invention further discloses a playing method, which is applied to a second terminal in a playing system, wherein the playing system further includes a server and a first terminal, the first terminal and the second terminal are in the same local area network, and the method includes:
receiving the playing content and the playing control information sent by the server;
receiving a first synchronization command sent by the first terminal, wherein the first synchronization command comprises first target frame information in the playing content;
and playing the playing content according to the playing control information from the first target frame information.
Optionally, before receiving the first synchronization command sent by the first terminal, the method further includes:
inquiring the second priority of the player from the second playing configuration information received in advance;
when the second priority is not the preset maximum priority, starting to count down to wait for the first synchronization command;
the receiving of the first synchronization command sent by the first terminal includes:
and receiving a first synchronization command sent by the first terminal before the countdown is finished.
Optionally, different second terminals have different priorities, and the countdown duration of the second terminals is negatively correlated with the priority;
after receiving the playing content and the playing control information sent by the server, the method further includes:
generating a second synchronization command under the condition that the first synchronization command is not received before the countdown corresponding to the second synchronization command is finished, wherein the second synchronization command comprises second target frame information in the playing content;
and sending the second synchronization command to each remaining second terminal in the playing system, so that each remaining second terminal plays the playing content from the second target frame information according to the playing control information.
In order to solve the above problem, the present invention also discloses a terminal, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the playing method executed by the first terminal as described above.
In order to solve the above problem, the present invention also discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the playing method performed by the first terminal as described above.
In order to solve the above problem, the present invention also discloses a terminal, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the playing method executed by the second terminal as described above.
In order to solve the above problem, the present invention also discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the playing method performed by the second terminal as described above.
In order to solve the above problem, the present invention further discloses a playing system, where the playing system includes a server, a first terminal and at least one second terminal, and the first terminal and the second terminal are in the same local area network;
the server is used for sending playing content and playing control information to the first terminal and the second terminal;
the first terminal is configured to receive the playing content and the playing control information sent by the server; generating a first synchronization command, wherein the first synchronization command comprises first target frame information in the playing content; sending the first synchronization command to each second terminal, so that the second terminals start to play the pre-received playing content according to the pre-received playing control information from the first target frame information when receiving the first synchronization command;
the second terminal is configured to receive the playing content and the playing control information sent by the server; receiving the first synchronization command sent by the first terminal; and playing the playing content according to the playing control information from the first target frame information.
Compared with the prior art, the invention has the following advantages:
in the embodiment of the present invention, a first terminal in a local area network may receive a play content and play control information sent by a server, and then generate a first synchronization command, where the first synchronization command includes first target frame information in the play content. Then, the first terminal may send the first synchronization command to each second terminal in the local area network, and the second terminal may play the pre-received play content according to the pre-received play control information, starting from the first target frame information, when receiving the first synchronization command. In the embodiment of the present invention, the first synchronization command for implementing synchronous playing may be sent by the first terminal to each second terminal in the same lan, and then both the first terminal and the second terminal may start playing the content from the first target frame information in the first synchronization command, thereby implementing synchronous playing. Because the synchronous operation is finished by the first terminal and the second terminal in the same local area network without being executed by a server, the synchronous operation in the local area network does not depend on the network condition between the server and the terminals, thereby improving the accuracy of the synchronous playing of a plurality of terminals.
Drawings
Fig. 1 shows a flow chart of a playing method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a playing system according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating another playing method according to a second embodiment of the present invention;
fig. 4 shows a block diagram of a playing system according to a second embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart of steps of a playing method according to a first embodiment of the present invention is shown, where the method is applied to a playing system, where the playing system includes a server, a first terminal and at least one second terminal, and the first terminal and the second terminal are in the same local area network, and the method includes the following steps:
step 101: and the first terminal receives the playing content and the playing control information sent by the server.
Referring to fig. 2, a schematic diagram of a playing system according to a first embodiment of the present invention is shown, where the playing system may include a server 10, a first terminal 20, and at least one second terminal 30, it is to be understood that the number of the second terminals 30 is not particularly limited in the embodiment of the present invention, and fig. 2 only exemplarily shows 4 second terminals 30. The first terminal 20 and the second terminal 30 are in the same local area network W, and in practical applications, the server 10 and the first terminal 20 and the second terminal 30 may be in one local area network or not, which is not specifically limited in this embodiment of the present invention.
If the server 10 is in a local area network with the first terminal 20 and the second terminal 30, the server 10 may communicate with the first terminal 20 and the second terminal 30 through the local area network. If the server 10 and the first and second terminals 20 and 30 are not in a local area network, the server 10 may communicate with the first and second terminals 20 and 30 in the local area network through a network, such as a wireless network.
In a local area network, a plurality of terminals needing synchronous playing can be called a playing terminal group. Of course, a plurality of sets of terminals may be included in a local area network. The first terminal is a main control playing terminal in a playing terminal group, and each second terminal in the same group with the first terminal can realize synchronous playing with the first terminal together according to the command of the first terminal.
When a user needs to realize synchronous playing of a playing terminal group, the user can issue a playing command through a server on the server, and the server can send playing contents and playing control information to each terminal in the playing terminal group, so that the first terminal and each second terminal can receive the playing contents and the playing control information sent by the server. The playing content may include at least one video, image, and the like to be played. The playing control information, i.e. the playing plan for the playing content, may include a playing time length, a starting node and/or an ending node (e.g. a starting/ending time point or a starting/ending frame position of the video) of the playing content, a cycle number of the playing content, and the like.
Step 102: and the second terminal receives the playing content and the playing control information sent by the server.
In the embodiment of the present invention, the server may send the playing content and the playing control information to both the first terminal and the second terminal, and accordingly, the second terminal may receive the playing content and the playing control information sent by the server.
Step 103: the first terminal generates a first synchronization command, and the first synchronization command comprises first target frame information in the playing content.
In the embodiment of the present invention, after receiving the playing content and the playing control information, the first terminal may generate the first synchronization command, where the first synchronization command may include first target frame information in the playing content, and the first target frame information is a synchronization node of the playing content. The first terminal and the second terminal can realize the playing synchronization only by starting the playing from the same node for playing the content synchronously, and the node is also the synchronous node for playing the content. In practical applications, the synchronization node may be a certain frame position of the playing content or a certain time point of the playing content, which is not specifically limited in this embodiment of the present invention.
The first synchronization command may further comprise an identification of the synchronization command and a priority of the sender of the synchronization command, i.e. the priority of the first terminal.
Step 104: the first terminal sends the first synchronization command to each second terminal, so that the second terminals start to play the pre-received playing content according to the pre-received playing control information from the first target frame information when receiving the first synchronization command.
In this embodiment of the present invention, after the first terminal generates the first synchronization command, the first synchronization command may be sent to each second terminal in the same group of playing terminals, so that when the second terminal receives the first synchronization command, the second terminal starts to play the pre-received playing content according to the pre-received playing control information from the first target frame information.
Step 105: the second terminal receives the first synchronization command sent by the first terminal.
In the embodiment of the present invention, each second terminal belonging to the same group of the playing terminals as the first terminal may receive the first synchronization command sent by the first terminal.
Step 106: and the second terminal plays the playing content from the first target frame information according to the playing control information.
In this embodiment of the present invention, the second terminal may read the first target frame information from the first synchronization command, and may then play the playing content according to the playing control information, starting from the first target frame information.
In the embodiment of the present invention, a first terminal in a local area network may receive a play content and play control information sent by a server, and then generate a first synchronization command, where the first synchronization command includes first target frame information in the play content. Then, the first terminal may send the first synchronization command to each second terminal in the local area network, and the second terminal may play the pre-received play content according to the pre-received play control information, starting from the first target frame information, when receiving the first synchronization command. In the embodiment of the present invention, the first synchronization command for implementing synchronous playing may be sent by the first terminal to each second terminal in the same lan, and then both the first terminal and the second terminal may start playing the content from the first target frame information in the first synchronization command, thereby implementing synchronous playing. Because the synchronous operation is finished by the first terminal and the second terminal in the same local area network without being executed by a server, the synchronous operation in the local area network does not depend on the network condition between the server and the terminals, thereby improving the accuracy of the synchronous playing of a plurality of terminals.
Example two
Referring to fig. 3, a flowchart illustrating steps of another playing method according to a first embodiment of the present invention is shown, where the method includes the following steps:
step 201: the server sends the first playing configuration information to the first terminal and sends each second playing configuration information to the corresponding second terminal.
In the embodiment of the present invention, in a local area network, a plurality of terminals that need to play synchronously may be referred to as a group of playing terminals. The terminals in each of the groups of the terminals in the lan can be registered in the server. After the terminal completes the registration in the server, the server may obtain a Media Access Control (MAC) address of each terminal. The user can group the terminals registered in the server through the server, that is, the terminals registered in the server are divided into at least one play terminal group.
After grouping is completed, the server may transmit the play configuration information to each terminal in the group of the play terminals. In a specific implementation manner, the playing configuration information may include a playing configuration identifier, a priority of the terminal as a playing main control terminal, MAC addresses of other terminals in the playing terminal group, and a unit time T of waiting for a synchronization command of the main control terminal when executing a playing task. The time for waiting for the synchronization command of the main control terminal when one terminal executes the play task can be positive integer times of T. Alternatively, T may be greater than or equal to 50 milliseconds and less than or equal to 100 milliseconds.
If there are n terminals, the first terminal is the master play control terminal with the highest priority, which may be marked as P0, all the second terminals have priorities lower than that of the first terminal, the n-1 second terminals have priorities of P1, P2, … … and Pn-1, respectively, and the lowest priority may be marked as Pn-1.
Step 202: the server sends the playing content and the playing control information to the first terminal and the second terminal.
In the embodiment of the present invention, a user may send a play content and a play command to a play terminal group through a server, where the play command may include a play command identifier of the server, play control information, a start time point and a stop time point of play.
Step 203: and the first terminal receives the playing content and the playing control information sent by the server.
Step 204: and the second terminal receives the playing content and the playing control information sent by the server.
Step 205: the first terminal generates a first synchronization command, and the first synchronization command comprises first target frame information in the playing content.
In the embodiment of the present invention, the step may be specifically implemented by the following method, including: the first terminal inquires the first priority of the first terminal from the first playing configuration information received in advance; and when the first priority is the preset maximum priority, the first terminal generates a first synchronization command.
After each terminal in the playing terminal group receives the playing command of the server, the playing configuration information of the terminal can be inquired to judge whether the terminal is the first terminal which plays the main control terminal or the second terminal which needs to wait for the synchronous command. If the terminal inquires that the priority of the terminal is the preset maximum priority P0, which indicates that the terminal is the first terminal, the terminal may generate a first synchronization command for implementing the synchronization operation. If the terminal inquires that the priority of the terminal is not the preset maximum priority P0, it indicates that the terminal is the second terminal, and the terminal needs to wait for the first synchronization command sent by the first terminal.
Step 206: the first terminal sends a first synchronization command to each of the second terminals.
In the embodiment of the present invention, after the first terminal generates the first synchronization command, the first synchronization command may be sent to each second terminal in the same slot according to the MAC addresses of other terminals in the slot group in the first play configuration information.
Optionally, in practical applications, the first synchronization command may be sent periodically to ensure that the second terminal can receive the first synchronization command, which is not specifically limited in this embodiment of the present invention.
In addition, the first terminal may start playing the playing content at the same time or after transmitting the first synchronization command.
Step 207: and the second terminal receives the first synchronization command sent by the first terminal before the countdown is finished.
In this embodiment of the present invention, before receiving the first synchronization command sent by the first terminal, the second terminal may further perform the following steps, including: inquiring the second priority of the player from the second playing configuration information received in advance; when the second priority is not the preset maximum priority, starting to count down to wait for the first synchronous command.
After each terminal in the playing terminal group receives the playing command of the server, the playing configuration information of the terminal can be inquired to judge whether the terminal is the first terminal which plays the main control terminal or the second terminal which needs to wait for the synchronous command. If the terminal inquires that the priority of the terminal is not the preset maximum priority P0, it indicates that the terminal is the second terminal, and the terminal needs to start counting down to wait for the first synchronization command sent by the first terminal.
Correspondingly, the step may specifically include: and the second terminal receives the first synchronization command sent by the first terminal before the countdown is finished. That is, the first synchronization command received by the second terminal before the countdown is finished is considered as an effective synchronization command, because the first synchronization command is received after a long delay time, the play of different terminals cannot be synchronized accurately.
Step 208: and the second terminal plays the playing content according to the playing control information from the first target frame information.
In this embodiment of the present invention, if the second terminal receives the first synchronization command sent by the first terminal before the countdown is finished, the second terminal may read the first target frame information from the first synchronization command, and then may start playing the playing content according to the playing control information from the first target frame information.
Step 209: and the second terminal generates a second synchronous command under the condition that the second terminal does not receive the first synchronous command before the countdown corresponding to the second terminal is finished, wherein the second synchronous command comprises second target frame information in the playing content.
Optionally, in a specific implementation, different second terminals may have different priorities, and the countdown duration of the second terminal may be inversely related to the priority. That is, different second terminals may have different countdown durations, and the higher the priority, the shorter the countdown duration, the lower the priority, the longer the countdown duration.
In an implementation manner, the countdown duration of the second terminal may be (Pm-Px) × T, where Pm is the priority of the second terminal, Px is the priority of the sender of the synchronization command, and T is a unit time for waiting for the synchronization command of the main control terminal when the second terminal executes the play task. If the sender of the synchronous command is the first terminal, Px is P0, and P0 is 0.
It should be noted that, if the priority is represented by 0, 1, 2, 3 … …, the formula for calculating the countdown duration may be (Pm-Px) × T, and if the priority is represented by 0, 2, 4, 6, 8 … …, the formula for calculating the countdown duration may be (Pm-Px) × T/2, that is, it may be considered that the unit time for waiting for the synchronization command of the main control terminal when the play task is executed is T/2, and the same applies. The embodiment of the present invention does not specifically limit the calculation manner of the countdown duration of the second terminal.
Specifically, the second terminal with priority P1(P1 ═ 1) has a corresponding countdown duration T, the second terminal with priority P2(P2 ═ 2) has a corresponding countdown duration 2T, the second terminal with priority P3(P3 ═ 3) has a corresponding countdown duration 3T, and so on.
When the second terminal with the priority P1 does not receive the first synchronization command before the corresponding countdown T ends, it indicates that the first terminal with the highest priority has a fault, and the fault may cause the first synchronization command to be unable to be sent or unable to be received by the second terminal, at this time, the second terminal with the priority P1 ends the countdown first, so that the second terminal with the priority P1 may become the main control terminal for playing, that is, replace the role of the original first terminal, and serve as the sender of the new synchronization command, thereby generating the second synchronization command. In a specific application, the second target frame information may be the same as or different from the first target frame information, and this is not specifically limited in this embodiment of the present invention.
Step 210: and the second terminal sends the second synchronous command to each remaining second terminal in the playing system so that each remaining second terminal starts playing the playing content from the second target frame information according to the playing control information.
In the embodiment of the present invention, the second terminal that does not receive the first synchronization command before the corresponding countdown is finished can serve as a new main control terminal to send the second synchronization command to each of the remaining second terminals in the same group of the playing terminals. If each of the remaining second terminals receives the second synchronization command before the corresponding countdown is finished, each of the remaining second terminals may start playing the playing content from the second target frame information according to the playing control information.
The countdown duration of the second terminal with the priority level P2 is 2T among the remaining second terminals, and the second terminal with the priority level P2 is the second terminal with the shortest countdown duration among the remaining second terminals, so that, if the second terminal with the priority level P1 fails to receive the second synchronization command, the second terminal with the priority level P2 will end the countdown first, so that the second terminal with the priority level P2 can become the main control terminal for playing, that is, replace the role of the original first terminal, and serve as the sender of the new synchronization command, and further generate the third synchronization command including the third target frame information, and send the third synchronization command to the remaining second terminals with the priority level lower than P2, so that the remaining second terminals with the priority level lower than P2 start playing the content from the third target frame information according to the playing control information.
In the embodiment of the invention, under the condition that the first terminal has a fault, the second terminal which finishes counting down firstly can replace the first terminal to become a main control terminal for playing and send the synchronous command to other second terminals, so that each second terminal can still realize synchronous playing, and the problem that the playing cannot be synchronous due to the fault of the first terminal can be avoided. In a similar way, when a terminal with a high priority fails, the terminal with the next priority can become a main control terminal for playing and send a synchronous command to the remaining terminals, so that other terminals can still realize synchronous playing except the failed terminal.
Taking the countdown interval T of each second terminal as an example, if the current main control terminal has no fault, each remaining second terminal may receive the synchronization command of the main control terminal before the end of the remaining shortest countdown, because if the current main control terminal has the remaining shortest countdown, the remaining second terminal will become a new main control terminal by itself without receiving the synchronization command of the main control terminal before the end of the countdown and resend the new synchronization command, therefore, under the condition that the current main control terminal has no fault, the time for each remaining second terminal to start playing and the time for the main control terminal to start playing do not exceed the countdown interval T, that is, the synchronous playing does not exceed the time difference of millisecond level, and the accuracy of the playing synchronization is high.
In addition, the user can also issue a play stop command to the first terminal and the second terminal through the server, and the play stop command can be used for stopping the countdown of the second terminal and stopping the playing of the playing content by the first terminal and the second terminal. And if the second terminal receives the playing stop command and the playing process is not finished, directly finishing playing. If the second terminal receives the playing stop command and the playing process is finished, the playing end state is maintained.
In the embodiment of the present invention, the server may send the playing content and the playing control information to the first terminal and the second terminal in the local area network, and the first terminal may generate the first synchronization command after receiving the first synchronization command, where the first synchronization command includes the first target frame information in the playing content. Then, the first terminal may send the first synchronization command to each second terminal in the local area network, and when the second terminal receives the first synchronization command before the countdown is finished, the second terminal may start playing the playing content from the first target frame information according to the playing control information. In the embodiment of the present invention, the first synchronization command for implementing synchronous playing may be sent by the first terminal to each second terminal in the same lan, and then both the first terminal and the second terminal may start playing the content from the first target frame information in the first synchronization command, thereby implementing synchronous playing. Because the synchronous operation is finished by the first terminal and the second terminal in the same local area network without being executed by a server, the synchronous operation in the local area network does not depend on the network condition between the server and the terminals, thereby improving the accuracy of the synchronous playing of a plurality of terminals. In addition, under the condition that the second terminal does not receive the first synchronization command before the countdown corresponding to the second terminal is finished, the second synchronization command can be generated and sent to each of the rest second terminals in the playing system, and the rest second terminals can play the playing content according to the playing control information from the second target frame information in the second synchronization command.
EXAMPLE III
Referring to fig. 4, a block diagram of a playing system according to a second embodiment of the present invention is shown, where the playing system 300 includes a server 301, a first terminal 302, and at least one second terminal 303, and the first terminal 301 and the second terminal 302 are in the same local area network 100.
The server 301 is configured to send broadcast content and broadcast control information to the first terminal and the second terminal;
the first terminal 302 is configured to receive the playing content and the playing control information sent by the server; generating a first synchronization command, wherein the first synchronization command comprises first target frame information in the playing content; sending the first synchronization command to each second terminal, so that the second terminals start to play the pre-received playing content according to the pre-received playing control information from the first target frame information when receiving the first synchronization command;
the second terminal 303 is configured to receive the playing content and the playing control information sent by the server; receiving the first synchronization command sent by the first terminal; and playing the playing content according to the playing control information from the first target frame information.
Optionally, the first terminal 302 is specifically configured to:
inquiring the first priority of the first terminal from first play configuration information received in advance;
and when the first priority is a preset maximum priority, generating a first synchronization command.
Optionally, the second terminal 303 is further configured to:
inquiring the second priority of the player from the second playing configuration information received in advance;
when the second priority is not the preset maximum priority, starting to count down to wait for the first synchronization command;
the second terminal 303 is specifically configured to:
and receiving a first synchronization command sent by the first terminal before the countdown is finished.
Optionally, different second terminals have different priorities, and the countdown duration of the second terminals is negatively correlated with the priority; the second terminal 303 is further configured to:
generating a second synchronization command under the condition that the first synchronization command is not received before the countdown corresponding to the second synchronization command is finished, wherein the second synchronization command comprises second target frame information in the playing content;
and sending the second synchronization command to each remaining second terminal in the playing system, so that each remaining second terminal plays the playing content from the second target frame information according to the playing control information.
In the embodiment of the present invention, the server may send the playing content and the playing control information to the first terminal and the second terminal in the local area network, and the first terminal may receive the playing content and the playing control information and then generate the first synchronization command, where the first synchronization command includes the first target frame information in the playing content. Then, the first terminal may send the first synchronization command to each second terminal in the local area network, and the second terminal may play the received play content from the first target frame information according to the received play control information when receiving the first synchronization command. In the embodiment of the present invention, the first synchronization command for implementing synchronous playing may be sent by the first terminal to each second terminal in the same lan, and then both the first terminal and the second terminal may start playing the content from the first target frame information in the first synchronization command, thereby implementing synchronous playing. Because the synchronous operation is finished by the first terminal and the second terminal in the same local area network without being executed by a server, the synchronous operation in the local area network does not depend on the network condition between the server and the terminals, thereby improving the accuracy of the synchronous playing of a plurality of terminals.
The embodiment of the invention also discloses a terminal, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the playing method executed by the first terminal are realized.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the playing method executed by the first terminal are realized.
The embodiment of the invention also discloses a terminal, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the playing method executed by the second terminal are realized.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the playing method executed by the second terminal are realized.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is given to the playing method, the terminal and the playing system provided by the present invention, and the specific examples are applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A playing method, applied to a first terminal in a playing system, wherein the playing system further includes a server and at least one second terminal, and the first terminal and the second terminal are in the same local area network, the method comprising:
receiving the playing content and the playing control information sent by the server;
generating a first synchronization command, wherein the first synchronization command comprises first target frame information in the playing content;
sending the first synchronization command to each second terminal, so that the second terminals start to play the pre-received playing content according to the pre-received playing control information from the first target frame information when receiving the first synchronization command;
before the second terminal receives the first synchronization command, the second terminal starts countdown, and generates a second synchronization command under the condition that the first synchronization command is not received before the countdown corresponding to the second terminal is finished, wherein the second synchronization command comprises second target frame information in the playing content;
and sending the second synchronization command to each remaining second terminal in the playing system, so that each remaining second terminal plays the playing content from the second target frame information according to the playing control information.
2. The method of claim 1, wherein generating the first synchronization command comprises:
inquiring the first priority of the first terminal from first play configuration information received in advance;
and when the first priority is a preset maximum priority, generating a first synchronization command.
3. A playing method, characterized in that, the method is applied to a second terminal in a playing system, the playing system further includes a server and a first terminal, the first terminal and the second terminal are in the same local area network, the method includes:
receiving the playing content and the playing control information sent by the server;
receiving a first synchronization command sent by the first terminal, wherein the first synchronization command comprises first target frame information in the playing content;
starting to play the playing content from the first target frame information according to the playing control information;
starting countdown before receiving a first synchronization command sent by the first terminal, and generating a second synchronization command under the condition that the first synchronization command is not received before the corresponding countdown is finished, wherein the second synchronization command comprises second target frame information in the playing content;
and sending the second synchronization command to each remaining second terminal in the playing system, so that each remaining second terminal plays the playing content from the second target frame information according to the playing control information.
4. The method of claim 3, wherein before receiving the first synchronization command sent by the first terminal, the method further comprises:
inquiring the second priority of the player from the second playing configuration information received in advance;
when the second priority is not the preset maximum priority, starting to count down to wait for the first synchronization command;
the receiving of the first synchronization command sent by the first terminal includes:
and receiving a first synchronization command sent by the first terminal before the countdown is finished.
5. The method of claim 4, wherein different second terminals have different priorities, and wherein the countdown duration of the second terminals is inversely related to the priority.
6. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the playback method according to any one of claims 1 to 2.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the playback method according to one of claims 1 to 2.
8. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the playback method according to any one of claims 3 to 5.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the playback method according to one of claims 3 to 5.
10. A playing system is characterized in that the playing system comprises a server, a first terminal and at least one second terminal, wherein the first terminal and the second terminal are in the same local area network;
the server is used for sending playing content and playing control information to the first terminal and the second terminal;
the first terminal is configured to receive the play content and the play control information sent by the server; generating a first synchronization command, wherein the first synchronization command comprises first target frame information in the playing content; sending the first synchronization command to each second terminal, so that the second terminals start to play the pre-received playing content according to the pre-received playing control information from the first target frame information when receiving the first synchronization command;
the second terminal is configured to receive the playing content and the playing control information sent by the server; receiving the first synchronization command sent by the first terminal; starting to play the playing content from the first target frame information according to the playing control information;
before the second terminal receives the first synchronization command, the second terminal starts counting down, and generates a second synchronization command under the condition that the first synchronization command is not received before the counting down corresponding to the second terminal is finished, wherein the second synchronization command comprises second target frame information in the playing content; and sending the second synchronization command to each remaining second terminal in the playing system, so that each remaining second terminal plays the playing content from the second target frame information according to the playing control information.
CN202010091379.7A 2020-02-13 2020-02-13 Playing method, terminal and playing system Active CN111277883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010091379.7A CN111277883B (en) 2020-02-13 2020-02-13 Playing method, terminal and playing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010091379.7A CN111277883B (en) 2020-02-13 2020-02-13 Playing method, terminal and playing system

Publications (2)

Publication Number Publication Date
CN111277883A CN111277883A (en) 2020-06-12
CN111277883B true CN111277883B (en) 2022-05-20

Family

ID=71002546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010091379.7A Active CN111277883B (en) 2020-02-13 2020-02-13 Playing method, terminal and playing system

Country Status (1)

Country Link
CN (1) CN111277883B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460447A (en) * 2022-09-19 2022-12-09 上海昇瑭智能科技有限公司 Method and system for synchronously playing videos by multiple terminals

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8997169B2 (en) * 2012-03-23 2015-03-31 Sony Corporation System, method, and infrastructure for synchronized streaming of content
CN103151058B (en) * 2013-01-30 2016-02-03 福建三元达软件有限公司 The method and system that audio video synchronization is play
CN103634312A (en) * 2013-11-26 2014-03-12 广州晶锐信息技术有限公司 Device management method for realizing multi-audio fast synchrony based on audio sharing
KR20150080278A (en) * 2013-12-31 2015-07-09 주식회사 케이티 Apparatus for providing advertisement content and video content and method thereof
CN104349199B (en) * 2014-11-21 2017-09-26 王方淇 A kind of information synchronization method and device
CN106454474B (en) * 2016-10-08 2019-08-06 Oppo广东移动通信有限公司 Multimedia synchronous plays method, apparatus and system
CN110248213A (en) * 2018-03-08 2019-09-17 上海分众软件技术有限公司 Multimachine real-time synchronization play system
CN109451336B (en) * 2018-10-09 2021-08-17 Oppo(重庆)智能科技有限公司 Video playing method and related product
CN110300319A (en) * 2019-07-08 2019-10-01 深圳创维-Rgb电子有限公司 Audio video synchronization playback method, system and storage medium

Also Published As

Publication number Publication date
CN111277883A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
JP6731201B2 (en) Time-based node selection method and apparatus
CN103561356A (en) Multi-terminal synchronous playing method and device
CN102523243A (en) Systems and methods of providing fast leader elections in distributed systems of simple topologies
CN101572599B (en) Method, device and system for timing execution of synchronization
CN105338078A (en) Data storage method and device used for storing system
CN111277883B (en) Playing method, terminal and playing system
US20220201085A1 (en) Data management method, related product, and communications system
CN105278413A (en) Communication method for upper computer and CAN equipment of same type
US20200142759A1 (en) Rest gateway for messaging
CN108737006A (en) A kind of method for synchronizing time, client and computer readable storage medium
CN111885103A (en) Resource processing method, server, electronic device, and storage medium
CN105141687B (en) A kind of method for producing message
CN102684865B (en) Method, system and device for data synchronization
CN110049360B (en) Cross-platform content control method, device, terminal, server and storage medium
CN116795507A (en) Distributed task scheduling method, system and scheduling device
CN108881452B (en) Data synchronization method, device and storage medium
CN104852946A (en) Method and equipment for sending heartbeat messages
CN107404511A (en) The replacement method and equipment of server in cluster
CN114449498A (en) Electronic label refreshing method and electronic equipment
CN112839090A (en) Time slot-based data link layer communication control method and device
CN117097744B (en) Information synchronization method, controlled device, control device and electronic device
CN113743564B (en) Counting method, counting device, electronic equipment and storage medium
WO2015185526A1 (en) Method of contending for access to a communication channel and associated communication device
CN110647298A (en) Data storage control method and device
CN110502333B (en) Access request processing method and cloud storage system

Legal Events

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