Method for transmitting stream, streaming server and storage medium
AssigneeApollo Intelligent Connectivity (Beijing) Technology Co., Ltd.
InventorChenghai Ma
Life of this patent
Estimating the term…
Abstract
A method for transmitting a stream includes: receiving a streaming request from a stream receiver, in which the streaming request includes a stream identifier and a type of the stream receiver; obtaining an encapsulated stream by performing protocol encapsulation on a stream corresponding to the stream identifier based on a streaming protocol corresponding to the type; and transmitting the encapsulated stream to the stream receiver.
Claims14
A method for transmitting a stream, performed by a streaming server, comprising:
- receiving a streaming request from a stream receiver, wherein the streaming request comprises a stream identifier and a type of the stream receiver;
- obtaining an encapsulated stream by performing protocol encapsulation on a stream corresponding to the stream identifier based on a streaming protocol corresponding to the type;
- and
- transmitting the encapsulated stream to the stream receiver,
- wherein the method further comprises:
- determining, in response to receiving a stream address application request from a signaling server, an address and a port for a stream to be received on the streaming server;
- transmitting the address and the port to the signaling server to request a third-party platform to push streams;
- and
- receiving a stream pushed by the third-party platform based on the address and the port,
- wherein receiving the stream pushed by the third-party platform based on the address and the port comprises:
- adjusting a capacity of a buffer queue based on a type of the stream;
- receiving a stream data packet pushed by the third-party platform based on the address and the port;
- caching the stream data packet into the buffer queue;
- integrating stream data packets in the buffer queue into the stream in response to the stream data packets in the buffer queue satisfying the capacity;
- and
- clearing the buffer queue.
A streaming server, comprising:
- at least one processor;
- and
- a memory communicatively connected to the at least one processor;
- wherein,
- the memory is configured to store instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is caused to perform:
- receiving a streaming request from a stream receiver, wherein the streaming request comprises a stream identifier and a type of the stream receiver;
- obtaining an encapsulated stream by performing protocol encapsulation on a stream corresponding to the stream identifier based on a streaming protocol corresponding to the type;
- and
- transmitting the encapsulated stream to the stream receiver,
- wherein when the instructions are executed by the at least one processor, the at least one processor is caused to perform:
- determining, in response to receiving a stream address application request from a signaling server, an address and a port for a stream to be received on the streaming server;
- transmitting the address and the port to the signaling server to request a third-party platform to push streams;
- and
- receiving a stream pushed by the third-party platform based on the address and the port,
- wherein when the instructions are executed by the at least one processor, the at least one processor is caused to perform:
- adjusting a capacity of a buffer queue based on a type of the stream;
- receiving a stream data packet pushed by the third-party platform based on the address and the port;
- caching the stream data packet into the buffer queue;
- integrating stream data packets in the buffer queue into the stream in response to the stream data packets in the buffer queue satisfying the capacity;
- and
- clearing the buffer queue.
A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to perform a method for transmitting a stream, the method comprising:
- receiving a streaming request from a stream receiver, wherein the streaming request comprises a stream identifier and a type of the stream receiver;
- obtaining an encapsulated stream by performing protocol encapsulation on a stream corresponding to the stream identifier based on a streaming protocol corresponding to the type;
- and
- transmitting the encapsulated stream to the stream receiver,
- wherein the method further comprises:
- determining, in response to receiving a stream address application request from a signaling server, an address and a port for a stream to be received on the streaming server;
- transmitting the address and the port to the signaling server to request a third-party platform to push streams;
- and
- receiving a stream pushed by the third-party platform based on the address and the port,
- wherein receiving the stream pushed by the third-party platform based on the address and the port comprises:
- adjusting a capacity of a buffer queue based on a type of the stream;
- receiving a stream data packet pushed by the third-party platform based on the address and the port;
- caching the stream data packet into the buffer queue;
- integrating stream data packets in the buffer queue into the stream in response to the stream data packets in the buffer queue satisfying the capacity;
- and
- clearing the buffer queue.
Dependencies are inferred from the claim text.