Comparison of advantages and disadvantages of video content push (pre-loading) on chinanetcenter and chinacache
Advantages and disadvantages of video content push (pre-loading) docking between chinanetcenter and chinacache
Cdn video needs to be pre-loaded Based on the hotspot for business purposes. Because the two cdns are connected at the same time, this article will be written today to compare the advantages and disadvantages of the two interfaces:
These parameters are described as follows:
-Request Method
-Pass required parameters
-Return Value
-* Flexibility
Chinanetcenter.com)
The request uses the get method. All parameters are filled in the url, for example, username, password (special processing), pre-distributed URLs (separated by semicolons), and delayseconds. The url is a directory. Success append purge tasks ..., If a url error is returned**Url invalid, md5 validate failure is returned if password verification fails.
Chinacache.com)
The post + json format is used and the json format is clear. (Username, password, speed, validateionType, nest_track_level, and tasks. The returned value is also in json format code + msg .. It also provides interfaces for canceling task release and reporting task status.
Praise
Nest_track_levelThis practice is quite popular, so that you can flexibly process html or m3u8 files with special hierarchical relationships.
TasksThis is a json set that can pre-load multiple files at the same time. But the problem is that the authentication method for these files is "md5" (not deeply understood as the base). If a large file is pre-loaded, it takes enough time to read the local md5 before sending the request.
Summary
I prefer chinacache.