I’m trying to get JWplayer to play videos on amazons3/cloud front with streaming.
I’ve followed the instructions on how to set it up here:
http://www.s2member.com/videos/BD496E5F2CCAB12A/
But all I get just a blank space where the video would be, or a black space.
I found that the shortcodes end up with
in places, but either way it doesn’t work with shortcode or with PHP version.
This is the actual code on the page:
<div id="jw-container">JW Player® appears here.</div>
<p></p>
<p>
jwplayer('jw-container').setup({
playlist:
[{
sources: // List all available sources.
[
{type: 'rtmp', file: 'rtmp://s3q8kkqz30z3e9.cloudfront.net/cfx/st/mp4:MagnetFactor.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiTWFnbmV0RmFjdG9yLm1wNCIsIkNvbmRpdGlvbiI6eyJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMTEwLjE3NS4xNjYuMi8zMiJ9LCJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTM2NDI3NTcyNH19fV19&Signature=CL4QColo6WhvtJfm5pAFagjue4bHj1EIwpJgJTHTgvUgzREyO09HEWLTK1A~8DzTQ7ntEheRApNVF6gNMJNpEHza1J-Uf21mJVgNqMGYJdzNv-uoZy7~lzhKJqnJwnobTznKnb~plmUHv-RwQ1J-XH9QxSfw-6dLPCOwxwVEZY8_&Key-Pair-Id=APKAIQTBLM4OTJKEM5FQ'},
{type: 'mp4', file: 'http://d2cg986eozdly7.cloudfront.net/MagnetFactor.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL2QyY2c5ODZlb3pkbHk3LmNsb3VkZnJvbnQubmV0L01hZ25ldEZhY3Rvci5tcDQiLCJDb25kaXRpb24iOnsiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjExMC4xNzUuMTY2LjIvMzIifSwiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEzNjQyNzU3MjR9fX1dfQ__&Signature=fZWJujEfkyz9wbUKUv5aFv6GAQjGP8rhDEM0-FFSgZn6oBVgIKuWL7Va91QMnFdGbn-BxPUI~ayugWSDQ~CV6TFbbVtYmC679x3A-V1aT9h4nYdALdydBodRfEqnrwXo6g9Jl9VViZoN0yCvk~teOerDeiqB0y~0dAe1MhDJs5E_&Key-Pair-Id=APKAIQTBLM4OTJKEM5FQ'}
]
}],
primary: 'flash' /* Try Flash® RTMP first, fallback on HTML5 or direct download of MP4 file. */,
width: 480, height: 270 // Set video dimensions for all sources.
});
</p>
This is the video that works fine if you put it in the browser
http://nakedtruthclub.com/academy/?s2member_file_download=/MagnetFactor.mp4
But won’t play in the player!