CPC H04N 21/43076 (2020.08) [H04N 21/8547 (2013.01)] | 14 Claims |
11. An apparatus for synchronously playing video among multiple devices, comprising:
a processor; and
a memory including instructions stored thereon;
wherein the instructions are configured to, when the instructions are executed by the processor, implement:
obtaining a first start playback time point of a to-be-played key frame of the video file, in the video file; and
sending, at a first moment, a synchronization instruction to at least one slave device; wherein the synchronization instruction includes indicating that the first start playback time point is a target synchronization time point, the first moment corresponds to a first playback progress time point in the video file, and the first playback progress time point is located before the first start playback time point;
wherein when sending, at a first moment, a synchronization instruction to the at least one slave device, the instructions are configured to, when the instructions are executed by the processor, implement:
determining whether an interval duration between the first playback progress time point in the video file corresponding to a current moment and the first start playback time point is greater than a first preset threshold; if not, taking the current moment as the first moment, and sending the synchronization instruction to the at least one slave device, wherein the interval duration is greater than a preset time duration;
if yes, setting a first timer, wherein a duration of the first timer is less than the interval duration; after the timer expires, re-determining an interval duration between the first playback progress time point in the video file corresponding to a current moment and the first start playback time point.
|