...
2. Receiving the HLS stream from the server
Streams which can be played as HLS
Every stream published to WCS server with certain name, can be played as HLS
Code Block | ||
---|---|---|
| ||
http://wcs:8082/streamName/streamName.m3u8 |
A stream name can be set when publishing stream from browser or from RTMP кодировщика, or when capturing RTSP, RTMP or VOD stream using REST API
Since build 5.2.771, stream URI can be set for RTSP
Code Block | ||
---|---|---|
| ||
http://wcs:8082/rtsp%3A%2F%2Frtspserver%2Flive.sdp/rtsp%3A%2F%2Frtspserver%2Flive.sdp.m3u8 |
RTMP source
Code Block | ||
---|---|---|
| ||
http://wcs:8082/rtmp%3A%2F%2Frtmpserver%3A1935%2Flive%2Fstream/rtmp%3A%2F%2Frtmpserver%3A1935%2Flive%2Fstream.m3u8 |
or for VOD live translation from file
Code Block | ||
---|---|---|
| ||
http://wcs:8082/vod-live%3A%2F%2Ffile.mp4/vod-live%3A%2F%2Ffile.mp4.m3u8 |
In this case a stream will be captured by source URI, and after publishing to server the stream will be played as HLS. Note that URI should be encoded, all the characters except latin letters and digits must be replaced with character code.
When HLS subscriber connects to CDN Edge, if a stream with certain name or URI is already published to some Origin server, the stream from CDN will be played as HLS for this subscriber. If there is no stream with such name or URI in CDN, Edge will try to capture stream locally to play as HLS.
HLS playback authentication using REST hook
...