Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • To create an authenticated URL for listeners, developers need to call an API with a secret service Token (used only for server side calls). Each URL is valid for 12 hours (720 minutes) and after its expiration, the URL will no longer be authenticated. Once a listener connects, they can audition the stream with no limit to the duration of the session, but after the URL expires, the listener will need a new URL to connect to.

  • Account administrators in Revma will need to set the appropriate actions and rules at the ‘Session Rules’ tab.

...

Create a rule with priority set to ‘0'. Set ‘AUTH’ as ‘Source Type’. Connect the rule with the stream ‘sxfa973t8d’ and with the ‘Continue’ action 'Authenticated-Listeners-Access’.

...

Create an addtional additional rule with priority set to ‘5'. Set ‘Any Source’ as ‘Source Type’. Connect the rule with the stream ‘sxfa973t8d’ and with the ‘Vast' action 'Vast-Ads-for-non-authenticated-listeners’.

...

Listeners trying to connect via the non-authenticated stream URL (https://stream.rcs.revma.com/sxfa973t8d) will be granted access to the version of the stream with ads.

Info

The authenticated URL is by default valid for 12 hours (720 minutes). This duration can be altered from by adding the parameter “minutes” in the query string.

Example:

GET request
URL: https://www.revma.com/api/stations/sxfa973t8d/private_stream_token?minutes=120