I am trying to work out how to connect the concept of a one-time token that I generate and hand out to a particular user with the "viewerId" that is mentioned in the REST API documentation, which seems to be the primary identifier of a player when I list players using https://antmedia.io/rest/#/BroadcastRestService/getWebRTCViewerList
My goal is to stop the playback for a client that I pick based on the token I gave out, but I don't understand how can I identify and stop a player in my server side plugin based on a token. Tokens get removed once used form the internal token map and I can't tell what was the generated viewer id, as it seems to be generated randomly.
I am using Ant Media Server 2.5.3 at the moment and my interface to AMS is the Java API / the available Spring Beans and not the REST API.
Question
Balazs
Hi,
I am trying to work out how to connect the concept of a one-time token that I generate and hand out to a particular user with the "viewerId" that is mentioned in the REST API documentation, which seems to be the primary identifier of a player when I list players using https://antmedia.io/rest/#/BroadcastRestService/getWebRTCViewerList
My goal is to stop the playback for a client that I pick based on the token I gave out, but I don't understand how can I identify and stop a player in my server side plugin based on a token. Tokens get removed once used form the internal token map and I can't tell what was the generated viewer id, as it seems to be generated randomly.
I am using Ant Media Server 2.5.3 at the moment and my interface to AMS is the Java API / the available Spring Beans and not the REST API.
Thanks for any help!
Link to comment
Share on other sites
Top Posters For This Question
3
2
Popular Days
Mar 16
2
Mar 17
2
Mar 15
1
Top Posters For This Question
Connessione 3 posts
Balazs 2 posts
Popular Days
Mar 16 2023
2 posts
Mar 17 2023
2 posts
Mar 15 2023
1 post
Popular Posts
Balazs
I got a hint from @Burak that the viewerId is the same thing as subscriberId, this is not clear from the docs, but means that certain REST API calls that are talking about subscribers might be used he
4 answers to this question
Recommended Posts