I need a module to to check the user group ID which is passed in the RTMP URL or in the HLS URL.
RTMP format will look like
rtmp://IP:1935/edge/definst/?xs=_we_OWRkbHBpaWpqY2kxMm85fDE0NjI5ODMxODR8MTA4LjYxLjIyNi4xOXw1NzMzNTMwOGI0ODgzfDYxNDM2NDk0NjMxMzk2ZmRmMDkwNWM5NDA1ZmEwNGVjOTUxOTBmZTY.?userId=
HLS will look like
If the return value of userId is equal to the property setting, then allow to play. Otherwise denied it.
Properties should be like
Enabled: true/false : enable this module or not
CheckUrl: http://mydomain.com/mobile_app/check_user_group.php?userId= (this php return json format like this {userId: 669, groupId: 3})
AllowReturnGroup: 3 (if return matched 3, then allow)
WriteToLog: true/false
LogLocation: /logs/module_name.log
Log content should have: IP Timestamp Connect_URL Status (groupId matched or not match) and other information if needed