test

it2022-05-05  132

 1          private  function  checkBuffer(): void  {  2               // trace('checking buffer  bufferLength:' + _netStream.bufferLength);  3               if  (_netStream.bufferLength  <  . 5   &&  _isBuffering  ==   false ) {  4                  _isBuffering  =   true ;  5                  dispatchEvent( new  VideoEvent(VideoEvent.START_BUFFERING,  false false , _state, playheadTime));  6              } else   if (_netStream.bufferLength > _netStream.bufferTime - . 5   &&  _isBuffering  ==   true ){  7                  _isBuffering  =   false ;  8                  dispatchEvent( new  VideoEvent(VideoEvent.STOP_BUFFERING,  false false , _state, playheadTime));  9              } 10          }

 

dgsdfg

转载于:https://www.cnblogs.com/romeroad/archive/2010/02/02/1661483.html


最新回复(0)