I followed the following tutorial: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingJWPlayer.html
And I hosted my html codes inside localhost (at the moment). I get the player opened but player do not play any videos. It just keep rotating (indicating its still loading). But nothing buffers or nothing else happens.
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="jwplayer.js"></script>
</head>
<body>
<div id='mediaplayer'>This text will be replaced</div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
flashplayer : 'jwplayer.flash.swf',
width: '720',
height: '480',
file: 'rtmp://sxxxxxx.cloudfront.net/cfx/st/a.mp4'
});
</script>
</body>
the a.mp4 file has marked public in the S3 bucket. I also created another http download for cloud front and if I just put the following URL file gets downloaded.
http://dxxxxxx.cloudfront.net/a.mp4