CN111107412A - Media playing progress synchronization method and device and storage medium - Google Patents

Media playing progress synchronization method and device and storage medium Download PDF

Info

Publication number
CN111107412A
CN111107412A CN201911396781.XA CN201911396781A CN111107412A CN 111107412 A CN111107412 A CN 111107412A CN 201911396781 A CN201911396781 A CN 201911396781A CN 111107412 A CN111107412 A CN 111107412A
Authority
CN
China
Prior art keywords
playing progress
media playing
group
terminal
member terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911396781.XA
Other languages
Chinese (zh)
Inventor
林木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911396781.XA priority Critical patent/CN111107412A/en
Publication of CN111107412A publication Critical patent/CN111107412A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The embodiment of the invention provides a media playing progress synchronization method, a device and a storage medium, which are applied to a system comprising a server, member terminals and group owner terminals, wherein the member terminals and the group owner terminals belong to the same group, the terminals in the group play the same media file together, when the member terminals in the group want to synchronize the media playing progress, the member terminal sends a media playing progress synchronization request to the server, the server determines the current media playing progress of the group owner terminal in the group according to the received request, generating a play control instruction containing the current media play progress of the group owner terminal, sending the play control instruction to the member terminal, adjusting the current media play progress of the member terminal according to the current media play progress of the group owner terminal contained in the play control instruction after the member terminal receives the play control instruction, therefore, the current media playing progress of the member terminal is synchronous with the current media playing progress of the group owner terminal.

Description

