Based on VOD playback control capability, pseudo-live streaming adds access controls of "playback time constraint" and "syncing playback progress" to achieve pseudo-live streaming. Users first generate on-demand files, and then specify a time point to use such files for pseudo-live streaming. This feature has lower risks and cost compared with real live streaming.
As pseudo-live streaming is based on on-demand content, it lacks some capabilities of a real live streaming, such as:
Allowed watch time: a video URL can be distributed to viewers in advance. Pseudo-live streaming cannot be viewed before the start and after the end of it, and can only be viewed when it is "ongoing".
Synchronized viewing: during a pseudo-live streaming, all viewers watch synchronously with the same progress (with differences in minutes).
Log in to the VOD console (non-admin) and click Media Assets > Video Management on the left sidebar, and the click Upload Video.
You can also use other video upload methods as appropriate for your business. For details, see Media Upload Overview and Recording to VOD and Processing Video.
sign = md5(KEY + Dir + t + plive + exper + rlimit + us)
Hotlink protection for pseudo-live streaming has one additional parameter compared with standard key hotlink protection:
plive, which will be used to calculate the hotlink protection signature.
|KEY||11111111||The key selected by a developer when enabling key hotlink protection|
|Dir||/dir1/dir2/||The remaining part of the original video URL after
|t||5a71afc0||Hexadecimal result of the expiration timestamp
|plive||5e344f00||Start time (UTC+8) of the pseudo-live streaming in Unix timestamp format. For example,
|rlimit||0||Maximum number of IPs allowed for watching.
|us||test||The generated random string|
Assume that a developer stores a video in VOD with HLS-format playback URL (not the original video URL) as
http://1250000000.vod2.myqcloud.com/vodtranscq125000000/12345678/v.f240.m3u8;. The requirements are as follows:
5e5a8a80(March 1, 2020 00:00:00)
5e344f00(February 1, 2020 00:00:00)
Calculate the signature according to signature calculation formula:
sign = md5(11111111/vodtranscq125000000/12345678/5e5a8a805e344f0000test) = 0af5018df88c00e6629e0fb8939277dd
Add the generated signature in the
QueryString of the HLS URL to get the final hotlink protection URL:
- Parameters in
QueryStringshould be calculated in the same order as for calculating
- To facilitate debugging, we provide the hotlink protection signature generation tool. After entering the parameters as prompted, you can view the intermediate result of signature calculation and the final hotlink protection link.
You can put the above URL in players supporting HLS playback (such as Safari browser, VLC, and PotPlayer) to try pseudo-live streaming.
Chrome does not support HLS playback by default. You need to install a plugin.