JW Player can not play m3u8 stream?
- by why
with check this example, http://developer.longtailvideo.com/player/branches/adaptive/test/provider.html , I tried the example myself, There is my code:
<html>
<head>
<script type="text/javascript" src="jwplayer.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<title>Provider tests</title>
<style>
body { padding: 50px; font: 13px/20px Arial; background: #EEE; }
form { margin-top: 20px; }
#player { -webkit-box-shadow: 0 0 5px #999; background: #000; }
ul { margin-top: 40px; padding: 0 0 0 20px; list-style-type: square; }
</style>
</head>
<body>
Test M3U8
<div id="player">You need Flash to play these tests</div>
<script type="text/javascript">
jwplayer("player").setup({
file: '../m3u8/index.m3u8',
flashplayer: 'player.swf',
provider:'adaptiveProvider.swf',
height: 360,
width: 640
});
function loadStream(url) {
jwplayer("player").load({file: url,provider: 'adaptiveProvider.swf'});
jwplayer("player").play();
return false;
}
$(document).ready(function() {
loadStream('http://localhost/m3u8/index.m3u8');
});
</script>
<ul id="streamlist"></ul>
<div id="panel"></div>
</body>
</html>
But the Jw Play can not work
BTW: my vlc can play http://localhost/m3u8/index.m3u8 well