Media playing progress synchronization method and device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to a media playing progress synchronization method, a media playing progress synchronization device and a storage medium.
Background
A new video viewing mode is provided in the current video application program, a group exists in the video application program, a plurality of users can join the group, and after the group is joined, the plurality of users can view the same video together and chat while watching the video to discuss the video content. One and only one user in the group is the group owner and the other users are group members. Only the group owner in the group has the right to send media control instructions (such as fast forward instruction, fast backward instruction, pause play instruction, start play instruction, etc.) to the video being played, and the group members can synchronize among the group members through the server according to the media control instructions, for example, the group owner fast forwards the video, and the group members can find that the video being watched is automatically fast-forwarded to the corresponding time point without any operation, and start playing from the time point.
The receiving and sending of the media control instruction often depend on network communication, when a group owner sends the media control instruction to perform video playing control, if a network environment used by a certain group member is just unstable or network jitter occurs, the group member may not receive the media control instruction, so that the video playing progress of the group member is inconsistent with other users in the group. The user may find that the viewing progress of the user is delayed or advanced from that of other users in the later chatting process, the chatting rhythm is not in a beat with other users, and the user experience is poor.
Disclosure of Invention
To solve the technical problems or at least partially solve the technical problems, embodiments of the present invention provide a media synchronization method, apparatus and storage medium.
In view of the above, in a first aspect, an embodiment of the present invention provides a media playing progress synchronization method, which is applied to a system, where the system includes a server, a member terminal and a group owner terminal, where the member terminal and the group owner terminal belong to a same group, and all terminals in the same group play a same media file together;
the media playing progress synchronization method comprises the following steps:
the member terminal sends a media playing progress synchronization request to the server;
the server determines the current media playing progress of the group owner terminal according to the media playing progress synchronization request;
the server sends a play control instruction containing the current media play progress of the group owner terminal to the member terminal;
and the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the playing control instruction so as to make the current media playing progress of the member terminal consistent with the current media playing progress of the group owner terminal.
In a second aspect, an embodiment of the present invention further provides a media playing progress synchronization method, applied to a server, where the method includes:
receiving a media playing progress synchronization request sent by a member terminal;
determining the current media playing progress of the group owner terminal belonging to the same group with the member terminal according to the media playing progress synchronization request;
generating a play control instruction containing the current media play progress of the group owner terminal;
and sending the broadcast control instruction to the member terminal so that the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the broadcast control instruction, and the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal.
In a possible implementation manner, the server stores the received media control instructions sent by the group owner terminal in a classified manner according to the group;
determining the current media playing progress of the group owner terminal belonging to the same group with the member terminal according to the media playing progress synchronization request, wherein the method comprises the following steps:
determining the group to which the member terminal belongs according to the identifier of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request;
acquiring the media control instruction which belongs to the group and is stored for the last time;
acquiring a sending time node and a target playing progress contained in the media control instruction;
calculating the time difference between the current time node and the sending time node of the media control instruction;
and determining the sum of the target playing progress and the time difference as the current media playing progress of the group owner terminal.
In a third aspect, an embodiment of the present invention further provides a media playing progress synchronization method, applied to a member terminal, where the method includes:
the member terminal generates a media playing progress synchronization request;
sending the media playing progress synchronization request to a server;
receiving a play control instruction sent by the server in response to the media play progress synchronization request;
and adjusting the current media playing progress of the user according to the current media playing progress of the group owner terminal contained in the playing control instruction so as to make the current media playing progress of the user consistent with the current media playing progress of the group owner terminal.
In a possible implementation manner, before the member terminal generates the media playing progress synchronization request, the method further includes:
detecting whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs;
and if not, executing the step of generating the synchronous request of the media playing progress.
In a fourth aspect, an embodiment of the present invention further provides a media playing progress synchronization apparatus, applied to a server, where the apparatus includes:
the receiving module is used for receiving a media playing progress synchronization request sent by a member terminal;
a determining module, configured to determine, according to the media playing progress synchronization request, a current media playing progress of a group owner terminal that belongs to the same group as the member terminal;
the instruction generating module is used for generating a broadcast control instruction containing the current media playing progress of the group owner terminal;
and the sending module is used for sending the broadcast control instruction to the member terminal so that the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the broadcast control instruction, and the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal.
In a possible implementation manner, the apparatus further includes a storage module, configured to store the received media control commands sent by the group owner terminal in a classified manner according to the group;
the determining module is specifically configured to:
determining the group to which the member terminal belongs according to the identifier of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request;
acquiring the media control instruction which belongs to the group and is stored for the last time;
acquiring a sending time node and a target playing progress contained in the media control instruction;
calculating the time difference between the current time node and the sending time node of the media control instruction;
and determining the sum of the target playing progress and the time difference as the current media playing progress of the group owner terminal.
A fifth invention, an embodiment of the present invention further provides a media playing progress synchronization apparatus, applied to a member terminal, where the apparatus includes:
the request generating module is used for generating a media playing progress synchronization request;
the sending module is used for sending the media playing progress synchronization request to a server;
the receiving module is used for receiving a broadcast control instruction sent by the server in response to the media broadcast progress synchronization request;
and the adjusting module is used for adjusting the current media playing progress of the self according to the current media playing progress of the group owner terminal contained in the playing control instruction so as to make the current media playing progress of the self consistent with the current media playing progress of the group owner terminal.
In a possible implementation manner, the apparatus further includes a detection module, configured to detect whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs.
In a sixth aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the media playing progress synchronization method according to any one of the second aspect or the third aspect.
Compared with the prior art, the media playing progress synchronization method provided by the embodiment of the invention is applied to a system comprising a server, member terminals and group owner terminals, wherein the member terminals and the group owner terminals belong to the same group, the terminals in the group play the same media file together, when the member terminals in the group want to synchronize the media playing progress, the member terminal sends a media playing progress synchronization request to the server, the server determines the current media playing progress of the group owner terminal in the group according to the received request, generating a play control instruction containing the current media play progress of the group owner terminal, sending the play control instruction to the member terminal, adjusting the current media play progress of the member terminal according to the current media play progress of the group owner terminal contained in the play control instruction after the member terminal receives the play control instruction, therefore, the current media playing progress of the member terminal is synchronous with the current media playing progress of the group owner terminal.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a media playing progress synchronization method according to an embodiment of the present invention;
fig. 2 is a flowchart of a media playing progress synchronization method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for determining a current media playing progress of a group owner terminal according to an embodiment of the present invention;
fig. 4 is a flowchart of a media playing progress synchronization method according to an embodiment of the present invention;
fig. 5 is a block diagram of a media playing progress synchronization apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a media playing progress synchronization apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic diagram of a media playing progress synchronization method according to an embodiment of the present invention, where the method is applied to a system, and the system includes a server, at least one member terminal (for example, the system shown in fig. 1 includes two member terminals 1 and 2), and the member terminal and the group owner terminal belong to a same group, and all terminals belonging to the same group play a same media file together.
In specific implementation, a group may be established, a plurality of users may join in the group, and after joining in the group, the plurality of users may use their own devices (the devices may be smart phones, tablet computers, desktop computers, and the like) respectively to watch or listen to the same media file (for example, video, audio, and the like) together, and may watch/listen to chat while discussing the content of the media file. In order to avoid that different group members adjust the playing progress of the media file to cause the playing of the media file to be disordered, one user is determined to be a group owner (the group owner can be selected according to the requirement) in the group, and other users are group members. The group owner has the authority to perform media control on the media files being played, such as fast forward, fast backward, pause, play and the like, when the media files are subjected to media control, the equipment used by the group owner generates corresponding media control instructions, and the media control instructions are sent to the equipment used by the group members through the server, so that the synchronization of the media control is realized. For example, the currently played media file is a video, the group owner fast-forwards the video, and the group members can find out that the video being watched is automatically fast-forwarded to the corresponding time point without any operation, and start playing from the time point. The devices used by the group members in this group are called member terminals and the devices used by the group owner are called group owner terminals.
When a member terminal (for example, the member terminal 2 shown in fig. 1) does not receive a media control instruction generated by a group owner for some reason, the member terminal sends a media play progress synchronization instruction to a server in order to ensure that the media play progress of the member terminal is synchronized with other members in the group, the server receives the instruction and then obtains the current media play progress of the group owner terminal, generates a play control instruction including the current media play progress, and sends the generated play control instruction to the member terminal, and the member terminal adjusts the media play progress of the member terminal according to the current media play progress of the group owner terminal included in the received play control instruction, so that the current media play progress of the member terminal is consistent with the current media play progress of the group owner terminal.
The invention provides a media playing progress synchronization method, which is applied to a system comprising a server, member terminals and a group master terminal, wherein the member terminals and the group master terminal play the same media file together, when the member terminals want to synchronize the media playing progress, a media playing progress synchronization request is sent to the server, the server acquires the current media playing progress of the group master terminal according to the received request, generates a playing control instruction comprising the current media playing progress of the group master terminal, and sends the playing control instruction to the member terminals, and the member terminals can adjust the media playing progress of the member terminals according to parameters in the playing control instruction after receiving and analyzing the playing control instruction, so that the current media playing progress of the member terminals and the current media playing progress of the group master terminal are kept synchronous.
The following specifically describes the media playing progress synchronization method provided in this embodiment with the server and the member terminal as the execution subjects.
Fig. 2 is a flowchart of a method for synchronizing media playing progress provided in this embodiment, where the method is applied to a server, and as shown in fig. 2, the method may include the following steps:
and S21, receiving a media playing progress synchronization request sent by the member terminal.
The media playing progress synchronization request is a request which can be sent only by the member terminals in the group and is used for adjusting the media playing progress of the user to be consistent with the media playing progress of the group.
And S22, determining the current media playing progress of the group owner terminal belonging to the same group with the member terminal according to the media playing progress synchronization request.
The member terminal wants to adjust the media playing progress of the member terminal to be consistent with the media playing progress of the group, and the media playing progress of the group is controlled by the group owner terminal, so that the current media playing progress of the group owner terminal is the current media playing progress of the group.
And S23, generating a play control instruction containing the current media play progress of the group owner terminal.
The member terminal needs to adjust the media playing progress of the member terminal according to the current media playing progress of the group, so that the acquired current media playing progress of the group owner terminal needs to be added to the playing control instruction and sent to the member terminal as a parameter contained in the playing control instruction.
And S24, sending the broadcast control instruction to the member terminal so that the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the broadcast control instruction, and therefore the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal.
In one possible implementation, the server provides an interface (e.g., playProgress) through which the S24 can send the broadcast control instruction to the member terminal.
In one possible implementation, the broadcast instruction may be as follows:
Figure BDA0002346534740000081
the above-mentioned play control instruction indicates that the group with ID 1111111111 is playing the media file with ID 7777777, wherein the current media play progress of the group owner terminal is playing to 1053 seconds.
After the server sends the broadcast control instruction to the member terminal through the interface, the member terminal can adjust the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the broadcast control instruction by using the built-in player, so that the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal, and the media playing progress is synchronized.
In the method for synchronizing media playing progress provided in this embodiment, the server determines that the member terminal needs to adjust the media playing progress to be consistent with the current media playing progress of the group to which the member terminal belongs when receiving the media playing progress synchronization request sent by the member terminal, the media playing progress of the group is usually adjusted by the group owner in the group using the group owner terminal, that is, the media playing progress of the group owner terminal is the media playing progress of the group, therefore, the current media playing progress of the group owner terminal can be obtained at the moment, the obtained current media playing progress is sent to the member terminal, so that the member terminal can adjust the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal, therefore, the current media playing progress of the member terminal is consistent with the current media playing progress of the group.
In a possible implementation manner, the server receives a media control instruction sent by a group owner terminal, and classifies and stores the received media control instruction according to a group;
as shown in fig. 3, the S22 determining the current media playing progress of the group owner terminal belonging to the same group as the member terminal according to the media playing progress synchronization request may include the following steps:
s221, determining the group to which the member terminal belongs according to the identifier of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request.
In order that the server can determine which group of media playing progress needs to be synchronized according to the content, the media playing progress synchronization request includes the content such as the ID of the group to which the member terminal belongs.
S222, obtaining the media control instruction which belongs to the group and is stored last time.
The media control command sent by the group owner terminal includes the ID of the group to which the group owner terminal belongs, the sending time node of the media control command, the target playing progress, and the ID of the media file currently played by the group owner terminal.
In one possible implementation, the media control instructions may be in json format and may include the following:
Figure BDA0002346534740000091
the type field indicates the message type of the CONTROL instruction, if PLAY _ CONTROL indicates a media CONTROL instruction reported by a group owner, the field can be expanded to support different types of instruction messages; the play _ status structure contains the main information of the media control command, including the group id and the media file id to be synchronized; status denotes a specific operation; progress represents the target playing progress to be reached by the control; the upload _ time represents a transmission time node of the media control instruction, that is, a time node transmitted from a terminal where the group owner is located.
The control of the media control instruction as shown above is intended to start playing by group owner of group _ id-1111111111 group fast-forwarding (status-2) to 1023 seconds of tv _ id-7777777 video when the time node is 23154265345.
In one possible implementation, the server provides an interface (e.g., playControl) for the group owner terminal to call, so that the group owner terminal sends the media control command to the server.
The server stores the received media control instruction, analyzes the media control instruction when storing the media control instruction, so as to obtain the content (such as group ID, media file ID, sending time node, target playing progress and other content) contained in the control instruction, and then stores the media control instruction to the storage position corresponding to the group according to the group ID contained in the media control instruction, thereby realizing the classified storage of the media control instruction according to the group.
Since the server classifies and stores the received media control instructions according to the group, after the group is determined, the server may obtain the corresponding media control instruction from the storage location corresponding to the group, but a plurality of media control instructions belonging to the group may be stored in the same storage location, and at this time, the media control instruction newly stored in the storage location (that is, the media control instruction whose transmission time node is closest to the current time node) may be obtained according to the transmission time node corresponding to the media control instruction.
And S223, acquiring a sending time node and a target playing progress contained in the media control instruction.
S224, calculating the time difference between the current time node and the sending time node of the media control instruction.
This time difference indicates how long it has been since the group owner terminal sent the most recent media control instruction.
And S225, determining the sum of the target playing progress and the time difference as the current media playing progress of the group owner terminal.
Specifically, the current media playing progress of the group owner terminal may be calculated by the following formula:
the current media playing progress is equal to the target playing progress + (current time node-the sending time node of the media control instruction)
For example: the target playing progress is 20 minutes and 20 seconds, the sending time node of the media control instruction is 13 points, 30 minutes and 20 seconds, the current time node is 13 points, 32 minutes and 20 seconds, and then the current media playing progress is 22 minutes and 20 seconds.
The current media playing progress of the group owner terminal is obtained through the method, and the current media playing progress can be obtained through the server, so that interaction with other equipment is not needed, and the method is convenient and rapid.
In a possible implementation manner, in S22, the current media playing progress of the group owner terminal belonging to the same group as the member terminal is obtained according to the media playing progress synchronization request, and how to:
determining the group to which the member terminal belongs according to the identification of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request, determining the group owner terminal in the group according to the member information of the group which is stored in advance, sending a current media playing progress acquisition request to the group owner terminal, and receiving the current media playing progress of the group owner terminal, which is sent by the group owner terminal in response to the current media playing progress acquisition request.
The current media playing progress of the group owner terminal is obtained in the above mode only by sending the response obtaining request to the group owner terminal, and the media control instruction sent by the group owner terminal is not required to be stored, so that the storage space is saved.
Fig. 4 is a flowchart of a method for synchronizing media playing progress according to an embodiment of the present invention, where the method is applied to a member terminal, and as shown in fig. 4, the method may include the following steps:
and S41, the member terminal generates a media playing progress synchronization request.
In order that the server may determine which group's media playing progress needs to be synchronized according to the content, the media playing progress synchronization request may include content such as an ID of a group to which the member terminal belongs.
And S42, sending the media playing progress synchronization request to a server.
S43, receiving a broadcast control instruction sent by the server in response to the media broadcast progress synchronization request.
And S44, adjusting the current media playing progress of the user according to the current media playing progress of the group owner terminal contained in the playing control instruction, so that the current media playing progress of the user is consistent with the current media playing progress of the group owner terminal.
Since the media playing progress of the group is adjusted by the group owner terminal, the media playing progress of the group owner terminal is the media playing progress of the group.
In a possible implementation manner, the member terminal may set an SDK, receive a play instruction sent by the server through the set SDK, and analyze the received play control instruction to obtain a current media play progress of the group owner terminal included in the play control instruction, and the member terminal adjusts its current media play progress according to the current media play progress of the group owner terminal through a built-in player (an audio player or a video player), adjusts its current media play progress to be consistent with the current media play of the group owner terminal, so as to implement synchronization of the media play progress.
In the method for synchronizing media playing progress provided by this embodiment, a member terminal in a group can obtain a playing control instruction including a current media playing progress of a group master terminal in the group, which is responded by a server, by sending a media playing progress synchronization request to the server, and further adjust its own media playing progress according to the playing control instruction, thereby implementing synchronization with the media playing progress of the group.
In a possible implementation manner, the media playing progress synchronization processing is required only when the media playing progress of the member terminal is inconsistent with the media playing progress of the group, so as to avoid frequent sending of media playing progress synchronization requests to the server by the member terminal, on the basis of the media playing progress synchronization method, before the member terminal generates the media playing progress request, the method further comprises the steps of detecting whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs, if not, executing the step of generating the media playing progress request, and if so, not executing the step of generating the media playing progress request.
In a possible implementation manner, a media synchronization button (virtual button or shortcut key, etc.) is preset in the member terminal, and whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs can be detected in the following manner:
and detecting whether a triggering operation, such as a single-click operation or a double-click operation, on the media synchronization button is received.
And if the triggering operation of the media synchronization button is received, determining that the current media playing progress of the member terminal is inconsistent with the current media playing progress of the group to which the member terminal belongs, and otherwise, determining that the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs.
In a possible implementation manner, the member terminal may further send a query request for querying a current media playing progress of the group to which the member terminal belongs to the server, and then determine whether the current media playing progress of the member terminal is consistent with the current media playing progress returned by the server according to the current media playing progress returned by the server, if not, determine that the current media playing progress of the member terminal is inconsistent with the current media playing progress of the group to which the member terminal belongs, otherwise, determine that the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs.
Fig. 5 is a block diagram of a media playing progress synchronization apparatus according to an embodiment of the present invention, where the apparatus is applied to a server, and as shown in fig. 5, the apparatus may include:
a receiving module 501, configured to receive a media playing progress synchronization request sent by a member terminal;
a determining module 502, configured to obtain, according to the media playing progress synchronization request, a current media playing progress of a group owner terminal that belongs to the same group as the member terminal;
an instruction generating module 503, configured to generate a play control instruction including a current media play progress of the group owner terminal;
a sending module 504, configured to send the broadcast control instruction to the member terminal, so that the member terminal adjusts its current media playing progress according to the current media playing progress of the group owner terminal included in the broadcast control instruction, so that the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal.
In a possible implementation manner, the apparatus further includes a storage module, configured to store the received media control commands sent by the group owner terminal in a classified manner according to the group;
the determining module is specifically configured to: determining the group to which the member terminal belongs according to the identification of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request, acquiring a media control instruction which is stored for the last time and belongs to the group, acquiring a sending time node and a target playing progress contained in the media control instruction, calculating a time difference between the current time node and the sending time node of the media control instruction, and taking the sum of the target playing progress and the time difference as the current media playing progress of the group master terminal.
The media playing progress synchronization device provided in the above embodiments has the same effects as the corresponding method embodiments, and is not described herein again.
Fig. 6 is a media playing progress synchronization apparatus according to an embodiment of the present invention, where the apparatus is applied to a member terminal, and as shown in fig. 6, the apparatus may include:
a request generating module 601, configured to generate a media playing progress synchronization request;
a sending module 602, configured to send the media playing progress synchronization request to a server;
a receiving module 603, configured to receive a play control instruction sent by the server in response to the media play progress synchronization request;
the adjusting module 604 is configured to adjust the current media playing progress of the group owner terminal according to the current media playing progress of the group owner terminal included in the playing control instruction, so that the current media playing progress of the group owner terminal is consistent with the current media playing progress of the group owner terminal.
In a possible implementation manner, the apparatus further includes a detection module, configured to detect whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs.
The media playing progress synchronization device provided in the above embodiments has the same effects as the corresponding method embodiments, and is not described herein again.
An embodiment of the present invention further provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the media playing progress synchronization method according to any of the above embodiments.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A media playing progress synchronization method is characterized in that the method is applied to a system, the system comprises a server, member terminals and a group owner terminal, the member terminals and the group owner terminal belong to the same group, and all terminals in the same group play the same media file together;
the media playing progress synchronization method comprises the following steps:
the member terminal sends a media playing progress synchronization request to the server;
the server determines the current media playing progress of the group owner terminal according to the media playing progress synchronization request;
the server sends a play control instruction containing the current media play progress of the group owner terminal to the member terminal;
and the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the playing control instruction so as to make the current media playing progress of the member terminal consistent with the current media playing progress of the group owner terminal.
2. A media playing progress synchronization method is applied to a server, and comprises the following steps:
receiving a media playing progress synchronization request sent by a member terminal;
determining the current media playing progress of the group owner terminal belonging to the same group with the member terminal according to the media playing progress synchronization request;
generating a play control instruction containing the current media play progress of the group owner terminal;
and sending the broadcast control instruction to the member terminal so that the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the broadcast control instruction, and the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal.
3. The method of claim 2, wherein the server stores the received media control commands sent by the group owner terminal in a classified manner according to the group;
determining the current media playing progress of the group owner terminal belonging to the same group with the member terminal according to the media playing progress synchronization request, wherein the method comprises the following steps:
determining the group to which the member terminal belongs according to the identifier of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request;
acquiring the media control instruction which belongs to the group and is stored for the last time;
acquiring a sending time node and a target playing progress contained in the media control instruction;
calculating the time difference between the current time node and the sending time node of the media control instruction;
and determining the sum of the target playing progress and the time difference as the current media playing progress of the group owner terminal.
4. A media playing progress synchronization method is applied to a member terminal, and comprises the following steps:
the member terminal generates a media playing progress synchronization request;
sending the media playing progress synchronization request to a server;
receiving a play control instruction sent by the server in response to the media play progress synchronization request;
and adjusting the current media playing progress of the user according to the current media playing progress of the group owner terminal contained in the playing control instruction so as to make the current media playing progress of the user consistent with the current media playing progress of the group owner terminal.
5. The method of claim 4, wherein before the member terminal generates the media play progress synchronization request, the method further comprises:
detecting whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs;
and if not, executing the step of generating the synchronous request of the media playing progress.
6. A media playing progress synchronization apparatus, applied to a server, the apparatus comprising:
the receiving module is used for receiving a media playing progress synchronization request sent by a member terminal;
a determining module, configured to determine, according to the media playing progress synchronization request, a current media playing progress of a group owner terminal that belongs to the same group as the member terminal;
the instruction generating module is used for generating a broadcast control instruction containing the current media playing progress of the group owner terminal;
and the sending module is used for sending the broadcast control instruction to the member terminal so that the member terminal adjusts the current media playing progress of the member terminal according to the current media playing progress of the group owner terminal contained in the broadcast control instruction, and the current media playing progress of the member terminal is consistent with the current media playing progress of the group owner terminal.
7. The apparatus of claim 6, further comprising a storage module, configured to store the received media control commands sent by the group owner terminal in a classified manner according to the group;
the determining module is specifically configured to:
determining the group to which the member terminal belongs according to the identifier of the group to which the member terminal belongs, which is contained in the media playing progress synchronization request;
acquiring the media control instruction which belongs to the group and is stored for the last time;
acquiring a sending time node and a target playing progress contained in the media control instruction;
calculating the time difference between the current time node and the sending time node of the media control instruction;
and determining the sum of the target playing progress and the time difference as the current media playing progress of the group owner terminal.
8. A media playing progress synchronization device is applied to a member terminal, and the device comprises:
the request generating module is used for generating a media playing progress synchronization request;
the sending module is used for sending the media playing progress synchronization request to a server;
the receiving module is used for receiving a broadcast control instruction sent by the server in response to the media broadcast progress synchronization request;
and the adjusting module is used for adjusting the current media playing progress of the self according to the current media playing progress of the group owner terminal contained in the playing control instruction so as to make the current media playing progress of the self consistent with the current media playing progress of the group owner terminal.
9. The apparatus according to claim 8, further comprising a detection module, configured to detect whether the current media playing progress of the member terminal is consistent with the current media playing progress of the group to which the member terminal belongs.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the media playback progress synchronization method of any one of claims 2-3 or 4-5.
CN201911396781.XA 2019-12-30 2019-12-30 Media playing progress synchronization method and device and storage medium Pending CN111107412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911396781.XA CN111107412A (en) 2019-12-30 2019-12-30 Media playing progress synchronization method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911396781.XA CN111107412A (en) 2019-12-30 2019-12-30 Media playing progress synchronization method and device and storage medium

