When you create a live stream or transcoder that streams a file, you can configure the stream to play the file continuously on a loop by setting the file: repeat transcoder property. By default, files stream once then stop.
You should have completed the following tasks:
- Create a live stream or a transcoder that streams a file. See Stream a file with the Wowza Video REST API for more information.
You can use the following sample request, making sure to:
- Set the
transcoder_idin the request path to the transcoder ID for your transcoder or live stream.
Info
Enabling this property overrides the idle timeout value for the transcoder. The transcoder will continue to run and accrue charges until manually stopped.
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${WV_JWT}" \
-d '{
"property": {
"key": "repeat",
"section": "file",
"value": true
}
}' "${WV_HOST}/api/${WV_VERSION}/transcoders/[transcoder_id]/properties"You can use a schedule to automatically stop the transcoder at a specific date and time. For more information, see Schedule a transcoder with the Wowza Video REST API.