HDW Playerならバッファを持たせられる

映像配信

本ページは広告が含まれています。気になる広告をクリック頂けますと、サーバ運営費になります(^^

映像がカクついたり、途切れたりしないようにブラウザ側にバッファを持たせたい。
HTML5系のプレーヤだとその調整はできない事が分かった。じゃ、swf系のPayerだとどうなんだろう。

Best video player for website
404 Not Found

Buffer time:

This is the actual time taken for buffering the video. The default value is 3, this can be increased or decreased. By increasing the buffer time, the video will take some time to load, but will be played without any interruption. By limiting it, the video will not be buffered, but will be interrupted in between for buffering.

バッファタイムの調整ができそうな事が書いてある。

コンフィグファイルをどこにおくか(XMLで書いておく)
https://www.hdwplayer.com/standalone/web-video-player-properties/

hdwplayer({
id : ‘player’,
swf : ‘player/player.swf’,
width : ‘640’,
height : ‘360’,
config : ‘player/xml/config.xml’
});

コンフィグの書き方
https://www.hdwplayer.com/standalone/custom-web-video-player-configuration/

HTMLの書き方
https://www.hdwplayer.com/standalone/online-rtmp-player-streaming-configuration-in-website/

<html>
<head>
	<title>Sample Integration</title>
	<script src="player/js/hdwplayer.js"></script>
</head>
<body>

<div id="player"></div>

<script>
hdwplayer({ 
	id        : 'player',
	swf       : 'player/player.swf',
	width     : '705',
	height    : '400',
        type      : 'rtmp',
        streamer  : 'rtmp://edge01.fms.dutchview.nl/botr',
        video     : 'bunny.flv',
        rtsp     : 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
        hls     : 'http://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov/playlist.m3u8',
        autoStart : 'true'
});
</script>

</body>
</html>

 

実際に成功したHTMLの書き方(ストリームキーを video プロパティで指定する事に注意)

 

<html>
<head>
        <title>Sample Integration</title>
        <script src="./hdwplayer_1.0/player/js/hdwplayer.js"></script>
</head>
<body>

<div id="player"></div>

<script>
hdwplayer({
        id        : 'player',
        swf       : './hdwplayer_1.0/player/player.swf',
        width     : '1280',
        height    : '720',
        type      : 'rtmp',
        streamer  : 'rtmp://サーバIP/live',
        video      : 'test',
        autoStart : 'true',
        config  : './hdwplayer_1.0/player/xml/config.xml'
});
</script>


</body>
</html>

 

パソコンのLANを直接抜くと、すぐに切れてしまうのは変わらないが、間にHUBを一つ挟むと、バッファで指定した時間分経過後切れる。時々で変わるのではなく、だいたいその秒数後に切れるので、コントロールできそうだなという印象を受けた。

タイトルとURLをコピーしました