Play a file on a loop with the Wowza Streaming Cloud REST API

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.

Before you start


You should have completed the following tasks:

Configure the file to play on a loop


You can use the following sample request, making sure to:

  • Set the transcoder_id in the request path to the transcoder ID for your transcoder or live stream.
Note: Enabling this property overrides the idle timeout value for the transcoder. The transcoder will continue to run and accrue charges until manually stopped.

Endpoint Reference

curl -X POST \
-H "Content-Type: application/json" \
-H "wsc-api-key: ${WSC_API_KEY}" \
-H "wsc-access-key: ${WSC_ACCESS_KEY}" \
-d '{
   "property": {
     "key": "repeat",
     "section": "file",
     "value": true
   } 
}' "${WSC_HOST}/api/${WSC_VERSION}/transcoders/[transcoder_id]/properties"

Next steps


More resources