I have been coming across an issue with Ant Media not authorizing my one-time play tokens. I am on the latest version, am on enterprise edition and have turned on one-time tokens for play in settings of my live app.
Send a get request (using postman) using the recommended scenario format: https://[iP_Address]:5443/<Application_Name>/rest/v2/broadcasts/<Stream_Id>/token?expireDate=<Expire_Date>&type=play
Copy tokenId from the response and insert it into format I wish to play (I've tried HLS and WebRTC): https://[iP_Address]/<Application_Name>/play.html?name=streamID&playOrder=hls&token=tokenId
Then I get 403 Invalid token or cannot play media message with HLS.
Am I missing something in the current steps I'm taking? I am following the docs step by step, if I am missing something can someone inform me?
Question
Nathan Dalton
I have been coming across an issue with Ant Media not authorizing my one-time play tokens. I am on the latest version, am on enterprise edition and have turned on one-time tokens for play in settings of my live app.
I am following the docs at https://github.com/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation.
Send a get request (using postman) using the recommended scenario format: https://[iP_Address]:5443/<Application_Name>/rest/v2/broadcasts/<Stream_Id>/token?expireDate=<Expire_Date>&type=play
Copy tokenId from the response and insert it into format I wish to play (I've tried HLS and WebRTC): https://[iP_Address]/<Application_Name>/play.html?name=streamID&playOrder=hls&token=tokenId
Then I get 403 Invalid token or cannot play media message with HLS.
Am I missing something in the current steps I'm taking? I am following the docs step by step, if I am missing something can someone inform me?
Thanks, Nathan.
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Dec 2
2
Top Posters For This Question
Selim Emre 1 post
Nathan Dalton 1 post
Popular Days
Dec 2 2020
2 posts
1 answer to this question
Recommended Posts