PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Video + File Download Restriction

s2Member Plugin. A Membership plugin for WordPress®.

Re: Video On Overlay + File Download Restriction

Postby Jason Caldwell » January 14th, 2012, 9:20 pm

Thanks for this great question.
weseoin wrote:
Jason Caldwell wrote:With FlowPlayer, all videos require a FlashVar configuration, and with s2Member it's the same.

Jason,

Can you suggest any tips on showing s2member-restricted video with FlowPlayer on an *overlay*? I want to display my videos 960x540, but the space in my WordPress post can accommodate no more than 620 width. This is the reason I need the overlay.

FlowPlayer does give the jquery script for overlay, but I am not sure this will work with s2member download restrictions.

Any help will be greatly appreciated.
Based on the examples provided here, for this Overlay script provided by FlowPlayer, see: http://flowplayer.org/demos/tools/overlay.html

All you'd need to do is use s2Member's Advanced Mod Rewrite Linkage in this section of the example.
Code: Select all
    <!-- flowplayer container -->
    <a id="player" href="http://example.com/wp-content/plugins/s2member-files/video.mp4">
    
        
<!-- some initial content so that player is not loaded upon page load -->
        &nbsp;
    </a> 
You will find full details on s2Member's Advanced Mod Rewrite Linkage in your Dashboard, under: s2Member -> Download Options -> Advanced Mod Rewrite Linkage. This method of linking to protected files is recommended when you're dealing with media playback devices.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Video On Overlay + File Download Restriction

Postby weseoin » January 16th, 2012, 12:56 am

Jason Caldwell wrote:Thanks for this great question.
Based on the examples provided here, for this Overlay script provided by FlowPlayer, see: http://flowplayer.org/demos/tools/overlay.html

All you'd need to do is use s2Member's Advanced Mod Rewrite Linkage in this section of the example.
Code: Select all
    <!-- flowplayer container -->
    <a id="player" href="http://example.com/wp-content/plugins/s2member-files/video.mp4">
    
        
<!-- some initial content so that player is not loaded upon page load -->
        &nbsp;
    </a> 
You will find full details on s2Member's Advanced Mod Rewrite Linkage in your Dashboard, under: s2Member -> Download Options -> Advanced Mod Rewrite Linkage. This method of linking to protected files is recommended when you're dealing with media playback devices.

Thanks Jason for the tip. I'll be trying this out now. I believe that not mentioning '&s2member_file_inline=yes' in the URL will not be an obstacle.

The one problem is how to test whether it's working!! Because, once the video is in the protected directory (s2member-files), the administrator may not be able to test if the whole thing works! Is there any way I can do the testing as administrator?

Jason, I need another help with regards to your post on May 31 last. In that you've given the following code for embedding video with FlowPlayer:

Code: Select all
<?php
$config = "{'clip':{'url':'http://example.com/?s2member_file_download=video.mp4&s2member_file_inline=yes','autoPlay':false,'scaling':'orig'}}";
?>
<embed src="flowplayer.swf" flashvars="config=<?php echo rawurlencode($config); ?>" width="100%" height="400" allowfullscreen="true" type="application/x-shockwave-flash" />

My question is: how can I have a start image instead of a blank screen in the video?

Many thanks for the help.
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Re: Video + File Download Restriction

Postby Jason Caldwell » January 16th, 2012, 8:58 am

In the s2Member documentation (i.e. in your Dashboard), for Advanced Mod Rewrite Linkage, you will see that it's possible to specify the inline directive there as well. See example below please.
Code: Select all
<!-- flowplayer container -->
    <a id="player" href="http://example.com/wp-content/plugins/s2member-files/s2member-file-inline/video.mp4">
    
        
<!-- some initial content so that player is not loaded upon page load -->
        &nbsp;
    </a> 
SNAG-0013.png
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Video On Overlay + File Download Restriction

Postby Jason Caldwell » January 16th, 2012, 9:01 am

weseoin wrote:My question is: how can I have a start image instead of a blank screen in the video?

Many thanks for the help.
Please check the documentation at Flowplayer for this.
See: http://flowplayer.org/demos/installatio ... image.html
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Video + File Download Restriction

Postby weseoin » January 16th, 2012, 10:45 am

Jason Caldwell wrote:In the s2Member documentation (i.e. in your Dashboard), for Advanced Mod Rewrite Linkage, you will see that it's possible to specify the inline directive there as well. See example below please.

Thanks Jason. I should have seen this! :oops:
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Re: Video On Overlay + File Download Restriction

Postby weseoin » January 16th, 2012, 10:55 am

Jason Caldwell wrote:
weseoin wrote:My question is: how can I have a start image instead of a blank screen in the video?

Many thanks for the help.

Please check the documentation at Flowplayer for this.
See: http://flowplayer.org/demos/installatio ... image.html


Pardon for not being able to get it, but how can I use the image tag <img /> in the following code?

I tried these instructions, http://flowplayer.org/demos/plugins/str ... frame.html, but couldn't succeed!

Code: Select all
<?php
$config = "{'clip':{'url':'http://example.com/?s2member_file_download=video.mp4&s2member_file_inline=yes','autoPlay':false,'scaling':'orig'}}";
?>
<embed src="flowplayer.swf" flashvars="config=<?php echo rawurlencode($config); ?>" width="100%" height="400" allowfullscreen="true" type="application/x-shockwave-flash" />
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Previous

Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

cron