Publications (1)

Publication Number Publication Date
CN111107412A true CN111107412A (en) 2020-05-05

Family

ID=70425090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911396781.XA Pending CN111107412A (en) 2019-12-30 2019-12-30 Media playing progress synchronization method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111107412A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259041A (en) * 2021-05-08 2021-08-13 广州酷狗计算机科技有限公司 Method, device and storage medium for synchronizing playing progress among multiple terminals
CN114584822A (en) * 2022-03-03 2022-06-03 北京字跳网络技术有限公司 Synchronous playing method, device, terminal equipment and storage medium
CN114697334A (en) * 2022-03-29 2022-07-01 中国工商银行股份有限公司 Execution method and device for scheduling tasks
WO2023185499A1 (en) * 2022-03-31 2023-10-05 北京字跳网络技术有限公司 Multi-user multimedia control method, apparatus and system, and device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533388A (en) * 2013-10-25 2014-01-22 潘伟洲 Method and system for synchronously playing multimedia files
CN103634621A (en) * 2012-08-27 2014-03-12 中兴通讯股份有限公司 Method, apparatuses and system for playing synchronization controlling in video recommendation service
CN104780415A (en) * 2015-03-27 2015-07-15 广州酷狗计算机科技有限公司 Multimedia file playing method and device
CN106231372A (en) * 2016-08-30 2016-12-14 北京奇艺世纪科技有限公司 The synchronous broadcast method of a kind of Online Video and device
CN106303648A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and device synchronizing to play multi-medium data
CN107517399A (en) * 2016-06-16 2017-12-26 腾讯科技(深圳)有限公司 A kind of synchronous method of media information and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634621A (en) * 2012-08-27 2014-03-12 中兴通讯股份有限公司 Method, apparatuses and system for playing synchronization controlling in video recommendation service
CN103533388A (en) * 2013-10-25 2014-01-22 潘伟洲 Method and system for synchronously playing multimedia files
CN104780415A (en) * 2015-03-27 2015-07-15 广州酷狗计算机科技有限公司 Multimedia file playing method and device
CN106303648A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and device synchronizing to play multi-medium data
CN107517399A (en) * 2016-06-16 2017-12-26 腾讯科技(深圳)有限公司 A kind of synchronous method of media information and server
CN106231372A (en) * 2016-08-30 2016-12-14 北京奇艺世纪科技有限公司 The synchronous broadcast method of a kind of Online Video and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259041A (en) * 2021-05-08 2021-08-13 广州酷狗计算机科技有限公司 Method, device and storage medium for synchronizing playing progress among multiple terminals
CN114584822A (en) * 2022-03-03 2022-06-03 北京字跳网络技术有限公司 Synchronous playing method, device, terminal equipment and storage medium
CN114584822B (en) * 2022-03-03 2023-09-15 北京字跳网络技术有限公司 Synchronous playing method and device, terminal equipment and storage medium
CN114697334A (en) * 2022-03-29 2022-07-01 中国工商银行股份有限公司 Execution method and device for scheduling tasks
CN114697334B (en) * 2022-03-29 2023-11-03 中国工商银行股份有限公司 Method and device for executing scheduling task
WO2023185499A1 (en) * 2022-03-31 2023-10-05 北京字跳网络技术有限公司 Multi-user multimedia control method, apparatus and system, and device and medium

Similar Documents

Publication Publication Date Title
CN111107412A (en) Media playing progress synchronization method and device and storage medium
CN110741651B (en) Methods, systems, and media for presenting notifications indicating recommended content
JP6423445B2 (en) Multimedia data reproduction method, apparatus and system
US11412307B2 (en) Interaction information processing method, client, service platform, and storage medium
US20220248077A1 (en) Video projection method, apparatus and device, and storage medium
WO2017193540A1 (en) Method, device and system for playing overlay comment
US9635409B2 (en) Playback device, playback method, and recording medium
US11025967B2 (en) Method for inserting information push into live video streaming, server, and terminal
WO2020010818A1 (en) Video capturing method and apparatus, terminal, server and storage medium
TW201030616A (en) Synchronizing presentation states between multiple applications
WO2017075956A1 (en) Content projection method and mobile terminal
CN107785037B (en) Method, system, and medium for synchronizing media content using audio time codes
WO2015081796A1 (en) Method and device for synchronizing play record between mobile terminal and smart television
US9967296B2 (en) Method and apparatus for playlist synchronization
CN108900855B (en) Live content recording method and device, computer readable storage medium and server
WO2016150273A1 (en) Video playing method, mobile terminal and system
US20170188109A1 (en) Method and electronic device for switching video
CN104933071A (en) Information retrieval method and corresponding device
CN114025180A (en) Game operation synchronization system, method, device, equipment and storage medium
WO2017113855A1 (en) Application program interaction method and terminal
CN104317898B (en) A kind of information processing method and server
US10133408B2 (en) Method, system and computer program product
WO2020010817A1 (en) Video processing method and device, and terminal and storage medium
WO2024056088A1 (en) Live-streaming reservation method and apparatus, and device, medium and product
CN114095793A (en) Video playing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505

RJ01 Rejection of invention patent application after publication