Hi guys,
I have created an FLV player using the NetStream object. Everything works except one thing. I can’t get the loadprogress work fine for some FLV files. It looks like the flv filesize distribution is not linear (quite logical, considering the keyframes and stuff), so sometimes the playhead extends beyond the loadbar. For loadbar I am using the simple script:
var amountLoaded = __stream_ns.bytesLoaded / __stream_ns.bytesTotal;
__loadbarWidth = amountLoaded * __initWidth;
Anybody has some idea how to solve this or make a workaround? Playhead extending beyond the loadprogress doesn’t really look very good…
Thanks in advance!
Poco