Home » Software

In Flash CS4, why does the netstream video buffer go through buffer empty and buffer full events, even though bytesLoaded equal bytesTotal?

Oct

31

2010

For a progressive download, I am using H264 transcode mp4 and flv files with CS4. I have set the bufferTime to 5 secs, so that the video quickly loads at the start and also regains buffer quickly after the buffer.empty event in the course of video play. While my player takes buffering breaks if the buffer is emptied, I am totally taken aback with the performance of youtube.

Is there something that I am missing? Please correct me if I am wrong – as per my experience, the bytesLoaded decide if the video can be seeked to the point translating bytesLoaded to time, meaning, for seeking to any point within the video time, the calculation is (bytesLoaded/bytesTotal >= seeked-time/total-video-time).

Although, even if the bytesLoaded equals bytesTotal, why should the video encounter intermittent buffer empty and buffer full states? With my knowledge, I can assert that even if the bytesLoaded equals bytesTotal, the buffer empty and full events are entirely related with the bufferLength. Meaning, that even if the video is completed cached with a progressive download, there would still not be seamless, uninterrupted, smooth video play, if the bufferLength is small, but making it large assures a long delay in resuming video playback and also at loading. Hence a trade-off is required. Is this a wrong assumption?

Asked By: [195 Blue Star Level]

Comments are closed.

Answer this Question

Log In

To Answer, Login using your Twitter or Facebook Account.