Playing HLS m3u8 file.
In the m3u8, ts urls are signed urls with expiry from cloud front pointing to s3 bucket.
JWplayer does not play the m3u8 when in flash mode returning "http code 0"
- Install flash debugger for firefox
- go to ~/Library/Preferences/Macromedia/Flash\ Player/Logs
tail -f flashlog.txt
*** Security Sandbox Violation ***
Connection to <url> halted - not permitted from http://p.jwpcdn.com/6/12/jwplayer.flash.swf
Error: Request for resource at <url> by requestor from http://p.jwpcdn.com/6/12/jwplayer.flash.swf is denied due to lack of policy file permissions.
WARNING: For content targeting Flash Player version 14 or higher, ExternalInterface escapes strings using JSON conventions. To maintain compatibility, content published to earlier Flash Player versions continues to use the legacy escaping behavior.
- Create and upload crossdomain.xml to s3 bucket
- Make the file public
- Add behavior to cloud front with pattern crossdomain.xml with no signed url or expiry
- After the cdn updates you will be able to play your HLS playlist