Media stream sending method and apparatus, and device
AssigneeHuawei Technologies Co., Ltd.
InventorsNaiqiang Qiao, Xia Zhu, Jun Zhou, Qi Bu
Life of this patent
Estimating the term…
Abstract
A media stream sending method provides a live media stream for a client that enters a live broadcast room. A proxy server receives, from a first client, a first live broadcast room request message for requesting to enter the live broadcast room; the proxy server determines a role of the first client based on the first live broadcast room request message; and if the role of the first client is a slave user, the proxy server sends a first live media stream cached in the proxy server to the first client, where the first live media stream is a media stream that is sent by a media server to a second client through the proxy server, and a role of the second client is a master user.
Claims20
A method implemented by a proxy server and comprising:
- receiving, from a first client, a first live broadcast room request message requesting to enter a live broadcast room;
- determining a first role of the first client based on the first live broadcast room request message;
- sending, to the first client when the first role is a slave user in the live broadcast room, a first live media stream cached in the proxy server;
- receiving, from a second client whose second role is a master user, a request message for exiting the live broadcast room;
- determining not to forward the request message for a temporary period;
- changing, in response to the request message, the first role from the slave user to the master user;
- sending, to a media server, a second media request message comprising an identifier of the first client;
- receiving, from the media server in response to the second media request message, a second live media stream;
- switching from sending, to the first client, the first live media stream to sending, to the first client, the second live media stream;
- and
- forwarding, to the media server after the switching, the request message.
A proxy server comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory and configured to execute the instructions to cause the proxy server to:
- receive, from a first client, a first live broadcast room request message requesting to enter a live broadcast room;
- determine a first role of the first client based on the first live broadcast room request message;
- send, to the first client when the first role is a slave user in the live broadcast room, a first live media stream cached in the proxy server;
- receive, from a second client whose second role is a master user, a request message for exiting the live broadcast room;
- determine not to forward the request message for a temporary period;
- change, in response to the request message, the first role from the slave user to the master user;
- send, to a media server, a second media request message comprising an identifier of the first client;
- receive, from the media server in response to the second media request message, a second live media stream;
- switch from sending, to the first client, the first live media stream to sending, to the first client, the second live media stream;
- and
- forward, to the media server after the switching, the request message.
A computer program product comprising instructions that are stored on a non-transitory computer-readable medium and that, when executed by a processor, cause a proxy server to:
- receive, from a first client, a first live broadcast room request message requesting to enter a live broadcast room;
- determine a first role of the first client based on the first live broadcast room request message;
- send, to the first client when the first client is a slave user in the live broadcast room, a first live media stream cached in the proxy server;
- receive, from a second client whose second role is a master user, a request message for exiting the live broadcast room;
- determine not to forward the request message for a temporary period;
- change, in response to the request message, the first role from the slave user to the master user;
- send, to a media server, a second media request message comprising an identifier of the first client;
- receive, from the media server in response to the second media request message, a second live media stream;
- switch from sending, to the first client, the first live media stream to sending, to the first client, the second live media stream;
- and
- forward, to the media server after the switching, the request message.
Dependencies are inferred from the claim text.