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
Post a Comment