Wowza Community

Limiting rtp-live input connections

I see in the docs how to limit the number of connections on a stream. But I need to limit the number of connections a server can make to the cameras that are started on demand with stream type “rtp-live”. Is that something that is readily available? If not is there is source for a plug-in that demonstrates how to do this?

John

Hello,

Looks like your question was addressed in a support ticket. Just to follow up on the solution from the ticket in case other users had a similar question:

This should be possible by creating an application-level property object that keeps track of the started streams. You can increment the property during onPublish, and reduce it during onUnPublish.

You can then add a listener during resolvePlayAlias that will check if a limit has been reached, and deny playback (return null).

https://www.wowza.com/docs/how-to-use-the-imediastreamnamealiasprovider2-interface

Regards,

Alex C