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™
<embed
flashvars="type=video&file=<?php echo urlencode("http://www.example.com/?s2member_file_download=video.mp4&s2member_file_inline=yes"); ?>"
allowfullscreen="true"
allowscripaccess="always"
src="player.swf"
width="480"
height="270"
/>
<embed type="application/x-shockwave-flash" src="http://www.sample/player.swf" style="" id="ply" name="ply" bgcolor="#000000" quality="high" allowfullscreen="true" allownetworking="all" allowscriptaccess="always" flashvars="file=http://www.sample.com/?s2member_file_download=video.flv&s2member_file_inline=yes&type=video&wmode=opaque" height="720" width="480">
drbyte wrote:If you are using JW plugin then you need to add type=video to the flashvars
Go to the JW plugin then to the Advanced Settings tab..scroll all the way to the bottom and you will see
Additional Flashvars add this to the flashvars: filed: type=video
Save and try inserting this short code:
[jwplayer config=”myplayer” file=”http://www.sample.com/?s2member_file_download=video.flv&s2member_file_inline=yes”]
Also..it depends on what browser you use...if IE <9 then you need to embed using the Object tags...
<object classid='clsid:D27CDB6E-AE6D-11cf-96...................</object>
Try using the short code above....make sure you add the flashvars first
Correction: you might need to add & before the type=video
meaning:
&type=video to the JW plugin Flashvars
Try this if all fail:
Add those to the JW Plugin Flashvars:
&s2member_file_inline=yes&type=video
then the short code would be:
[jwplayer config=”myplayer” file=”http://www.sample.com/?s2member_file_download=video.flv”]
If it does not work then it might be that the JW Plugin can't understand the ?s in the url above
Sam
Sam
<?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" />
[WS-T-Video src="[mp4|flv]" width="100%" height="400" autostart="false" /]
[WS-T-Video src="http://example.com/?s2member_file_download=video.flv&s2member_file_inline=yes" width="100%" height="400" autostart="false" /]
nonprotected file
[flowplayer src='http://trulysimpletech.com/videotest/testmovie.mp4']
protected file inline
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_inline=yes']
protected file no inline
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4']
[jwplayer config=”myplayer” file='http://trulysimpletech.com/videotest/testmovie.mp4']
protected jw inline
[jwplayer config=”myplayer” file=”http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_inline=yes”]
protected jw no-inline
[jwplayer config=”myplayer” file=”http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4”]
[jwplayer config="my_player" file="http://www.mysite.com/?s2member_file_download=testvideo.mp4" image="http://www.mysite.com/wp-content/uploads/2011/05/stillframe.jpg"]
flick wrote:I know this thread is primarily about Video restrictions, but as the title also includes 'file download', I was wondering whether it was possible to use S2Members to restrict file downloads by Member access level please?
e.g. Level 1 can access certain file downloads (or videos) but Level 2 can access these and even more?
<script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
<script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.6.min.js"></script>
<script src="http://static.flowplayer.org/js/flowplayer.ipad-3.2.2.min.js"></script>
<script>
jQuery(document).ready(function($) {
$(".scrollable").scrollable();
// setup overlay actions to buttons
$("a[rel]").overlay({
// use the Apple effect for overlay
effect: 'apple',
expose: '#111',
onLoad: function(content) {
// find the player contained inside this overlay and load it
this.getOverlay().find("a.player").flowplayer(0).load();
},
onClose: function(content) {
$f().unload();
}
});
// install flowplayers
$("a.player").flowplayer("http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
});
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests