video 頻寬 bandwidth 較高時 buffer 異常


目前使用 video頻寬bandwidth 超過 800Kb
會造成 buffer 異常或暴量之情況

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


has anybody ever get video return bufferLength overflow? like below image
it should be very close to 1 , but get a large amount of it
it's encoding use vp6 , 800Kb(flow)
http://i.stack.imgur.com/CO2Ww.png 
shareimprove this question
   
It shouldn't always be 1, because pausing the NetStream can increase the NetStream.bufferLength but it's really weird to get that value ! Could you add more details about the problem ? What did you exactly did to get that behavior ? Is it a recurrent behavior ? Did you tried different streams ? ... – akmozo Oct 29 at 12:56
   
I tried to use lower bandwith 400k , 200k , it was not happened , mostly in 800k , now I detect higher buffer happen , try to reconnect or connect another stream until buffer back to normal – nlstudio Oct 30 at 6:10

沒有留言:

張貼留言