この例をチェックしてください, http://developer.longtailvideo.com/player/branches/adaptive/test/provider.html , 私は自分で例を試しました. 私のコードがあります:
<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>
しかし、Jw Playは機能しません
ところで:私のvlcはhttp://localhost/m3u8/index.m3u8
うまくプレイできます