for a new project, we have a number of users whose devices produce MPEG-TS streams (UDP only, NOT RTSP streams).
Each user has one device, identified by a device id.
The users should be able to start streaming from their devices to the Wowza server at any time.
I guess the client device should do something like this:
- Query the server, to find an UDP port available in Wowza
- Start the stream to that port and send the device id into the MPEG-TS UDP stream
- A custom plugin in Wowza should be able to extract the device id data and save the stream into the appropriate folder
One important thing: the system does NOT know in advance all possibile device ids. Only when the device connects to the Wowza server and sends the device id into the MPEG-TS stream, the custom Wowza plugin can validate it by checking into a database.
I would kindly need some directions on how this could be accomplished. I.e., should we pre-create a large number of .stream files for all possible UDP ports on the server, then somehow negotiate a free port when the client connects, or can we allocate streams "on demand" when the user wants to connect? In the second case, how can the client device know to which UDP port it should connect?