Hey Philly,
It actually works really well – thanks! I just need to point to some SD versions of my files, and I think it’ll be good to go. This is what I ended up using:
[s2If current_user_can(access_s2member_level0)]
<div align="center">
<div id="jw-container">JWPlayer goes here</div>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<?php /* A direct URL to the RTMP source; counting the file against the current User in real-time. */
$mp4_cfg = array ("file_download" => "B1_knitPad_kfb.mp4", "url_to_storage_source" => true, "count_against_user" => true);
$mp4hd_cfg = array ("file_download" => "AB3_knitPad_LTCO.mp4", "url_to_storage_source" => true /* Don't count variations. */); ?>
<?php if (($mp4 = s2member_file_download_url ($mp4_cfg, "get-streamer-array"))
&& ($mp4hd = s2member_file_download_url ($mp4hd_cfg, "get-streamer-array"))) { ?>
<script type="text/javascript">
var options = {
file: "<?php echo $mp4["url"]; ?>",
image: "<?php echo get_bloginfo( 'siteurl' ) ; ?>/poster.jpg",
height: 270,
width: 480,
skin: "<?php echo get_bloginfo( 'siteurl' ); ?>/jwplayer/skins/stormtrooper/stormtrooper.zip",
modes: [
{ type: "flash",
provider: "rtmp",
src: "/jwplayer/player.swf",
config: {streamer: "<?php echo $mp4["streamer"]; ?>", file: "<?php echo $mp4["file"]; ?>"}
},
/* switch to html5 player if no flash support */
{ type: 'html5' },
/* Download the file. */
{type: "download",
config: {file: "<?php echo $mp4["url"]; ?>"}}
],
/* Start plugins. */
plugins: {
'hd-2': {file: '<?php echo $mp4hd["url"]; ?>'},
'lightsout-1':{'dock':'true', 'oncomplete':'on'},
'timeslidertooltipplugin-2':{},
'tweetit-1':{},
'fbit-1':{}
},
};
jwplayer("jw-container").setup(options);
</script>
<?php } else /* Access is denied to the current User. */ { ?>
Sorry, this video does not exist yet or you do NOT have access to this file.
<?php } ?>
</div>
[/s2If]
The lightsout plugin still isn’t 100% functional, but that’s a whole other issue. I’ve reached out to LongTail for more info on that. Thanks so much for your help with this!!