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
转载请注明原文地址: https://win8.8miu.com/read-4783.html