Page 3 of 3

Re: Video On Overlay + File Download Restriction

PostPosted: January 14th, 2012, 9:20 pm
by Jason Caldwell
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.

Re: Video On Overlay + File Download Restriction

PostPosted: January 16th, 2012, 12:56 am
by weseoin
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.

Re: Video + File Download Restriction

PostPosted: January 16th, 2012, 8:58 am
by Jason Caldwell
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

Re: Video On Overlay + File Download Restriction

PostPosted: January 16th, 2012, 9:01 am
by Jason Caldwell
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

Re: Video + File Download Restriction

PostPosted: January 16th, 2012, 10:45 am
by weseoin
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:

Re: Video On Overlay + File Download Restriction

PostPosted: January 16th, 2012, 10:55 am
by weseoin
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" />