VideoJS-SWF プレーヤーをフラッシュ フォールバックとして使用して RTMP ストリーミングを処理するように VideoJS をセットアップしたいと考えています。
これは、通常の MP4 ビデオ用に VideoJS をセットアップする方法です。
var tag = document.createElement("video");
tag.id = "vid1";
tag.controls = true;
tag.className = "video-js";
tag.preload = "auto";
tag.width = "640";
tag.height = "264";
tag.poster = "http://video-js.zencoder.com/oceans-clip.png";
var source1 = document.createElement("source");
source1.src = "http://video-js.zencoder.com/oceans-clip.mp4";
source1.type = "video/mp4";
tag.appendChild(source1);
// Add more sources, etc...
document.getElementById('player').appendChild(tag);
var player = _V_(tag, {width:640, height:264, techOrder:['flash', 'html5']}, function() {
var that = this;
this.addEvent('loadstart', function { that.play(); });
});
しかし、RTMP ストリームを再生するように VideoJS を設定するにはどうすればよいでしょうか? 同じタグを使用していますか、それとも RTMP プロバイダーとストリーム URL を指定する別の方法がありますか?