I am using Wowza Streaming Engine 4 (4.1.0 build12602), just upgraded from Wowza Media Server 3.6.3.
I need to be able to re-stream IP cameras on demand (not pre-configured and also without the need for restarting the server).
In Wowza Media Server 3, I used the .stream files for re-streaming the IP cameras. So whenever I wanted to receive a stream from a new camera I just created a 'mycamera.stream' file in the 'applications/live/content/' folder and then I could immediately play that stream in a player by setting the stream name to 'mycamera.stream'.
This is important because I had control over which streams are being consumed from cameras at any given time using an external app (on the server) that creates the .stream files for me.
However. in Wowza Streaming Engine 4, I don't have that control anymore, I must use the Wowza Streaming Engine Manager manually to start re-streaming the IP cameras.
First of all, I have been looking for a way of creating a .stream file (with a desired name like 'mycam-01.stream') using URL queries, but it seems that I can't. That is ok because I can always just creat the file using a custom web api on the server that I can develop myself.
The problem is that in Wowza Streaming Engine 4, after a .stream file is created in the 'content' folder, I can't just play the stream because it requires from me to connect the .stream file to an application. This is new and I no longer have control over creating streams of IP cameras dynamically. I have to use the Wowza Streaming Engine Manager to connect the generated .stream file to an application by opening the 'Stream Files' tab and clicking the 'Connect to this stream' button near the desired stream.
Is there a way to connect a .stream file to an application using a URL query? Or alternatively, is there a way to configure the server to connect automatically all created .stream files to a certain application (e.g. 'live')?
I am not sure but, I think I had a configuration in the old Wowza (WMS3) that tells the server to listen for created/deleted .stream files in folder 'applications/live/content/'.
in WMS 3.6.3:
in '/conf/Server.xml' I put:
in '/conf/live/Application.xml' I put:
<!-- Stream prefix. Valid values are: flv and mp4 -->
<!-- MediaCaster type. Valid values are: rtp, rtp-record, shoutcast, shoutcast-record, liverepeater -->
<!-- Pipe delimited list of file extensions for which to search -->
Again, I am not sure this what helped me achieving the automatic connection of .stream files to the 'live' application.
Can you please tell me how do I overcome my problem and connect dynamically generated .stream files to an application so it can be played immediately?