I am newbie here. What i am trying to do is to restream video from ip camera. I followed the steps mentioned in this url(https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming) and as mentioned i am able to restream using .stream file.
What i am looking for is to programmatically do the same?
My scenario is like this, i have a web application which maps camera and its rtsp url to a database. Some thing like
and my client players use camera name(cam1, cam2) as an alias to actual stream. So what i want is, when a client request for a stream with alias name i want to fetch corresponding rtsp url from database and start the stream.
I followed the steps mentioned in this link(https://www.wowza.com/docs/how-to-use-the-imediastreamnamealiasprovider2-interface) overriding all resolve*() methods returning rtsp url corresponding to alias name. But streams never got published and played.
Can you guys please guide me on how to do this?