How to play HLS/DASH content
In order to play HLS/DASH content you need to manually add the format
of the video file as well as the video- and audio-streams of the video in the launch template.
{
"type": "VIDEO",
"url": "https://accurate-player-static.s3.eu-central-1.amazonaws.com/Sintel/dash/sintel.mpd",
"container": {
"format": "dash",
"videoStreams": [
{
"frameRateNumerator": 24,
"frameRateDenominator": 1
}
],
"audioStreams": [
{
"channels": 2
},
{
"channels": 2
}
]
},
...
}
Try it out
Format
The format specifies the format of the video container.
Format | Value |
---|---|
HLS | hls |
DASH | dash |
Video streams
The video streams needs to be configured with frameRateNumerator
and frameRateDenominator
, resulting in the video stream frame rate.
Audio streams
The audio streams needs to be configured with channels
, describing how many audio channels each stream contains, for example "channels": 2
for a regular stereo sound.