Wowza Community

How to start the live streams with URL queries ?

We publish live streams from IP cam.

We need more format than RTMP, the “rtp-live” in Application.xml is not meet our requirement.

Can we start the live streams with URL queries like “Recording live streams with URL queries” in “How to record live steams” ?

I found “MediaCaster API” maybe can solve our problem, can someone tell me more ?

You could initiate a IP camera ingest via curl as follows:

curl --digest -u myuser:mypassword "http://[wowza-ip-address]:8086/streammanager/streamAction?action=startStream" --data "vhostName=[vhostname]&appName=[appname]/[appinstance]&streamName=[streamname]&mediaCasterType=[mediacaster-option]"
// You can also utilize action=deleteStream and action=resetStream accordingly (if/when needed).  The mediaCasterType parameter would not be needed in the latter two cases.

Alternatively, you can use the MediaCaster API and setup a HTTP Provider to implement it (such that you could invoke the http provider in a similar manner via HTTP).

I believe it must be a POST request so you won’t be able to place the url in a browser and expect the same results.

Thanks for reply.

I test the curl command, it works in linux.

Can I use the URL in windows? Maybe with IE or Chrome ?