FlowPlayer 3 에서....

2012. 12. 5. 11:53프로그래밍/Jscript

Plugin 으로 RTMP를 사용했을 때..


이상하게... autoplay 를 하면 영상을 처음부터 시작하는데.. Controllbar 가 끝으로 가있는 문제가.. 보였다..

어잉.. 뭐지 하고 이리절 Doc 뒤지니.. durationFunc: 'getStreamLength' 라는게 보인다.. 

해봤더니.. 되네;;; 멀까 이녀석...


flowplayer("player3", {src: "/flash/flowplayer/flowplayer.swf", wmode: 'opaque'}, {

debug : true,

onBeforeLoad:function(){

},

onLoad:function(){

console.log("Sdfs");

},

clip: {

autoPlay: true,

autoBuffering: true,

scaling: 'fit',

provider: 'rtmp',

onBegin : function()

{

alert("start");

}

},

plugins: {

controls: {

stop: true,

autoHide: false

},

rtmp: {

url: '/flash/flowplayer/flowplayer.rtmp.swf',

netConnectionUrl: 'rtmp://1.../vod',

durationFunc: 'getStreamLength'

}

}

});