All Collections
Platform Documentation
Restriction to your account content with Closed Access 2.0
Restriction to your account content with Closed Access 2.0

Here's how to set up Closed Access for your VOD content with the latest Access restrictions update.

Miguel Giraldo avatar
Written by Miguel Giraldo
Updated over a week ago

Closed Access is an option used to restrict access to all or a specific content. By enabling this option a consumption token is required. With the new Access Restrictions 2.0 module, you have the option to configure the closed access independently for media and for live.

This option is activated in the Settings > Access Restrictions Module.

Once inside the module, go to the Media Default or Live Default options, on the right, click on the Actions icon.

Within the displayed interface, go to the Closed Access section, there check the Enable option, once done, save the changes.

By selecting this option, permissions will be applied to all Media or Live content available in your account.

If you don't want to apply this option for a certain content, just go to it and activate the Do not use access restrictions checkbox, this way all your content will have "Closed Access" applied, except for the Media or Live that you did not configure with this option.

Token generation:

First, the API must be queried from Platform, using the read and write tokens of your account.

The use of these tokens is personal. You must use them to query our API as indicated in the following image:

In order to generate the Access Token that will allow the content consumption, a POST query is made to the API. The following image explains the parameters required for the query:

With the Access Token already generated, you must implement it as follows:

Usage example: embed (iFrame)

<iframe scr="https://mdstrm.com/embed/502de05313c18fea0800009a?access_token=XfD5xl27myDE7z4NaFS11HKZr3FX5fgb7umNgSxdxHc33Y9ACcF9361xzc1ovIIUWDuXIYfHPp"></iframe>

Usage example: Playlist

https://mdstrm.com/video/502de05313c18fea0800009a.m3u8?access_token=XfD5xl27myDE7z4NaFS11HKZr3FX5fgb7umNgSxdxHc33Y9ACcF9361xzc1ovIIUWDuXIYfHPp

Note: The generation of access tokens must be requested from the backend of your application or CMS, and must be implemented by your development area. Contact them and your account administrator to do it.


If you have any related questions please feel free to write to us via chat.

Atte. Mediastream team

Did this answer your question?