Problems downloading NetStream video

I am creating a custom video player for the web. On some machines that I run this on, it will start downloading the .flv file, then progress will not be made within 30 seconds to one minute, and then it will show that the video is fully downloaded. I check how much was loaded with bytesLoaded / bytesTotal in Event.ENTER_FRAME . When separately tracked, what seems to be happening when it shows a fully loaded bytesTotal value changes to the current bytesLoaded value, causing my video player to register that my load percentage is 1. I tracked the value of the NetStatus event.code event and there is no update so show that some error has occurred. All I get is NetStream.Play.Start NetStream.Buffer.Full and then it will wait and reset the total number of bytes.

So I ask, is there a way to deal with this problem?

+4
source share
2 answers

There seems to be no concrete answer to this problem. Since then, I have made another attempt at this problem, and there are two lessons that I have learned.

1) You can code most of the flaws in the netstream class by not allowing it to try to search for the past loaded point using the bytesLoaded , bytesTotal and bufferTime . This can allow you to make sure that you never let the search be an attempt for a time that can cause a problem.

2) Always allow a previous search attempt to complete and process it properly before attempting to send another.

+1
source

Are you playing mp4 whose moov atom (e.g. metadata) is at the end of the file? If so, Flash cannot play the file until the entire file has loaded and can read the metadata.

This tool should fix your video file: http://renaun.com/blog/code/qtindexswapper/

0
source

All Articles