WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
CDN support in JW 6 (9 posts)

  1. georgeinmexico
    Member
    Posted 12 months ago #

    JW player 6 is not allowing me to serve files from the amazon cloudfront CDN using the w3 cache plugin.
    W3 replaces the root domain of the URL and uses the cloudfront.net URL to host the files.
    The JW player 5 plugin does allow serving files through amazon cloudfront.

    I reverted bibliyaaz.com to the JW player 5 plugin, but I would like to upgrade to version 6.

    Does the Plugin support this sort of CDN setup?

    Thanks.
    George

    http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

  2. JW Player
    Member
    Plugin Author

    Posted 12 months ago #

    I don't know exactly how W3 cache works. You say it does work with JW Player 5 plugin and not with 6?

    We would have to look into this. It seems that this should work, but I don't know the ins and outs.

  3. georgeinmexico
    Member
    Posted 12 months ago #

    I have the Jw5 plugin working well with W3cache and CDN to host all of the media on this site:
    https://shabibah.org/new-hear/

    <script type='text/javascript'>jwplayer('jwplayer-1').setup({"flashplayer":"https://d3djcla2qrh1bj.cloudfront.net/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf","width":"220","height":"24","controlbar":"bottom","dock":"false","autostart":"false","icons":"true","playlist.position":"none","playlistsize":"180","repeat":"none","shuffle":"false","bufferlength":"1","smoothing":"true","stretching":"uniform","wmode":"opaque","mute":"false","volume":"90","screencolor":"#fff","backcolor":"#fff","frontcolor":"","lightcolor":"","item":"0","provider":"","streamer":"","mediaid":"4258","image":"https://d3djcla2qrh1bj.cloudfront.net/wp-content/uploads/2013/04/play.png","file":"https://d3djcla2qrh1bj.cloudfront.net/wp-content/uploads/2012/ftp/ftpserver/kalima-maak/liqa-maahu/kalima16.mp3","title":"kalima16","creator":"","author":"","date":"2013-02-13 21:08:53","description":"","modes":[{"type":"html5","config":{"streamer":"","provider":""}},{"type":"flash","src":"https://d3djcla2qrh1bj.cloudfront.net/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf"},{"type":"download","config":{"streamer":"","provider":""}}]});</script></p>

    I am in development on http://bibliyaaz.com/ and can switch it between JW player 6 and 5. I would be happy to help get you the information you need.

    Here are the outputs of the JW 5 plugin vs the JW 6 plugin when used on this page:
    http://bibliyaaz.com/job/
    JW player 5 plugin output (This works with the CDN. Note the cloud front URL before the mp3 file):

    <meta property='og:type' content='movie' /><meta property='og:video:width' content='' /><meta property='og:video:height' content='' /><meta property='og:video:type' content='application/x-shockwave-flash' /><meta property='og:title' content='01 Job Az FI' /><meta property='og:description' content='' /><meta property='og:image' content='http://d16teo86s8yrix.cloudfront.net/wp-content/uploads/2013/04/scripture-photo.jpg' /><meta property='og:video' content='http://d16teo86s8yrix.cloudfront.net/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf?file=http://bibliyaaz.com/wp-content/uploads/2013/04/01-Job-Az-FI.mp3' /><style type="text/css" media="print">#wpadminbar { display:none; }</style>

    JW 6 output (note the lack of cloudfront url in the mp3 file:)

    <div class='jwplayer' id='jwplayer-0'></div><script type='text/javascript'>jwplayer('jwplayer-0').setup({"image":"http:\/\/bibliyaaz.com\/wp-content\/uploads\/2013\/04\/scripture-photo.jpg","file":"http:\/\/bibliyaaz.com\/wp-content\/uploads\/2013\/04\/01-Job-Az-FI.mp3"});
    </script>
  4. JW Player
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks for the debugging info. Can you tell me what shortcodes you used to embed this video? Both for version 5 and 6. Or did you use the same?

    If you've used a shortcode with a mediaid (or in other words, you've ingested the media from the media manager), can you tell me how you've added this item to the media library.

    I'm trying to reproduce this error on our testing server.

  5. georgeinmexico
    Member
    Posted 11 months ago #

    Thanks for your quick response.

    I would be happy to provide more information or follow test steps if you have recommendations.

    Here is a screen capture video of my upload process.
    http://www.screencast.com/t/FCHqVx65KvWZ

    I'm adding the media by creating a new wordpress post, Clicking "add media" and uploading a file through the media library overlay.

    Working configuration:
    http://shabibah.org/mixing/
    Wordpress 3.5.0
    JW Player Plugin for WordPress Version 1.7.1
    W3 Total Cache Version 0.9.2.8
    [jwplayer config="Video-player" mediaid="5391"]

    Not Working:
    http://bibliyaaz.com/job/
    Wordpress 3.5.1
    JW Player Plugin for WordPress Version 2.0.5 (when I reverted back to 1.7.1 the CDN started working)
    W3 Total Cache Version 0.9.2.8
    [jwplayer mediaid="40"]

  6. JW Player
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks for the elaborate information. I will investigate it an hopefully we can fix it in the next update.

  7. georgeinmexico
    Member
    Posted 9 months ago #

    Any progress on allowing JW 6 to work with the Amazon's Cloudfront CDN with w3 total cache?

    w3 total cache usually replaces the url prefix (probably using cURL), but the jw player 6 plugin doesn't let it.

    This page contains the same mp3 twice, one in the player and one as a link. w3 cache has rewritten the second link to point to the CDN.
    http://dev.shabibah.org/blog/cdn-test/

    This page has the same mp3 file playing in the JW 5 Player and the CDN url works!
    http://shabibah.org/palm-sunday/

  8. georgeinmexico
    Member
    Posted 9 months ago #

    Here is the code from the page called cdn-test. Media was uploaded using the media library uploader.

    [jwplayer mediaid="5447"]

    palm-sunday

  9. JW Player
    Member
    Plugin Author

    Posted 9 months ago #

    Your JW6 MP3 link plays for me.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.