日期:2014-05-17 浏览次数:21105 次
<html> <head> <script type="text/javascript" src="jwplayer.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> <div id="player">You need Flash to play these tests</div> <script type="text/javascript"> jwplayer("player").setup({ //autostart: true, //controlbar: "none", file: "http://localhost/aaa/10038.m3u8", duration: 57, flashplayer: 'player.swf', volume: 80, width: 720, plugins: { 'qualitymonitor.swf':{} }, provider:'adaptiveProvider.swf', }); function loadStream(url) { var thisurl= document.getElementById("stream_url").value;; jwplayer("player").load({file: thisurl,provider: 'adaptiveProvider.swf'}); jwplayer("player").play(); return false; } </script> <input type="text" name="stream_url" id="stream_url" /> <input type="button" onclick="loadStream()" value="loadStream" /> </body> </html>