java - JWPlayer with RMTP and HTML5 with Amazon CloudFront -


i'm trying use amazon cloudfront stream/download videos using jwplayer.

firstly, s3 bucket is: miemiebucket.s3.amazonaws.com, , put in 2 videos, mov , mp4 respectively.

then went cloudfront , created 2 distributions, streaming , download, are:

s2y3u5i4t1fkbz.cloudfront.net (streaming) dkgitv33rxgy.cloudfront.net (downloading)

i went jsp file , tried 3 different settings jwplayer

  1. the 1 in documentation:

    out.println("<div id=\"myelement\">loading player...</div>"); out.println("<script type=\"text/javascript\">"); out.println("jwplayer(\"myelement\").setup({"); out.println("file: \"http://content.bitsontherun.com/videos/3xnjsim4-knspjqnj.mp4\","); out.println("});"); out.println("</script>"); 

which works expected

  1. i figured out html player. hence switched file:

    out.println("file: dkgitv33rxgy.cloudfront.net\somevideo.mov","); 

    however cannot play

  2. then tried rmtp:

    out.println("'file': 'rtmp://s2y3u5i4t1fkbz.cloudfront.net/somevideo.mov',"); 

both 2 , 3 has error:

    error loading player: no playable sources found 

2 , 3 doesn't work, 1 works, i'm guessing there setting not configured amazon cloudfront? used no restricted access wouldn't need sign url. when typed in:

    http://dkgitv33rxgy.cloudfront.net\somevideo.mov 

i download file when set somevideo.mov public.

i set bucket public bucket make sure there no problem connecting through browser.

very confused jwplayer , cloudfront, had had problem before?

edit: solution at: primary , fallback (rmtp , html5) jwplayer 6


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -