Synchronous playback method, device and computer storage medium
By acquiring and broadcasting the playback status information of terminal devices, establishing shared playback groups and adjusting playback status, the problems of inconvenient control and inconsistent status in multi-person collaborative video viewing are solved, achieving automatic grouping and stable synchronization, and improving access convenience and synchronization consistency.
Patent Information
- Application Number
- CN202611432937.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-17
AI Technical Summary
Existing technologies are inconvenient to control and inconsistent in playback status when multiple people watch videos together, making it difficult to meet the needs of nearby users to quickly establish a shared viewing relationship.
By acquiring and broadcasting the playback status information of terminal devices, a shared playback group is established. Based on the playback status information of each terminal in the group, a reference playback status is determined, and the local playback status is adjusted to achieve synchronization.
It enables automatic grouping and stable synchronization of multiple terminals, reduces manual operation, and improves access convenience, synchronization consistency and system robustness in temporary shared viewing scenarios.
Smart Images

Figure CN123123629A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of playback control technology, and in particular to a synchronous playback method, device, and computer storage medium. Background Technology
[0002] With the widespread adoption of streaming platforms, watching videos on mobile phones, tablets, and other devices has become a daily habit for users. In scenarios such as gatherings with friends or family movie screenings, the demand for multiple people to watch the same video content together is increasing.
[0003] Currently, most solutions require users to manually create a room, send an invitation link, or scan a QR code to join before synchronized viewing can be achieved. They also rely on servers for session management and playback status synchronization. Existing technologies involve numerous steps and are prone to issues such as inconvenient control and inconsistent playback status when multiple users are watching collaboratively, making it difficult to meet the needs of nearby users to quickly establish shared viewing relationships and jointly control playback content. Summary of the Invention
[0004] In view of this, the present invention provides a synchronous playback method, device and computer storage medium, which effectively improves the access convenience, synchronization consistency and system robustness in temporary shared viewing scenarios.
[0005] The first aspect of this invention provides a synchronized playback method, comprising:
[0006] Obtain the playback status information of the first terminal device and broadcast the playback status information of the first terminal device;
[0007] Receive playback status information broadcast by other terminal devices;
[0008] Based on the playback status information of the first terminal device and the playback status information of other terminal devices, at least one second terminal device is determined.
[0009] A shared playback group is established based on the first terminal device and at least one second terminal device;
[0010] Based on the playback status information of each terminal device in the shared playback group, a reference playback status is determined;
[0011] Each terminal device within the shared playback group adjusts its local playback status based on the reference playback status.
[0012] Optionally, the playback status information includes at least a media content identifier and an application identifier. The step of determining at least one second terminal device based on the playback status information of the first terminal device and the playback status information of other terminal devices includes:
[0013] Other terminal devices whose broadcast application identifier is the same as the application identifier of the first terminal device and whose broadcast media content identifier is the same as the media content identifier of the first terminal device are identified as the second terminal device.
[0014] Optionally, establishing a shared playback group based on the first terminal device and at least one second terminal device includes:
[0015] A candidate group is established based on the first terminal device and at least one second terminal device;
[0016] Within a preset time window, continuously receive playback status information broadcast by other terminal devices, and add other terminal devices whose application identifier and media content identifier are the same as the first terminal device to the candidate group;
[0017] In response to the end of the preset time window, the shared playback group is established based on the candidate groups.
[0018] Optionally, the playback status information includes playback progress information, and determining the reference playback status based on the playback status information of each terminal device in the shared playback group includes:
[0019] Based on the playback progress information of each terminal device in the shared playback group, the current average playback progress is determined;
[0020] Based on the current average playback progress and the playback progress information of each terminal device in the shared playback group, a synchronization reference node is determined, and the playback status of the synchronization reference node is determined as the reference playback status.
[0021] Optionally, establishing the shared playback group based on the candidate groups includes:
[0022] Each terminal device in the candidate group generates a candidate group identifier based on the playback status information and local timestamp of the terminal device and broadcasts it in the candidate group;
[0023] Based on all candidate group identifiers, a unique group identifier is determined, and the shared playback group is established based on the unique group identifier.
[0024] Optionally, the synchronized playback method further includes:
[0025] In response to a user operation, any terminal device within the shared playback group generates a playback control command carrying the unique group identifier;
[0026] Broadcast the playback control command in the shared playback group;
[0027] Other terminal devices that receive the playback control command respond to the playback control command and execute the corresponding playback control operation.
[0028] Optionally, the other terminal devices that receive the playback control command respond to the playback control command by executing corresponding playback control operations, including:
[0029] The unique group identifier carried by the playback control command is compared with the unique group identifier stored locally to obtain a comparison result; wherein, if the comparison result shows that the unique group identifier carried by the playback control command is consistent with the unique group identifier stored locally, the playback control operation corresponding to the playback control command is executed.
[0030] Optionally, the synchronized playback method further includes:
[0031] When a terminal device exits playback or playback ends, the terminal device is removed from the shared playback group.
[0032] A second aspect of the present invention provides a synchronized playback device, comprising:
[0033] The first broadcast unit is used to obtain the playback status information of the first terminal device and broadcast the playback status information of the first terminal device.
[0034] The first receiving unit is used to receive playback status information broadcast by other terminal devices;
[0035] A terminal device determining unit is configured to determine at least one second terminal device based on the playback status information of the first terminal device and the playback status information of other terminal devices.
[0036] A group creation unit is used to create a shared playback group based on the first terminal device and at least one second terminal device;
[0037] The reference playback status determination unit is used to determine a reference playback status based on the playback status information of each terminal device in the shared playback group; each terminal device in the shared playback group adjusts its local playback status based on the reference playback status.
[0038] Optionally, the playback status information includes at least a media content identifier and an application identifier, and the terminal device determining unit includes:
[0039] The terminal device determining subunit is used to determine other terminal devices whose broadcast application identifier is the same as the application identifier of the first terminal device and whose broadcast media content identifier is the same as the media content identifier of the first terminal device as the second terminal device.
[0040] Optionally, the group creation unit includes:
[0041] A candidate group establishment unit is configured to establish a candidate group based on the first terminal device and at least one second terminal device.
[0042] The addition unit is used to continuously receive playback status information broadcast by other terminal devices within a preset time window, and add other terminal devices whose application identifier and media content identifier are the same as those of the first terminal device to the candidate group;
[0043] A response unit is used to establish the shared playback group based on the candidate group in response to the end of the preset time window.
[0044] Optionally, the reference playback state determination unit includes:
[0045] The average playback progress determination unit is used to determine the current average playback progress based on the playback progress information of each terminal device in the shared playback group.
[0046] The synchronization reference node determination unit is used to determine the synchronization reference node based on the current average playback progress and the playback progress information of each terminal device in the shared playback group, and to determine the playback status of the synchronization reference node as the reference playback status.
[0047] Optionally, when the response unit is used to establish the shared playback group based on the candidate groups, it includes:
[0048] The candidate group identifier generation unit is used to generate candidate group identifiers based on the playback status information and local timestamp of the terminal device and broadcast them in the candidate groups;
[0049] The unique group identifier determination unit is used to determine a unique group identifier based on all candidate group identifiers, and to establish the shared playback group based on the unique group identifier.
[0050] Optionally, the synchronized playback device further includes:
[0051] A playback control instruction generation unit is used to generate playback control instructions carrying the unique group identifier in response to user operations.
[0052] The second broadcast unit is used to broadcast the playback control instructions in the shared playback group;
[0053] The second receiving unit is used for other terminal devices that receive the playback control command to respond to the playback control command and execute the corresponding playback control operation.
[0054] Optionally, the second receiving unit includes:
[0055] The comparison unit is used to compare the unique group identifier carried by the playback control instruction with the locally stored unique group identifier to obtain a comparison result; wherein, if the comparison result shows that the unique group identifier carried by the playback control instruction is consistent with the locally stored unique group identifier, then the playback control operation corresponding to the playback control instruction is executed.
[0056] Optionally, the synchronized playback device further includes:
[0057] The removal unit is used to remove the terminal device from the shared playback group when the terminal device exits playback or when playback ends.
[0058] A third aspect of the present invention provides an electronic device, comprising:
[0059] One or more processors;
[0060] A storage device on which one or more programs are stored;
[0061] When the one or more programs are executed by the one or more processors, the one or more processors implement the synchronous playback method as described in any one of the first aspects.
[0062] A fourth aspect of the present invention provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the synchronous playback method as described in any one of the first aspects.
[0063] As can be seen from the above scheme, the present invention provides a synchronous playback method, device, and computer storage medium. It acquires and broadcasts playback status information of a first terminal device, while simultaneously receiving playback status information broadcast by other terminal devices, enabling each terminal to directly perceive the actual playback status of each other. Based on the playback status of the first terminal and other terminals, at least one second terminal is determined, and a shared playback group is established accordingly. This combines member discovery and group formation with the current playback status, reducing the need for manual group creation, invitations, or QR code scanning. After the group is established, a reference playback status is determined by comprehensively considering the playback status information of each terminal within the group, rather than using a fixed preset terminal status. Therefore, the impact of abnormal status, exit, or significant deviation of a single terminal on overall synchronization can be reduced. Subsequently, each terminal adjusts its local playback status according to the reference playback status, gradually converging playback progress and states such as play and pause. Thus, while weakening the dependence on a central server or fixed control node, it achieves automatic grouping and stable synchronization of multiple terminals, effectively reducing playback deviations between terminals and improving access convenience, synchronization consistency, and system robustness in temporary shared viewing scenarios. Attached Figure Description
[0064] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0065] Figure 1 A flowchart of a synchronized playback method provided in an embodiment of the present invention;
[0066] Figure 2 This is a schematic diagram of a synchronous playback device provided in another embodiment of the present invention. Detailed Implementation
[0067] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0068] It should be noted that the concepts of "first," "second," etc., mentioned in this invention are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0069] This invention provides a method for synchronized playback, such as... Figure 1 As shown, the specific steps include:
[0070] S101. Obtain the playback status information of the first terminal device and broadcast the playback status information of the first terminal device.
[0071] The terminal device can be a smartphone, tablet, smart wearable device, smart TV, etc., and there are no restrictions here.
[0072] In practical applications of this invention, the terminal device possesses short-range wireless communication capabilities, such as Wi-Fi, Bluetooth, and IP-based wireless communication. Playback status information refers to relevant data characterizing the current streaming media playback status of the terminal device.
[0073] Optionally, the playback status information includes at least an application identifier (APP identifier) and a media content identifier (MediaID). The application identifier uniquely identifies the currently running and playing streaming media application; it can be, for example, the application package name or a custom identification string. The media content identifier uniquely identifies the media content currently being played on the terminal device; it can be, for example, a unique ID or hash value of the video content. Furthermore, the playback status information may also include current playback progress information (e.g., the duration played, in seconds), playback speed (e.g., 1.0x, 1.5x, etc.), and playback status (e.g., playing, paused, speed setting, bullet comment setting, etc.).
[0074] In one embodiment of the present invention, when a first terminal device is running a streaming media playback application and playing certain media content, it periodically transmits device broadcast information to the outside world via near-field wireless communication. The broadcast information carries at least the aforementioned application identifier, media content identifier, and current playback progress information. The broadcast period can be set according to the actual application scenario, for example, broadcasting once every 500 milliseconds or once every second, to ensure that nearby devices can promptly detect and identify this device. The transmission of the broadcast information can be implemented based on the multicast or broadcast mechanism of the User Datagram Protocol (UDP), or based on the Bluetooth Low Energy (BLE) broadcast channel; the present invention does not specifically limit this.
[0075] S102, Receive playback status information broadcast by other terminal devices.
[0076] Other terminal devices refer to other user terminal devices located within the short-range wireless communication coverage of the first terminal device, which also run streaming media applications and are playing media content. These devices broadcast their playback status information at the same or similar intervals as the first terminal device.
[0077] In practical application of this invention, the first terminal device continuously monitors and receives broadcast information from other surrounding terminal devices through its near-field wireless communication module. The received broadcast information includes playback status information such as application identifiers, media content identifiers, and playback progress information of other terminal devices.
[0078] Optionally, in another embodiment of the present invention, the first terminal device may store the received playback status information in a local cache for subsequent device filtering and group creation, which is not limited here.
[0079] S103. Based on the playback status information of the first terminal device and the playback status information of other terminal devices, determine at least one second terminal device.
[0080] Specifically, other terminal devices that broadcast the same application identifier as the first terminal device and broadcast the same media content identifier as the first terminal device are identified as the second terminal devices.
[0081] In another embodiment of the present invention, when the first terminal device receives broadcast information from other surrounding terminal devices, it first compares whether the application identifier broadcast by the other party is consistent with the application identifier of its own device. If they are inconsistent, it indicates that the two parties are not running the same streaming media playback application and do not have the basis for collaborative playback, so the broadcast information is ignored. If the application identifiers are consistent, it further compares whether the media content identifier broadcast by the other party is consistent with the media content identifier of its own device. If they are consistent, it indicates that the two parties are playing the same media content (e.g., the same video source), and it is determined that the other party is the second terminal device.
[0082] S104. Establish a shared playback group based on the first terminal device and at least one second terminal device.
[0083] Among them, the shared playback group refers to a logical group composed of a first terminal device and at least one second terminal device, used to realize synchronous playback and collaborative control of streaming media.
[0084] In the practical application of this invention, a shared playback group can be directly established based on a first terminal device and at least one second terminal device, or a preset time window can be set to continuously wait for other second terminal devices that meet the conditions within the preset time window. Specifically, the following steps are included (steps A1 to A3):
[0085] Step A1: Establish a candidate group based on the first terminal device and at least one second terminal device.
[0086] Among them, the candidate group is a temporary, not yet finalized set of groups used to collect more eligible terminal devices within a preset time window.
[0087] Step A2: Within a preset time window, continuously receive playback status information broadcast by other terminal devices, and add other terminal devices whose application identifier and media content identifier are the same as those of the first terminal device to the candidate group.
[0088] The length of the preset time window can be set according to actual needs, such as 3 seconds or 5 seconds.
[0089] The purpose of setting a time window is to give more surrounding terminal devices the opportunity to be discovered and join, and to avoid omissions due to asynchronous device broadcast cycles.
[0090] Step A3: In response to the end of the preset time window, a shared playback group is created based on the candidate groups.
[0091] Specifically, once the preset time window expires, the member set of the candidate group is fixed, and no new devices are accepted. At this point, the first terminal device and all the second terminal devices in the candidate group constitute the shared playback group.
[0092] Optionally, in another embodiment of the present invention, one implementation of establishing a shared playback group based on candidate groups specifically includes the following steps (steps A31 to A33):
[0093] Step A31: Each terminal device in the candidate group generates a candidate group identifier based on the terminal device's playback status information and local timestamp, and broadcasts it in the candidate group.
[0094] Specifically, each terminal device concatenates its application identifier, media content identifier, and current local timestamp into a string, and then calculates the hash value using a hash algorithm (such as MD5, SHA-1, or SHA-256), which serves as the candidate group identifier generated by that terminal device.
[0095] It should be noted that the introduction of local timestamps allows different terminal devices to generate different candidate group identifiers even with the same application identifier and media content identifier, thus providing a basis for the subsequent determination of unique group identifiers.
[0096] Optionally, in another embodiment of the present invention, the candidate group identifier, along with the local timestamp and the device unique identifier (SN, such as device serial number or MAC address), can be broadcast together within the candidate group, further providing a basis for the subsequent determination of the unique group identifier.
[0097] Step A32: Determine a unique group identifier based on all candidate group identifiers.
[0098] In practical applications of this invention, the selection can be based on, but is not limited to, the principle of minimum timestamp priority: each terminal device compares the timestamps corresponding to all received candidate group identifiers and selects the candidate group identifier with the smallest timestamp as the final group identifier, i.e., the unique group identifier. When multiple candidate group identifiers have the same timestamp, they are further sorted by the device's unique identifier (SN), for example, selecting the candidate group identifier generated by the device with the smallest SN value or the one listed first in lexicographical order as the final group identifier. Through this mechanism, all terminal devices in the candidate group can reach a consensus on the unique group identifier without relying on any central node for coordination.
[0099] Step A33: Establish a shared playback group based on a unique group identifier.
[0100] In the actual application of this invention, each terminal device in the candidate group uniformly saves the unique group identifier and establishes a shared playback group based on the unique group identifier.
[0101] In subsequent applications, this unique group identifier will serve as the identity credential for the shared playback group, used for subsequent control command verification and group management.
[0102] S105. Determine the reference playback status based on the playback status information of each terminal device in the shared playback group.
[0103] The reference playback status refers to the baseline status information used by each terminal device within the shared playback group to align playback progress and status. Each terminal device adjusts its local playback status based on the reference playback status, thereby achieving synchronized playback across multiple terminals.
[0104] Optionally, the reference playback status includes at least playback progress information. In another embodiment of the present invention, one implementation of step S105 specifically includes the following steps (steps B1 to B3):
[0105] Step B1: Determine the current average playback progress based on the playback progress information of each terminal device in the shared playback group.
[0106] Specifically, each terminal device in the shared playback group reports its current playback progress (in seconds) to all terminal devices in the shared playback group. After receiving the playback progress of all other terminal devices, each terminal device calculates the average playback progress of all devices in the shared playback group to obtain the current average playback progress of the group.
[0107] Step B2: Determine the synchronization reference node based on the current average playback progress and the playback progress information of each terminal device in the shared playback group.
[0108] Specifically, each terminal device calculates the deviation (e.g., the absolute value of the difference) between its own playback progress and the group's average playback progress, while also receiving deviation information broadcast by other terminal devices. Through comparison, each terminal device selects the one with the smallest deviation as the synchronization reference node.
[0109] Optionally, in another embodiment of the present invention, when multiple terminal devices have the same deviation value, they can be further sorted by their unique identifier SN, and one of them can be selected as a synchronization reference node.
[0110] Step B3: Determine the playback status of the synchronization reference node as the reference playback status.
[0111] Among them, the playback status of the synchronous reference node is determined as the reference playback status, including its playback progress, playback speed, play / pause status, bullet screen settings, speed adjustment settings, etc., which are not limited here.
[0112] By selecting the terminal device whose playback progress is closest to the average level of the shared playback group as the synchronization reference node through the above-described method, the present invention can minimize the total amplitude of the synchronization adjustment of the shared playback group, thereby improving the efficiency and smoothness of synchronization convergence.
[0113] S106. Each terminal device in the shared playback group adjusts its local playback status based on the reference playback status.
[0114] In the actual application of this invention, other terminal devices in the shared playback group, excluding the synchronization reference node, adjust their local playback progress based on the difference between the reference playback progress in the reference playback status and their own current playback progress after determining the reference playback status.
[0115] Specifically, if the current playback progress of a terminal device lags behind the reference playback progress, the terminal device will perform a fast-forward operation, jumping the playback progress forward to the reference playback progress; if the current playback progress is ahead of the reference playback progress, the terminal device will perform a rewind operation, jumping the playback progress backward to the reference playback progress. After the adjustment is completed, the playback progress of all terminal devices in the group will converge to the same level, thereby achieving synchronous playback of streaming media content across multiple terminals.
[0116] In addition, if the reference playback status also includes information such as playback speed or playback status (play / pause), other terminal devices will adjust their own playback speed and playback status to match the reference playback status to ensure that all terminal devices in the group are completely synchronized in terms of playback rhythm and play / pause status.
[0117] If the reference playback status also includes personalized settings such as bullet comments, then a prompt message can be generated to ask the user whether to synchronize the personalized settings such as bullet comments to the personalized settings corresponding to the synchronized reference node. This is not limited here.
[0118] To more clearly illustrate the solution of the present invention, the synchronous playback method provided by the present invention will be further explained using the specific interaction process of multiple terminal devices as an example.
[0119] Suppose there are multiple terminal devices in the system, such as user A's mobile phone, user B's tablet, and user C's mobile phone. All three have the same streaming media playback application (hereinafter referred to as software A) installed and are on the same local area network or within the range of short-range wireless communication. Currently, all three devices are playing the same video content "X" through software A.
[0120] The first step is to send device broadcast information. Each terminal device periodically sends device broadcast information through software client A. For example, user A's mobile terminal broadcasts information containing the application identifier (e.g., "ABCD"), media content identifier (e.g., "GS2026EP01"), and current playback progress (e.g., 600 seconds); user B's tablet terminal broadcasts information containing the application identifier "ABCD", media content identifier "GS2026EP01", and current playback progress (e.g., 605 seconds); user C's mobile terminal broadcasts information containing the application identifier "ABCD", media content identifier "GS2026EP01", and current playback progress (e.g., 615 seconds).
[0121] The second step is proximity device identification. After receiving information broadcast by other devices, the proximity device discovery module of each terminal device filters out terminal devices running software A and playing "X". For example, after receiving broadcast information from users B and C, user A's mobile terminal compares the information and finds that the three have the same application identifier and the same media content identifier. Therefore, user B's tablet terminal and user C's mobile terminal are added to the candidate group set.
[0122] The third step is to initialize the time window control. Once the system detects at least two terminal devices that meet the criteria, it initiates group initialization with a preset time window (e.g., set to 5 seconds). Within this preset time window, new terminal devices currently playing "X" are allowed to be added to the candidate set. If any new device that meets the criteria is detected during this period, it will also be added to the candidate group.
[0123] The fourth step is the end of the time window and the determination of the unique group identifier. After the preset time window ends, each terminal device calculates the candidate group identifier based on the application identifier, media content identifier, and local timestamp.
[0124] For example: User A's mobile terminal has an application identifier of "ABCD", a media content identifier of "GS2026EP01", a local timestamp of 20260601190001, and a terminal device SN of SN001. Then, the calculated GroupID-A = Hash("ABCD" + "GS2026EP01" + "20260601190001").
[0125] User B's tablet terminal has an application identifier of "ABCD", a media content identifier of "GS2026EP01", a local timestamp of 20260601190003, and a device SN of SN002. Therefore, the calculated GroupID-B is Hash("ABCD"+"GS2026EP01"+"20260601190003").
[0126] User C's mobile terminal has an application identifier of "ABCD", a media content identifier of "GS2026EP01", a local timestamp of 20260601190002, and a device SN of SN003. Therefore, the calculated GroupID-C = Hash("ABCD" + "GS2026EP01" + "20260601190002").
[0127] Each terminal device broadcasts its generated candidate group identifier along with its timestamp and serial number (SN) within the candidate group. Upon receiving candidate group identifiers from other devices, each device selects the earliest generated candidate group identifier as its unique group identifier, based on the principle of minimum timestamp priority. Since user A's timestamp is the earliest (20260601190001), all devices select GroupID-A as the final group identifier. Users B and C discard their locally generated GroupID-B and GroupID-C, uniformly saving GroupID-A as their unique group identifier. Thus, the three devices internally maintain a consistent unique group identifier and enter the same shared playback group.
[0128] Step 5: Master Control Node Election and Playback Synchronization. After the group is established, each terminal device reports its current playback progress information for "X". Each device calculates the average playback progress of the group as (600+605+615) / 3=606.67 seconds. User A's phone has a deviation of |600-606.67|=6.67 seconds, User B's tablet has a deviation of |605-606.67|=1.67 seconds, and User C's phone has a deviation of |615-606.67|=8.33 seconds. Since User B's tablet has the smallest deviation, each device determines User B's tablet as the synchronization reference node (equivalent to the master control node) through comparison, using its current playback progress of 605 seconds as the initial baseline playback duration, i.e., the reference playback state.
[0129] Subsequently, User A's mobile phone and User C's mobile phone receive the reference playback status broadcast by User B's tablet. User A's mobile phone adjusts the playback progress from 600 seconds to 605 seconds, and User C's mobile phone adjusts the playback progress from 615 seconds to 605 seconds. The playback progress of the three devices converges to the same level, achieving synchronized playback.
[0130] Optionally, in another embodiment of the present invention, one implementation of the synchronized playback method further includes the following steps (steps C1 to C3):
[0131] Step C1: Any terminal device within the shared playback group responds to the user's operation and generates a playback control command carrying a unique group identifier.
[0132] User operations include, but are not limited to, play, pause, fast forward, rewind, and speed adjustment, etc., which are not limited here.
[0133] In the practical application of this invention, the playback control instruction refers to a control message with a unified data format that encapsulates the above-mentioned user operations. This instruction carries at least a unique group identifier and a control command type (e.g., "pause", "resume", "seek forward 30s", "seek backward 10s", "set speed 1.5x", etc.), and may further carry control parameters (e.g., fast forward duration, speed multiplier value, etc.), which are not limited here.
[0134] Step C2: Broadcast playback control commands in the shared playback group.
[0135] Step C3: Other terminal devices that receive the playback control command respond to the playback control command and execute the corresponding playback control operation.
[0136] For example, when user A pauses playback on their mobile phone, the phone responds by generating a playback control command carrying a unique group identifier and a pause command, and then broadcasts this command to all devices in the group via the group broadcast channel. Upon receiving this control command, user B's tablet and user C's mobile phone parse the command content, identify that the unique group identifier matches the locally stored unique group identifier, and then execute the pause operation, thus synchronously pausing playback on all devices in the group.
[0137] If a terminal device receives a playback control command and verifies that the unique group identifier carried in the command does not match the locally stored unique group identifier, the command will be ignored and not executed. This mechanism effectively prevents playback control commands from different groups from interfering with each other.
[0138] It should be noted that the synchronization control mechanism in this invention does not restrict the device that initiates the playback control command. Any terminal device within the group has the right to initiate control operations, thus realizing the joint control of the playback content by group members.
[0139] Optionally, in another embodiment of the present invention, the above control mechanism is also applicable to screen casting scenarios. That is, when a member in the group casts media content to a large-screen device (such as a smart TV), other members in the group can still control the cast content in the above manner.
[0140] Optionally, in another embodiment of the present invention, when user C casts "X" to a smart TV via software A, the system establishes a mapping relationship between the shared media session and the TV device. After the casting is established, other terminal devices in the shared playback group can still initiate control operations on "X" normally, and these operations are broadcast synchronously to the TV for execution.
[0141] For example, user A performs a "fast forward 30 seconds" operation on their mobile phone. The phone generates a control event carrying a unique group identifier and the fast forward command, and broadcasts it to the group. When user C's corresponding terminal device on the TV receives this control event, verifies the unique group identifier, and forwards or applies the control command to the TV, the TV simultaneously performs the fast forward operation and updates the playback screen. This enables collaborative control of the same projected content by multiple users.
[0142] Optionally, in another embodiment of the present invention, one implementation of the synchronized playback method further includes a group exit and disbanding process.
[0143] When a terminal device exits software A and plays "X" or the playback ends, the terminal device is automatically removed from the shared playback group.
[0144] Optionally, in another embodiment of the present invention, the terminal device may broadcast an exit message to the shared playback group, or the terminal device may be removed from the group by other terminal devices after detecting that the terminal device is no longer broadcasting playback status information through a heartbeat timeout mechanism. This is not limited here.
[0145] Optionally, in another embodiment of the present invention, when the number of valid members in the group is less than a preset threshold (e.g., less than 2), the system automatically disbands the current shared playback group, releasing the group identifier and related resources. Through the above-described exit and disbandment mechanism, automatic management of the shared playback group's lifecycle is achieved, avoiding the long-term existence of invalid groups.
[0146] Through the above implementation methods, in the scenario of playing "X" in software A, the automatic discovery and automatic networking of nearby terminal devices, the synchronous control of the playback status of multiple terminals, and the group collaborative control in the screen projection scenario are realized, thereby realizing the ability to complete the synchronous viewing and interactive control of multiple people without the need for manual group creation.
[0147] As can be seen from the above scheme, the present invention provides a synchronous playback method that acquires and broadcasts the playback status information of a first terminal device, while simultaneously receiving playback status information broadcast by other terminal devices, enabling each terminal to directly perceive the actual playback status of each other. Based on the playback status of the first terminal and other terminals, at least one second terminal is determined, and a shared playback group is established accordingly. This combines member discovery and group formation with the current playback status, reducing the need for manual group creation, invitations, or QR code scanning. After the group is established, a reference playback status is determined by comprehensively considering the playback status information of each terminal within the group, rather than using a fixed preset terminal status. Therefore, the impact of abnormal status, exit, or significant deviation of a single terminal on overall synchronization can be reduced. Subsequently, each terminal adjusts its local playback status according to the reference playback status, gradually converging the playback progress and playback / pause states. Thus, while weakening the dependence on a central server or fixed control node, it achieves automatic grouping and stable synchronization of multiple terminals, effectively reducing playback deviations between terminals and improving access convenience, synchronization consistency, and system robustness in temporary shared viewing scenarios.
[0148] Another embodiment of the present invention provides a synchronous playback device, such as... Figure 2 As shown, it specifically includes:
[0149] The first broadcast unit 201 is used to obtain the playback status information of the first terminal device and broadcast the playback status information of the first terminal device.
[0150] The first receiving unit 202 is used to receive playback status information broadcast by other terminal devices.
[0151] The terminal device determination unit 203 is used to determine at least one second terminal device based on the playback status information of the first terminal device and the playback status information of other terminal devices.
[0152] Group creation unit 204 is used to create a shared playback group based on a first terminal device and at least one second terminal device.
[0153] The reference playback status determination unit 205 is used to determine the reference playback status based on the playback status information of each terminal device in the shared playback group; each terminal device in the shared playback group adjusts its local playback status based on the reference playback status.
[0154] For details on the specific operation of the units disclosed in the above embodiments of the present invention, please refer to the corresponding method embodiments, such as... Figure 1 As shown, it will not be elaborated further here.
[0155] Optionally, in another embodiment of the present invention, the playback status information includes at least a media content identifier and an application identifier. One implementation of the terminal device determining unit 203 includes:
[0156] The terminal device determination subunit is used to determine other terminal devices whose broadcast application identifier is the same as the application identifier of the first terminal device and whose broadcast media content identifier is the same as the media content identifier of the first terminal device as the second terminal device.
[0157] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0158] Optionally, in another embodiment of the present invention, one implementation of the group establishment unit 204 includes:
[0159] A candidate group establishment unit is used to establish candidate groups based on a first terminal device and at least one second terminal device.
[0160] The joining unit is used to continuously receive playback status information broadcast by other terminal devices within a preset time window, and to add other terminal devices whose application identifier and media content identifier are the same as those of the first terminal device to the candidate group.
[0161] The response unit is used to establish a shared playback group based on the candidate group in response to the end of the preset time window.
[0162] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0163] Optionally, in another embodiment of the present invention, one implementation of the reference playback state determination unit 205 includes:
[0164] The average playback progress determination unit is used to determine the current average playback progress based on the playback progress information of each terminal device in the shared playback group.
[0165] The synchronization reference node determination unit is used to determine the synchronization reference node based on the current average playback progress and the playback progress information of each terminal device in the shared playback group, and to determine the playback status of the synchronization reference node as the reference playback status.
[0166] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0167] Optionally, in another embodiment of the present invention, one implementation of the response unit for establishing a shared playback group based on candidate groups includes:
[0168] The candidate group identifier generation unit is used to generate candidate group identifiers based on the playback status information and local timestamp of the terminal device and broadcast them in the candidate group.
[0169] The unique group identifier determination unit is used to determine a unique group identifier based on all candidate group identifiers, and to establish a shared playback group based on the unique group identifier.
[0170] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0171] Optionally, in another embodiment of the present invention, one implementation of the synchronized playback device further includes:
[0172] The playback control instruction generation unit is used to generate playback control instructions carrying a unique group identifier in response to user operations.
[0173] The second broadcast unit is used to broadcast playback control commands in the shared playback group.
[0174] The second receiving unit is used for other terminal devices that receive playback control instructions to respond to the playback control instructions and execute the corresponding playback control operations.
[0175] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0176] Optionally, in another embodiment of the present invention, one implementation of the second receiving unit further includes:
[0177] The comparison unit is used to compare the unique group identifier carried by the playback control command with the unique group identifier stored locally to obtain the comparison result.
[0178] If the comparison result shows that the unique group identifier carried by the playback control command is consistent with the unique group identifier stored locally, then the playback control operation corresponding to the playback control command is executed.
[0179] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0180] As can be seen from the above scheme, the present invention provides a synchronous playback device that acquires and broadcasts the playback status information of a first terminal device, while simultaneously receiving playback status information broadcast by other terminal devices, enabling each terminal to directly perceive the actual playback status of each other. Based on the playback status of the first terminal and other terminals, at least one second terminal is determined, and a shared playback group is established accordingly. This combines member discovery and group formation with the current playback status, reducing the need for manual group creation, invitations, or QR code joining. After the group is established, a reference playback status is determined by comprehensively considering the playback status information of each terminal within the group, rather than using a fixed preset terminal status. Therefore, the impact of abnormal status, exit, or significant deviation of a single terminal on overall synchronization can be reduced. Subsequently, each terminal adjusts its local playback status according to the reference playback status, gradually converging the playback progress and playback / pause states. Thus, while weakening the dependence on a central server or fixed control node, it achieves automatic grouping and stable synchronization of multiple terminals, effectively reducing playback deviations between terminals and improving access convenience, synchronization consistency, and system robustness in temporary shared viewing scenarios.
[0181] Another embodiment of the present invention provides an electronic device, comprising:
[0182] One or more processors.
[0183] A storage device on which one or more programs are stored.
[0184] When the one or more programs are executed by the one or more processors, the one or more processors implement the synchronous playback method as described in the above embodiments.
[0185] Another embodiment of the present invention provides a computer storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the synchronous playback method as described in the above embodiments.
[0186] In the context of this invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0187] It should be noted that the computer-readable medium described above in this invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0188] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0189] Another embodiment of the present invention provides a computer program product, which, when executed, is used to perform the above-described synchronous playback method.
[0190] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined in the methods of the embodiments of the present invention.
[0191] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in this invention is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms for implementing the invention.
[0192] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of the invention. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0193] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention is not limited to the specific combination of the above-described technical features, but also includes other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with technical features of the present invention (but not limited to) that have similar functions.
Claims
1. A method for synchronized playback, characterized in that, include: Obtain the playback status information of the first terminal device and broadcast the playback status information of the first terminal device; Receive playback status information broadcast by other terminal devices; Based on the playback status information of the first terminal device and the playback status information of other terminal devices, at least one second terminal device is determined. A shared playback group is established based on the first terminal device and at least one second terminal device; Based on the playback status information of each terminal device in the shared playback group, a reference playback status is determined; Each terminal device within the shared playback group adjusts its local playback status based on the reference playback status.
2. The synchronized playback method according to claim 1, characterized in that, The playback status information includes at least a media content identifier and an application identifier. The step of determining at least one second terminal device based on the playback status information of the first terminal device and the playback status information of other terminal devices includes: Other terminal devices whose broadcast application identifier is the same as the application identifier of the first terminal device and whose broadcast media content identifier is the same as the media content identifier of the first terminal device are identified as the second terminal device.
3. The synchronized playback method according to claim 2, characterized in that, The establishment of a shared playback group based on the first terminal device and at least one second terminal device includes: A candidate group is established based on the first terminal device and at least one second terminal device; Within a preset time window, continuously receive playback status information broadcast by other terminal devices, and add other terminal devices whose application identifier and media content identifier are the same as the first terminal device to the candidate group; In response to the end of the preset time window, the shared playback group is established based on the candidate groups.
4. The synchronized playback method according to claim 1, characterized in that, The playback status information includes playback progress information. Determining a reference playback status based on the playback status information of each terminal device in the shared playback group includes: Based on the playback progress information of each terminal device in the shared playback group, the current average playback progress is determined; Based on the current average playback progress and the playback progress information of each terminal device in the shared playback group, a synchronization reference node is determined, and the playback status of the synchronization reference node is determined as the reference playback status.
5. The synchronized playback method according to claim 3, characterized in that, The step of establishing the shared playback group based on the candidate groups includes: Each terminal device in the candidate group generates a candidate group identifier based on the playback status information and local timestamp of the terminal device and broadcasts it in the candidate group; Based on all candidate group identifiers, a unique group identifier is determined, and the shared playback group is established based on the unique group identifier.
6. The synchronized playback method according to claim 5, characterized in that, Also includes: In response to a user operation, any terminal device within the shared playback group generates a playback control command carrying the unique group identifier; Broadcast the playback control command in the shared playback group; Other terminal devices that receive the playback control command respond to the playback control command and execute the corresponding playback control operation.
7. The synchronized playback method according to claim 6, characterized in that, The other terminal devices that receive the playback control command respond to the playback control command by executing corresponding playback control operations, including: The unique group identifier carried by the playback control command is compared with the unique group identifier stored locally to obtain a comparison result; wherein, if the comparison result shows that the unique group identifier carried by the playback control command is consistent with the unique group identifier stored locally, the playback control operation corresponding to the playback control command is executed.
8. The synchronized playback method according to claim 1, characterized in that, Also includes: When a terminal device exits playback or playback ends, the terminal device is removed from the shared playback group.
9. A synchronized playback device, characterized in that, include: The first broadcast unit is used to obtain the playback status information of the first terminal device and broadcast the playback status information of the first terminal device. The first receiving unit is used to receive playback status information broadcast by other terminal devices; A terminal device determining unit is configured to determine at least one second terminal device based on the playback status information of the first terminal device and the playback status information of other terminal devices. A group creation unit is used to create a shared playback group based on the first terminal device and at least one second terminal device; The reference playback status determination unit is used to determine a reference playback status based on the playback status information of each terminal device in the shared playback group; each terminal device in the shared playback group adjusts its local playback status based on the reference playback status.
10. A computer storage medium, characterized in that, It stores a computer program, wherein the computer program, when executed by a processor, implements the synchronous playback method as described in any one of claims 1 to 8.
