VideoKit SDKs let you play different kinds of assets (videos, live streams) and protect the playback
Tokens. To understand how it works, you should first of all familiarize with the
PlaybackPolicy.PUBLIC|The given asset can be accessed by url publicly without any kind of signature. Anyone who knows the url will be able to play the asset.|
PlaybackPolicy.SIGNED|The asset playback is protected by a signature. The content can only be accessed by adding a token query parameter to the url.|
The playback policy is defined at the time of creating the asset. In the case of videos,
this means that it is specified in the video
After creation, it can also be retrieved at any time using
To play the content of an asset which is marked as
SIGNED, a signature token must be passed to
TokenRegistry. Tokens are JWT strings that contain all the information needed to
determine whether the content can be accessed or not.
The SDK components will automatically access the token at playback time and modify the url accordingly when needed.
For instructions on how to generate the tokens, please refer to the
Signed Playback tab in
your app settings in the video.io dashboard.