Using MaxCDN for paid or subscription-only video streaming
October 20, 2010 | David Henzel
Paid video website concept
One question many clients have is if they can use CDN for paid/subscriber-only video streaming. The short answer is “Yes”, but there’s a lot of work involved in building such structure.
As it known to all, CDN cannot run server-side scripting such as PHP, Ruby, and ASP etc… And such coding is usually required if you wish to provide paid video streaming service. However, it is still possible to utilize CDN Video Streaming service for your paid video streaming purposes.
The process has intermediate difficulty level, and it requires some coding skills and the implementation of a secure token.
The concept of the process is simple. First it will require videos to be embedded in a page that can only be viewed or accessed by those who are logged in to your website. Also the path for your videos will probably need to be stored in a database, and that’s the first step.
The second step is even easier.
Depending on whether or not your client is allowed to access the video, a request will be sent to your database to request the video to be embedded. If they’re in the allow list for the video to be streamed, they can get the video embedded in the page.
Now you may wonder, how is the Secure Token going to help? Secure tokens are meant to protect your video stream. Means the video can neither be downloaded nor leeched on other websites. This will make sure videos will play on your website “Only”.