A VOD playlist (*.vod.m3u8) will be uploaded to destination when the Live Transcoding process is finished (using ‘StopLive‘ request, ‘Stop’ request, or after an error).
You can specify any full-featured VOD outputs in your API request.
Also you can specify only VOD output formats without adding ‘live_hls‘ format.
Note
‘Harmonic‘ outputs not allowed as VOD output.
Note
VOD processing will be started after ‘StopLive‘.
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid> <!-- required-->
<userkey>[UserKey]</userkey> <!-- required-->
<action>AddMedia</action><!-- REQUIRED -->
<source>[RTMPSourceURL]</source><!-- REQUIRED -->
<!-- OPTIONAL live_hls OUTPUT -->
<format>
<output>live_hls</output>
<destination>[DestFile]</destination><!-- REQUIRED -->
</format>
<format>
<output>[VODOutput]</output>
</format>
</query>
{
"query": {
"userid": "[UserID]",
"userkey": "[UserKey]",
"action": "AddMedia",
"source": "[RTMPSourceURL]",
"format": [
{
"output": "live_hls",
"destination": "[DestFile]"
},
{
"output": "[VODOutput]"
}
]
}
}