Jump to content
  • 0

AMS EE 2.2.1 One-Time Play Tokens Not Being Authorized


Nathan Dalton
 Share

Question

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.

  1. 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

  2. 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

  3. 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

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...