Is there a way to stop download counts if the actual video has not been viewed?
Using this:
- Code: Select all
"url_to_storage_source" => true, "check_user" => true, "count_against_user" => true); ?>
NOTE:
If count_against_user is set to false, the video will become publicly viewable
Site scenario:
membership levels: A, B, C
A- Unlimited streaming via rmtp
B- Unlimited streaming via rmpt + 10 video downloads per/mo
C- Unlimited streaming via rmpt + 20 video downloads per/mo
and so forth
Now, when I click on the post that have the video/rtmp/jwplayer + the url to download the file, it counts as 1 Download and that's even before I do anything (Downloading the file or even play it)
I am assuming that using rtmp/S3/CloudFront, the Url generated acts as 1 available download.
Now, each post I view counts the same till all available downloads are exhausted and member get locked out.
I could use if_user_can but that's a messy code especially having more than 4 levels.
Any ideas!!
Thank You
Sam
Updates:
Well, It seems that removing count_against_user" => true from
- Code: Select all
"url_to_storage_source" => true, "check_user" => true, "count_against_user" => true); ?>
will do the trick as long you have
- Code: Select all
check_user" => true
Sam
Update 2:
After couple of tries, the JWPlayer player disappears when the count reach it's limits
Any Ideas of how to keep the Player and just limit the number of downloads