flash - (stream.bytesLoaded / stream.bytesTotal) * video.duration != loaded seconds for mp4? -


good day!

i'm trying determine how of video loaded (in seconds). when try (stream.bytesloaded / stream.bytestotal) * video.duration result not accurate because distribution of video stream size not uniform inside file.

for example if video starts static part video title or blank screen, size of part less (in other words compressed better) other video fast movements. far understand mp4 adaptive , more movement in video more space take.

i tried use seek points (time + offset) defined in mp4 , works , accurate, don't want depend on them.

thanks advices!

you correct video loaded may vary according compression.

a better way handle might instead display buffer , show user how of buffer has been loaded.

otherwise, might need fix videos constant bit rate can estimate how of video has loaded.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -