| CPC H04N 21/23106 (2013.01) [H04N 21/238 (2013.01); H04N 21/242 (2013.01); H04N 21/26241 (2013.01); H04N 21/654 (2013.01)] | 8 Claims |

|
1. A method of playing videos, applied to a video server, wherein the method comprises:
caching a video resource of a target video onto a plurality of content delivery network (CDN) nodes using an on-demand manner;
establishing a long link with each of a plurality of client computing devices in response to detecting that the plurality of client computing devices access a playback page of the target video, wherein established long links enable the video server to simultaneously send signals to the plurality of client computing devices for synchronously playing the target video on the plurality of client computing devices;
simultaneously sending, via the established long links, signals indicative of a start state of the target video to all of the plurality of client computing devices that access the playback page when a playback start instruction is received, wherein each of the plurality of client computing devices simultaneously plays the video resource while separately obtaining the video resource from a corresponding CDN node among the plurality of CDN nodes;
simultaneously sending, via the established long links, signals indicative of an end state of the target video to all of the plurality of client computing devices that access the playback page when a playback end instruction is received;
wherein after the establishing a long link with each of a plurality of client computing devices in response to detecting that the plurality of client computing devices access a playback page of the target video, the method further comprises:
receiving a progress query request from one of the plurality of client computing devices via an Hypertext Transfer Protocol (http) interface when the one of the plurality of client computing device is switched back to the playback page from another page or from running in a background;
determining a playback progress of the target video based on a timer started by the video server; and
transmitting information indicating the playback progress of the target video to the one of the plurality of client computing devices via the http interface, wherein the one of the plurality of client computing devices resumes playing the target video based on the playback progress of the target video.
|