JW FLV Player Integration

Below is a video being played using the JW FLV player, and S3MediaVault supports it right out of the box.

Usage 1

Here’s the simplest JW Plugin with s3mv:

Note: Uses default JW settings for my site (set elsewhere)

[jwplayer file=[s3mv]YOURVIDEO.mp4,url[/s3mv]]

 

Usage 2

 

This text will be replaced


<script type='text/javascript' src='/jw/swfobject.js'></script>
<div id='mediaspace'>Check Out My Cool New Video</div>
<script type='text/javascript'>
var so = new SWFObject('/jw/player.swf','mpl','480','360','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('author','Ravi Jayagopal');
so.addVariable('description','Amazon S3 Plugin for JW Video Players');
so.addVariable('type','video'); so.addVariable('file',escape('[s3mv]YOURVIDEO.flv,url[/s3mv]'));
so.write('mediaspace');
</script>

This usage is what you’re seeing in the demo above.

13 Comments »

  1. Al Said,

    April 14, 2010 @ 2:26 am

    Hi Ravi does this support multipule bit rate streaming from Amazon Cloud EC2 ?

    Thanks.
    Allan

  2. Ravi Jayagopal Said,

    April 14, 2010 @ 9:29 am

    Al,

    S3MediaVault doesn’t work with EC2 at this time. Hopefully in a future version.

    - Ravi Jayagopal

  3. James Said,

    September 27, 2010 @ 8:09 am

    Hi Ravi,
    Will this work with .mp4 files? What would the code look like?

  4. Ravi Jayagopal Said,

    September 27, 2010 @ 1:13 pm

    Yes, it works with mp4 files. Code is the same – nothing different. Just your file name would end with the .mp4 extension, that’s all.

  5. Sophia Wilson Said,

    October 6, 2010 @ 3:19 pm

    the best video player that i use is none other than VLC Player, it is free and i think it is open source too,*-

  6. Ravi Jayagopal Said,

    October 6, 2010 @ 4:44 pm

    Sophia,

    VLC is desktop-software – it’s video player that only plays videos saved on your computer. It can’t play videos in a web browser. So your customers can’t see the videos on your site – like say, if you went to YouTube.com .

    They would have to download it first to their desktop before they can even see it. So it’s like comparing apples and oranges.

    - Ravi Jayagopal

  7. Devin Best Said,

    December 7, 2010 @ 3:09 am

    Ravi,

    I have already purchased a license to the Contus HD player…any idea if your plugin will work with h.264 sites hosted on S3 with Contus?

    Thanks.

  8. Ravi Jayagopal Said,

    December 7, 2010 @ 4:16 pm

    Devin,

    We’ve never tested using Contus, so really don’t know if it would work. Sorry about that.

    - Ravi Jayagopal

  9. Aaron Said,

    January 7, 2011 @ 7:28 pm

    I got this working with the JWembedder on a pc, but not on iphone by putting in the [s3mv]test.mp4,url[/s3mv] in for the filename. Any idea on how to get it to work on iPhone? It loads the player, but not the file. Also, any idea on how to prevent the files from caching on the user’s PC?

    jwplayer(“thePlayer”).setup({
    flashplayer: “player.swf”,
    file: “file.mp4″,
    height: “270″,
    width: “380″
    });

  10. Ravi Jayagopal Said,

    January 9, 2011 @ 5:22 am

    Aaron,

    Not sure. Is that the JW Player code for HTML5?

    Also, no way to prevent browser caching at this time. It shouldn’t be a problem, because only those who’ve already had access to the video can view it again because the browser cached it. Not anyone else.

  11. Jess Said,

    August 13, 2011 @ 2:26 am

    Hey Ravi,

    I left a comment elsewhere about jwplayer’s new plugin ability. After a few hours debug I found my mistake in coding. Here’s the simplest JW Plugin with s3mv:
    Note: Uses default JW settings for my site (set elsewhere)

    [jwplayer file=[s3mv]videos/offers/gold-pan.mp4,url[/s3mv]]
    That’s about as clean a video setup as you can get ;-)

  12. Ethan Said,

    March 13, 2012 @ 1:45 pm

    I’m wondering about the JW Player plugin/shortcode integration. Is Jess’s solution above workable?

    Is it possible to have an updated tutorial about JW Player functionality.

  13. Ravi Jayagopal Said,

    March 17, 2012 @ 4:48 am

    @Ethan: Yes, Jess’s solution works just fine.

Leave a Comment