Wowza Community

load smil into application via Api REST

Hi all.

Someone has some example of how to assign a smil to an application via api rest

Hello @Mike Washosky, I will share some docs with you on how to do this with examples. I hope this helps. If you still need a consultant to help you, please leave me a comment here and I can send you a list.

  1. https://www.wowza.com/docs/smil-files-query-examples

  2. https://www.wowza.com/docs/how-to-query-wowza-rest-api

  3. I recommend you try this- it is very helpful to access examples as well.

https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api

Thx Rose, but still have a error msg

{“message”:“The request requires user authentication”,“success”:false,“code”:“401”,“wowzaServer”:“4.7.6”}

This is my line

curl --digest -u ‘user:pass’ -X PUT -H ‘Accept:application/json; charset=utf-8’ -H ‘Content-type:application/json; charset=utf-8’ http://my-server-ip:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/some-app-name/smilfiles/live.smil/actions/connect?connectAppName=some-app-name≈pInstance=definst&mediaCasterType=liverepeater

I put the corret user and pass, but still show me that msg :confused:

Sorry to hear that. I would suggest submitting a support ticket first to see if our engineers can test for an problem. You can do that here:

https://www.wowza.com/support/open-ticket

thx Rose, I’m going to open a ticket then