US 11,055,429 B2
Key providing method, video playing method, server and client
Zhenlin Huang, Shanghai (CN); Yunhui Chen, Shanghai (CN); and Shaozhuo Fan, Shanghai (CN)
Assigned to WANGSU SCIENCE & TECHNOLOGY CO., LTD., Shanghai (CN)
Filed by WANGSU SCIENCE & TECHNOLOGY CO., LTD., Shanghai (CN)
Filed on Jul. 19, 2019, as Appl. No. 16/516,326.
Application 16/516,326 is a continuation of application No. PCT/CN2018/079499, filed on Mar. 19, 2018.
Claims priority of application No. 201810136728.5 (CN), filed on Feb. 9, 2018.
Prior Publication US 2019/0340384 A1, Nov. 7, 2019
Int. Cl. H04N 21/262 (2011.01); H04N 21/266 (2011.01); H04N 21/2347 (2011.01); H04N 21/472 (2011.01); H04N 21/482 (2011.01); H04N 21/835 (2011.01); H04N 21/854 (2011.01); G06F 21/10 (2013.01); G06F 21/60 (2013.01); G06F 21/62 (2013.01); G06F 21/71 (2013.01); G06F 16/71 (2019.01)
CPC G06F 21/6227 (2013.01) [G06F 16/71 (2019.01); G06F 21/604 (2013.01); H04N 21/26613 (2013.01); H04N 21/47202 (2013.01)] 13 Claims
OG exemplary drawing
 
1. A key providing method, comprising:
segmenting target video data into a plurality of fragmented data, respectively encrypting the plurality of fragmented data based on a preset key, and storing the encrypted fragmented data in a specified directory to generate a file address of each piece of the encrypted fragmented data;
generating an initial index file which includes the file address of each piece of the encrypted fragmented data and the preset key;
replacing the preset key in the initial index file with a specified string to obtain a modified index file which serves as an index file of the target video data;
receiving a download request that is sent by a client and is directed to the target video data, and providing the modified index file to the client, so that the client constructs an access request, that is directed to the preset key, based on the specified string in the modified index file;
receiving the access request sent by the client, and providing the preset key to the client in response to the access request;
wherein the access request includes the specified string and a verification string added by the client wherein the verification string includes a server-predicted time and a factory-set value;
after receiving the access request sent by the client, the method further comprises:
calculating a difference between a current time of the server and the server-predicted time in the access request;
providing the preset key to the client when the difference is less than or equal to a specified threshold and the factory-set value in the access request is consistent with a preset factory-set value.