1336205 ランダム
 HOME | DIARY | PROFILE 【フォローする】 【ログイン】

パソコン王者

パソコン王者

【毎日開催】
15記事にいいね!で1ポイント
10秒滞在
いいね! --/--
おめでとうございます!
ミッションを達成しました。
※「ポイントを獲得する」ボタンを押すと広告が表示されます。
x

PR

Recent Posts

Free Space

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

https://www.hdwplayer.com/

ドキュメントの中に
http://www.hdwplayer.com/hdw-player-opencart-general-setup/
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/


Sample Integration







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'
});





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


Sample Integration







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'
});






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






お気に入りの記事を「いいね!」で応援しよう

Last updated  Oct 8, 2016 06:13:27 PM
コメント(0) | コメントを書く



© Rakuten Group, Inc.