You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Friday, December 2nd 2016, 7:53pm

are totalbytes and loadedbytes working in html5?

hi klaus,

i m trying to make a small loadingbar which works for panorama videos,
and i always get 0 for plugin[video].totalbytes and plugin[video].loadedbytes.
should these values work in html5?

a second question is:
i m trying to display the bar from onxmlcomplete until plugin[video].onvideoready
would onloadcomplete work too for videos, or would it trigger too early?

best, index

EDIT: after a lot of testing (simulating low bandwidth with google chrome)
i think that krpano updates these values very badly compared to progress (for pano images)
in an asyncloop with good bandwidth you get maybe a few zeros, and then a sudden jump to 100%
while for panorama images you get much more values / steps.
my impression is that a "responsive" loadingbar is not really possible for videos.

(to be confirmed by klaus)

This post has been edited 4 times, last edit by "indexofrefraction" (Dec 2nd 2016, 8:40pm)


Friday, December 2nd 2016, 10:52pm


please see the notes in the documentation:

In HTML5 it's not possible to get information about the loaded bytes.

Best regards,


Saturday, December 3rd 2016, 8:23pm

thanks, klaus...
for me that the documentation was not entirely clear there ...
you state that instead of bytes some rough buffer values are delivered. (as i remember)
anyway i also came to the conclusion to turn off my loader for videos.



Posts: 34

Location: France

  • Send private message


Tuesday, January 24th 2017, 6:07pm

Can we use a part of skin_video_updatetime script from videointerface.xml to know when the video is completed loaded ?With some large videos it could be good to know how percent or if it still loaded and not an error.Can you have some better solutions ?ThanksJérôme

Similar threads