Live stream switching method, electronic device and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsTengfei SHAN, Chenfei WANG
Life of this patent
Estimating the term…
Abstract
A live stream switching method and an electronic device are provided. The method includes: receiving a stream switching request sent by a client, where the stream switching request includes a target resolution; pulling an original live stream from a first source and a target live stream corresponding to the target resolution from a second source, and transmitting the original live stream to the client; performing timestamp alignment between the original live stream and the target live stream; and in response to determining that alignment is successful, ceasing transmission of the original live stream and transmitting the target live stream to the client.
Claims20
A live stream switching method, comprising:
- receiving a stream switching request from a client, wherein the switching request includes a target resolution;
- pulling an original live stream from a first source and a target live stream corresponding to the target resolution from a second source, and transmitting the original live stream to the client;
- performing timestamp alignment between the original live stream and the target live stream;
- and
- in response to determining that the alignment is successful, ceasing transmission of the original live stream and transmitting the target live stream to the client.
An electronic device, comprising:
- at least one processor;
- and
- a memory communicatively connected to the at least one processor;
- wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform operations comprising:
- receiving a stream switching request from a client, wherein the switching request includes a target resolution;
- pulling an original live stream from a first source and a target live stream corresponding to the target resolution from a second source, and transmitting the original live stream to the client;
- performing timestamp alignment between the original live stream and the target live stream;
- and
- in response to determining that the alignment is successful, ceasing transmission of the original live stream and transmitting the target live stream to the client.
A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to perform operations comprising:
- receiving a stream switching request from a client, wherein the switching request includes a target resolution;
- pulling an original live stream from a first source and a target live stream corresponding to the target resolution from a second source, and transmitting the original live stream to the client;
- performing timestamp alignment between the original live stream and the target live stream;
- and
- in response to determining that the alignment is successful, ceasing transmission of the original live stream and transmitting the target live stream to the client.
Dependencies are inferred from the claim text.