Build the best video experiences
APIs that enable you to delight your viewers
Why You Need OTP for Secure Streaming
Non-secure video platforms enable video embed through iFrames. These iFrames however can be used by anybody to download or share the video.
VdoCipher uses a unique embed code per session to play videos. This embed code uses a short-lived access token, called an OTP. Our use of an OTP ensures that videos are authenticated in every session, so that only logged in paying users get to watch your premium content.
How to generate OTP
- You can find the API secret key for your account by logging into the Dashboard -> Config tab.
- To generate OTP, your site backend has to make HTTP POST request to API server using the API secret key.
- Your site backend also has to generate PlaybackInfo by encoding videoID in base64 string
- OTP and Playback Info are added to video embed code
Sample Code for HTTP POST request to API server with Secret key
$ curl -X POST https://dev.vdocipher.com/api/videos/VIDEOID/otp -H 'authorization: Apisecret _________'
Pseudocode to generate PlaybackInfo using Base64 encoding
let policy = base64_encode(json_stringify( videoId: "VIDEOID" ));
Integrating VdoCipher Embed Code
VdoCipher Support is always there for you
As you can see, adding security features to videos creates additional steps to your workflow beyond simply adding a single embed code.
We fully understand that there might be things that you would need our help for. Our support executives are available at all times to help you secure your encrypted videos to your site.
We are fully committed to providing you Hollywood-level DRM for your invaluable intellectual property, and to support you in creating your video-based business.