Skip to content
Last updated

Manage SMIL files

Use the Wowza Streaming Engine™ media server software REST API to view, create, and remove Synchronized Multimedia Integration Language (SMIL) file configurations in a Wowza Streaming Engine instance.

Notes:

Get a list of SMIL files

View a list of all configured SMIL files associated with an application:

Example request
curl -X GET \
  -H 'Accept:application/json; charset=utf-8' \
  -H 'Content-Type:application/json; charset=utf-8' \
  http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/smilfiles

View a list of all configured SMIL files associated with an application named testlive:

Note: All examples on this page use the application name testlive. You will replace this with the name of your application.

Example request
curl -X GET \
  -H 'Accept:application/json; charset=utf-8' \
  -H 'Content-Type:application/json; charset=utf-8' \
  http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/testlive/smilfiles

Create a SMIL file

Create a SMIL file named mytestsmil:

Example request
curl -X POST \
  -H 'Accept:application/json; charset=utf-8' \
  -H 'Content-Type:application/json; charset=utf-8' \
  http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/testlive/smilfiles/mytestsmil \
  -d '{
    "restURI": "http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/testlive/smilfiles/mytestsmil",
    "smilStreams": [{
      "systemLanguage": "en",
      "src": "myfile_750.mp4",
      "systemBitrate": "50000",
      "type": "video",
      "audioBitrate": "44100",
      "videoBitrate": "750000",
      "restURI": "http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/testlive/smilfiles/mytestsmil",
      "width": "640",
      "height": "360"
    }, {
      "systemLanguage": "en",
      "src": "myfile_1100.mp4",
      "systemBitrate": "50000",
      "type": "video",
      "audioBitrate": "44100",
      "videoBitrate": "1100000",
      "restURI": "http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/testlive/smilfiles/mytestsmil",
      "width": "640",
      "height": "360"
    }]
  }'

Remove a SMIL file

Delete a SMIL file named mysmilfile:

Example request
curl -X DELETE \
  -H 'Accept:application/json; charset=utf-8' \
  -H 'Content-Type:application/json; charset=utf-8' \
  http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/testlive/smilfiles/mysmilfile