US 12,238,156 B2
Media playing method and apparatus, and electronic device
Gang Chen, Beijing (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Appl. No. 18/283,374
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Mar. 18, 2022, PCT No. PCT/CN2022/081696
§ 371(c)(1), (2) Date Sep. 21, 2023,
PCT Pub. No. WO2022/199484, PCT Pub. Date Sep. 29, 2022.
Claims priority of application No. 202110312246.2 (CN), filed on Mar. 24, 2021.
Prior Publication US 2024/0171626 A1, May 23, 2024
Int. Cl. H04L 65/612 (2022.01); H04L 65/65 (2022.01); H04L 67/56 (2022.01); H04N 21/234 (2011.01)
CPC H04L 65/612 (2022.05) [H04L 65/65 (2022.05); H04L 67/56 (2022.05); H04N 21/23406 (2013.01)] 19 Claims
OG exemplary drawing
 
1. A method, comprising:
receiving, by a media proxy service on a client device, a first play request of an application program on the client device, wherein the first play request comprises a first identifier, and the first identifier corresponds to a target media resource in a server device;
determining, by the media proxy service and based on the first identifier, whether a buffering transmission procedure of the target media resource has been started;
when the buffering transmission procedure has not been started, starting, by the media proxy service, the buffering transmission procedure;
buffering, from the server device, the target media resource to the client device;
sending a first address to the application program, wherein the first address is a local uniform resource locator (URL) address used for accessing the buffered target media resource;
sending, by the media proxy service when receiving a second play request sent by the application program to the first address, the buffered target media resource to the application program for playing; and
after determining, by the media proxy service, whether the buffering transmission procedure of the target media resource has been started, when the buffering transmission procedure has been started but the buffering transmission procedure is suspended, continuing, by the media proxy service, to buffer the target media resource from the server device to the client device based on a buffering progress of the target media resource.