Hi,
There’s an example of how to start/stop a mediacaster stream via server-side java: https://www.wowza.com/docs/how-to-use-the-wowza-streaming-engine-java-api-to-start-and-stop-mediacaster-streams.
I found this: http://127.0.0.1:8087/v2/servers/wowza-test/mediacasters - which allows me to enumerate config details, but nothing apparent for control.
Can someone please provide an example to control a mediacaster stream via rest api?
Thanks in advance!
-Mark
Hello Mark
It sounds as though you want to connect a stream file. In a simple curl example:
curl -X PUT --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/[streamfilename]/actions/connect?connectAppName=[app-name]&appInstance=_definst_&mediaCasterType=rtp"
To use the REST API, you’ll need to have the appropriate license. Please see the following guide.
Thanks,
Matt