"Pay per view" in Ez-flow

Author Message

Peter Scott

Tuesday 22 April 2008 8:17:41 pm

This is mentioned in a number of places but I can not find any detail of how to do this.
1. Is there anyone that has set this up?
2. Subscription access is another requirement. Can see how I could do this by permissions set on member areas but need to automate the suscription as though it is a product and the customer simply chooses their desired level and/or time of subscription and the period of subscription is handled by the system. Any suggestions?

Maxime Thomas

Tuesday 22 April 2008 11:34:46 pm

I have already done that but it was a specific development.
:-/
And I don't know if it is a feature of eZP.

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

Piotrek Karaƛ

Wednesday 23 April 2008 12:16:01 am

Maxime,

Would it be possible for you to share some details of the implementation? General things - is that for eZ Flow only or for eZ content in general? Did you use some dynamic role assignments or some other, dedicated method? That would be great.

Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Peter Scott

Wednesday 23 April 2008 12:32:20 am

Thanks Maxime, have the red5 part of your blog working to the same point that you have and was looking for the next step to stream the content that is currently being recorded to the website.

Maxime Thomas

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:13:29
Script start
Timing: Jan 18 2025 04:13:29
Module start 'layout'
Timing: Jan 18 2025 04:13:29
Module start 'content'
Timing: Jan 18 2025 04:13:29
Module end 'content'
Timing: Jan 18 2025 04:13:29
Script end

Main resources:

Total runtime0.1441 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.0703152.6250
Module start 'layout' 0.00740.0026 741.695339.4453
Module start 'content' 0.01010.1325 781.1406607.5391
Module end 'content' 0.14260.0015 1,388.679716.1563
Script end 0.1441  1,404.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.8000160.0003
Check MTime0.00171.1496160.0001
Mysql Total
Database connection0.00120.856910.0012
Mysqli_queries0.081456.4483670.0012
Looping result0.00070.4622650.0000
Template Total0.110476.620.0552
Template load0.00322.239120.0016
Template processing0.107174.332120.0536
Template load and register function0.00020.148610.0002
states
state_id_array0.00090.602210.0009
state_identifier_array0.00060.443420.0003
Override
Cache load0.00261.8287340.0001
Sytem overhead
Fetch class attribute can translate value0.00050.351530.0002
Fetch class attribute name0.00130.924970.0002
XML
Image XML parsing0.00140.953230.0005
class_abstraction
Instantiating content class attribute0.00000.011680.0000
General
dbfile0.00120.8316230.0001
String conversion0.00000.005640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs