| CPC H04L 65/612 (2022.05) [H04L 65/65 (2022.05); H04L 67/56 (2022.05); H04N 21/23406 (2013.01)] | 19 Claims |

|
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.
|