With CSS, the original bitrate is used for playback by default. To use a different playback bitrate, you can bind your domain with a transcoding or adaptive bitrate template. This document shows you how to bind a template to and unbind a template from a playback domain.
After binding a transcoding template, append its name to your playback URL (playback URL_transcoding template name). If you do not append the template name, the original stream will be played. For more information on playback URLs, see Playback Configuration.
Suppose the name of the transcoding template bound is hd, and the original playback URL is as follows:
http://domain/AppName/StreamName.flv?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time)
To play the transcoded stream, you need to use the following URL:
http://domain/AppName/StreamName_hd.flv?txSecret=Md5(key+StreamName_hd+hex(time))&txTime=hex(time)
Note:To delete a template, you need to unbind it first and then go to Feature Configuration > Live Transcoding to delete it. For details, see Deleting a Template.
Only HLS and WebRTC are supported for adaptive bitrate playback. The URL formats for the two protocols are different. For details, see Playback Configuration.
HLS URL:
Suppose the name of the adaptive bitrate template bound is autobitrate, and the original playback URL is as follows:
http://domain/AppName/StreamName.m3u8?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time)
To play the transcoded stream, you need to use the following URL:
http://domain/AppName/StreamName_autobitrate.m3u8?txSecret=Md5(key+StreamName_autobitrate+hex(time))&txTime=hex(time)
WebRTC URL:
Suppose the adaptive bitrate template bound has three streams. Their names are "test 1", "test 2", and "test 3", and their bitrates are 200 Kbps, 300 Kbps, and 400 Kbps respectively.
The adaptive bitrate playback URL would be as follows:
webrtc://domain/AppName/StreamName?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time)&tabr_bitrates=test3,test2,test1&tabr_start_bitrate=test1&tabr_control=auto
Note:To delete a template, you need to unbind it first and then go to Feature Configuration > Live Transcoding to delete it. For details, see Deleting a Template.
Was this page helpful?