Synchronized Video Playback Using First-Frame Overlay Timing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video playback technologies fail to synchronize video playback accurately between master and slave devices due to differing loading times, resulting in a jagged viewing experience.
Innovation Solution
A method involving the generation of a to-be-played video by splicing the beginning of the last frame video at the end of the original video, creating a top picture layer, and synchronizing playback based on time synchronization between devices using user datagram protocol signals to ensure synchronized playback.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If video playback is started immediately on slave devices, then playback can begin without delay, but synchronization with master device cannot be achieved due to differing loading times
Solution Approach 1:
The system performs preliminary actions by pre-loading the first frame picture and to-be-played video data onto slave playback devices before actual playback begins. This advance preparation ensures that when playback is triggered, all devices have the necessary data ready, eliminating synchronization delays caused by varying loading times during actual playback.
Solution Approach 2:
The system introduces a central server as an intermediary that coordinates playback between master and slave devices. The server manages data distribution, timing coordination, and synchronization state maintenance, acting as a mediator that resolves the conflict between immediate playback initiation and synchronized playback across multiple devices with different processing speeds.
2Reliability
If video data is loaded in advance on slave devices, then playback synchronization can be achieved, but data loading time and system complexity increase
Solution Approach 1:
The video data is segmented into critical components (first frame picture and to-be-played video data) that are loaded in advance, while other portions are loaded during playback. This segmentation allows the system to prioritize loading only the essential data needed for synchronized playback start, reducing overall data loading time while maintaining synchronization reliability.
Solution Approach 2:
The system performs preliminary loading of only the essential first frame picture and to-be-played video data before playback begins, rather than loading the entire video. This selective preliminary action minimizes the time loss associated with advance data loading while ensuring that the critical data needed for synchronization is ready in advance.
3Ease of operation
If the original video is played directly, then playback is simple, but the video ends abruptly without proper closure
Solution Approach 1:
The system merges the original video with a spliced segment (first frame picture and to-be-played video data) to create an enhanced playback sequence. This combination maintains the simplicity of playing the original video while adding the necessary closure elements, achieving both ease of operation and playback completeness through a unified playback process.
Solution Approach 2:
The spliced video data (first frame picture and to-be-played portion) is prepared in advance and appended to the original video. This preliminary preparation of closure data allows the video to play back seamlessly with proper closure without requiring complex real-time processing, maintaining operational simplicity while ensuring playback completeness.
Data Source
AI summary
The present disclosure relates to a method and apparatus for synchronously playing a video, and a storage medium and an electronic device. The method includes: obtaining a first frame picture and a to-be-played video, wherein the first frame picture corresponds to an original video, and the to-be-played video is generated by splicing a beginning of a last frame video corresponding to the original video at an end of the original video; receiving a video playback instruction sent by a master playback device, creating a top picture layer, and rendering the first frame picture to the top picture layer; and when a playback time carried in the video playback instruction is reached, hiding the top picture layer, and synchronously playing the to-be-played video based on a time synchronization state with the master playback device.


