We want to restrict the stream url access for multiple users in the same time.
We tried with md5 generation of URL and provided expiry of the url for 2 hrs
In the mean time, if i copy the url from wowza logs and play , it is playing for multiple users
there is no restriction
Then we are implementing in the following way
To achieve this
we created mysql db with one table to track all these
when the user connects then we are validating whether the record is in db or not
If yes , we will check the status
if status is 0 we will not allow the user to watch the stream
if status is 1 then we will allow the user to watch the stream. then In play event updating the status to 0 .
If not
we will insert the new record with status 0 and allowing user to watch the stream
Once User stops playing the video. then updating them to 1.
To handle this for RTSP i am able to handle the events call backs by using IMediaStreamActionNotify3 interface.
But for HTTP, I am not able to find any event call backs to perform the above validation like looking for connect,play and stop events.
Please any one suggest me on this.this is very urgent
Appreciate the response