Wednesday 23 April 2008 12:25:36 pm
Hi Piotrek,
It was a specific development for eZ 3.8.x as far as I remember.
We have implemented a custom table in which we put an authentication key and a user id when the user has bought the movie.
Then, the movie appeared in his list of movie available and if clicked, he can watch it. If he tried to access it directly, he gets an error message and we redirect him to a know page, homepage.
To be sure that the movie has been watched by an authorized customer, we implemented a kind of client / server service :
- all links for videos were at video.server/auth.php?file=id&key=key&userid=userid
- the server checked the key and the userid in - the server then responded by sending the file or false. In the template, client side, we have implemented an operator which gets the key of the video the customer would like to watch and generate the right url. As it was in a custom module, we implemented some classic "Functions" policies. That's all. If you would like to make a pay per view mecanism you just have to remove the key from the custom table. Easy ?
Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou
Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas
|