as3视频缓冲区溢出(爆炸)

时间:2015-10-29 06:18:24

标签: actionscript-3 flash flash-media-server

ResolveVideoURL("rtmp://url");


function asyncErrorHandler(event:AsyncErrorEvent):void 
{ 
    trace(event.text); 
} 


function doPlay1() 
{
    //if( vns1 !=null )vns1.close(); vns1 = null ;

    vns1 = new NetStream(vnc1);
    vns1.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); 


    mv1.attachNetStream(vns1);
    //mv1.smoothing = true;
    vns1.bufferTime = 1 ;
    vns1.play(CVL2);

}

function ResolveVideoURL( Url: String  )
{
    var tmpLOC : int = Url.lastIndexOf("/");

    CVL1 = Url.slice( 0 , tmpLOC ); 
    CVL2 = Url.slice( tmpLOC + 1 ); 

    vnc1.connect(CVL1);
}



有没有人得到视频返回bufferLength溢出?如下图所示
它应该非常接近1,但要获得大量的
它的编码使用vp6,800Kb(流量)
http://i.stack.imgur.com/CO2Ww.png

0 个答案:

没有答案