Method and apparatus for synchronizing video live broadcast
Abstract
The present invention relates to a method for synchronizing video live broadcast. In the present invention, a video stream synchronization request is sent to a network side device; a video stream playback position synchronization parameter sent by the network side device is received, where the video stream playback position synchronization parameter includes a playback position parameter at a video stream sending moment and a system frame number SFN at the video stream sending moment; an SFN at a video stream receiving moment is acquired; and the playback position parameter at the video stream sending moment is adjusted according to the SFN at the video stream sending moment and the SFN at the video stream receiving moment, so as to coincide with a current playback position parameter of the network side device.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method, comprising:
sending, by a user equipment, a video stream synchronization request to a first network side device, wherein the video stream synchronization request requests to acquire a live video of the first network side device, the acquired live video to be played synchronously by the user equipment with the live video of the first network side device, wherein the first network side device receives the video stream synchronization request after it is forwarded to the first network side device from a base station that connects the user equipment to a network;
receiving, by the user equipment, a video stream playback position synchronization parameter sent by the first network side device, wherein the video stream playback position synchronization parameter comprises a playback position parameter at a video stream sending moment and a system frame number (SFN) at the video stream sending moment, and wherein the SFN at the video stream sending moment is added to the video stream playback position synchronization parameter by the base station that connects the user equipment to the network, or the SFN is added to the video stream playback position synchronization parameter by a second network side device that receives the playback position parameter from the first network side device;
acquiring, by the user equipment, a SFN at a video stream receiving moment; and
adjusting, by the user equipment according to the SFN at the video stream sending moment and the SFN at the video stream receiving moment, the playback position parameter at the video stream sending moment.
2. The method according to claim 1 , wherein adjusting the playback position parameter at the video stream sending moment comprises:
determining a transmission delay of the video stream according to the SFN at the video stream sending moment and the SFN at the video stream receiving moment; and
adjusting, according to the transmission delay of the video stream, the playback position parameter at the video stream sending moment.
3. The method according to claim 2 , wherein determining the transmission delay of the video stream comprises:
determining the transmission delay of the video stream according to the relation TD=(SFN2−SFN1)*10, wherein TD represents the transmission delay of the video stream, SFN1 represents the SFN at the video stream sending moment, and SFN2 represents the SFN at the video stream receiving moment.
4. The method according to claim 1 , wherein the first network side device comprises a Main Cache or a live streaming server, and the received playback position parameter at the video stream sending moment is determined and sent by the Main Cache or the live streaming server, and the received SFN at the video stream sending moment is determined, added to the video stream playback position synchronization parameter, and then sent by the base station.
5. A non-transitory computer-readable storage medium comprising instructions which, when executed by a computer, cause the computer to carry out the method of claim 1 .
6. The method according to claim 2 , wherein determining the transmission delay of the video stream comprises:
determining the transmission delay of the video stream according to the relation TD=(SFN2−SFN1)*frame_duration, wherein TD represents the transmission delay of the video stream, SFN1 represents the SFN at the video stream sending moment, SFN2 represents the SFN at the video stream receiving moment, and frame_duration represents a duration of each system frame.
7. A method, comprising:
receiving, by a network side device, a video stream synchronization request sent by user equipment (UE), wherein the video stream synchronization request requests to acquire a live video of the network side device, the acquired live video to be played synchronously with the live video of the network side device, and wherein the network side device comprises a radio access network (RAN) node that corresponds to a base station that connects the user equipment to a network;
determining, by the network side device, a video stream playback position synchronization parameter according to the video stream synchronization request, wherein the video stream playback position synchronization parameter comprises a playback position parameter at a video stream sending moment and a system frame number (SFN) at the video stream sending moment, and wherein the SFN at the video stream sending moment is added to the video stream playback position synchronization parameter by the RAN node that corresponds to the base station that connects the user equipment to the network; and
sending, by the network side device, the video stream playback position synchronization parameter to the UE, so that the UE adjusts, according to the SFN at the video stream sending moment, the playback position parameter at the video stream sending moment to coincide with a current playback position parameter of the network side device.
8. The method according to claim 7 , wherein the network side device comprises the RAN node and a Main Cache, or the RAN node and a live streaming server, or wherein the RAN node comprises a RAN cache.
9. The method according to claim 7 , wherein the network side device comprises the RAN node and a Main Cache, or the RAN node and a live streaming server, and the Main Cache or the live streaming server determines the playback position parameter at the video stream sending moment in the video stream playback position synchronization parameter;
wherein the Main Cache or the live streaming server sends the video stream playback position synchronization parameter to the RAN node;
wherein the RAN node determines the SFN at the video stream sending moment, and inserts the SFN at the video stream sending moment into the video stream playback position synchronization parameter; and
wherein the RAN node sends the video stream playback position synchronization parameter to the UE.
10. The method according to claim 8 , wherein a timer is disposed in the Main Cache, the playback position parameter is determined according to the timer, and the network side device initializes and starts the timer in response to receiving the video stream synchronization request sent by the UE.
11. A non-transitory computer-readable storage medium comprising instructions which, when executed by a computer, cause the computer to carry out the method of claim 7 .
12. An apparatus, comprising:
a transmitter, configured to send a video stream synchronization request to a first network side device, wherein the video stream synchronization request requests to acquire a live video of the first network side device, the acquired live video to be played synchronously by the apparatus with the live video of the first network side device, wherein the first network side device receives the video stream synchronization request after it is forwarded to the first network side device from a base station that connects the apparatus to a network;
a receiver, configured to receive a video stream playback position synchronization parameter sent by the first network side device, wherein the video stream playback position synchronization parameter comprises a playback position parameter at a video stream sending moment and a system frame number (SFN) at the video stream sending moment, and wherein the SFN at the video stream sending moment is added to the video stream playback position synchronization parameter by the base station that connects the apparatus to the network, or the SFN is added to the video stream playback position synchronization parameter by a second network side device that receives the playback position parameter from the first network side device; and
a processor, configured to acquire an SFN at a video stream receiving moment, and adjust, according to the SFN at the video stream sending moment and the SFN at the video stream receiving moment, the playback position parameter at the video stream sending moment.
13. The apparatus according to claim 12 , wherein the processor is further configured to:
determine a transmission delay of the video stream according to the SFN at the video stream sending moment and the SFN at the video stream receiving moment; and
adjust, according to the transmission delay of the video stream, the playback position parameter at the video stream sending moment.
14. The apparatus according to claim 13 , wherein the processor is further configured to:
determine the transmission delay of the video stream according to the relation TD=(SFN2−SFN1)*10, wherein TD represents the transmission delay of the video stream, SFN1 represents the SFN at the video stream sending moment, and SFN2 represents the SFN at the video stream receiving moment.
15. The apparatus according to claim 12 , wherein the first network side device comprises a Main Cache or a live streaming server, and the playback position parameter at the video stream sending moment is determined and sent by the Main Cache or the live streaming server, and the SFN at the video stream sending moment is determined, added to the video stream playback position synchronization parameter, and then sent by the base station.
16. An apparatus, comprising:
at least one receiver, configured to receive a video stream synchronization request sent by user equipment (UE), wherein the video stream synchronization request requests to acquire a live video of the apparatus, the acquired live video to be played synchronously with the live video of the apparatus, and wherein the apparatus comprises a radio access network (RAN) node that corresponds to a base station that connects the apparatus to a network;
at least one processor, configured to determine a video stream playback position synchronization parameter according to the video stream synchronization request, wherein the video stream playback position synchronization parameter comprises a playback position parameter at a video stream sending moment and a system frame number (SFN) at the video stream sending moment, and wherein the SFN at the video stream sending moment is added to the video stream playback position synchronization parameter by the RAN node that corresponds to the base station that connects the user equipment to the network; and
at least one transmitter, configured to send the video stream playback position synchronization parameter to the UE, so that the UE adjusts, according to the SFN at the video stream sending moment, the playback position parameter at the video stream sending moment to coincide with a current playback position parameter of the apparatus for synchronizing video live broadcast.
17. The apparatus according to claim 16 , wherein the RAN node comprises a radio access network (RAN) Cache, or the apparatus further comprises a Main Cache.
18. The apparatus according to claim 16 , wherein the RAN node comprises a RAN Cache, and the RAN Cache further comprises a timer, configured to determine the playback position parameter; and
wherein the at least one processor is further configured to initialize and start the timer in response to receiving the video stream synchronization request sent by the UE.
19. An apparatus, comprising a RAN node and a Main Cache, or a RAN node and a live streaming server, the apparatus further comprising:
a receiver, configured to receive a video stream synchronization request sent by user equipment (UE), wherein the video stream synchronization request requests to acquire a live video of the apparatus, to be played synchronously with the live video of the apparatus;
a first processor, in the Main Cache or the live streaming server, configured to determine a playback position parameter at a video stream sending moment;
a first transmitter, in the Main Cache or the live streaming server, configured to send the playback position parameter at the video stream sending moment to the RAN node;
a second processor, in the RAN node, configured to determine an SFN at the video stream sending moment, and to determine a video stream playback position synchronization parameter comprising the SFN at the video stream sending moment and the playback position parameter at the video stream sending moment, wherein the RAN node corresponds to a base station that connects the user equipment to a network; and
a second transmitter, in the RAN node, configured to send the video stream playback position synchronization parameter to the UE, so that the UE adjusts the playback position parameter at the video stream sending moment for synchronized playback of the live video stream.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.