Thanks Klaus!! I also have another iPhone/mac related question... When switching videosources using Safari on iPhone and Desktop I have noticed that the video briefly loads/displays the first frame of the video before jumping back to the current video time. Do you know why this occurs?
Is there a way to determine what iPhone model the user is using? I know you can differentiate what iOS version they are using, but is there any way to determine the device? Older iPhones don't support 4K video playback, but newer ones do, so I would like to serve different video qualities based on the device they are using.
In Safari on desktop and mobile, whenever I switch video sources to change the video quality, Safari shows the first frame of the video for a short time before jumping to the correct time in the video. Does anyone know a fix for this issue?
Ah, yes that is what I have currently as well for the initial load. However, I am asking about the incorrect loadedbytes values because I am trying to create a speed test that upgrades/downgrades resolutions depending on the user's network speeds. Whenever the lower qualities are played (360 and 480), krpano believes the video is completely loaded, and therefore I am unable to calculate the buffering rate of the video.
Quoted from "indexofrefraction" if you really need an exact loader you have to do it yourself in js, i guess (preload the file) How would you do that? The best way would be to add a "progress" event listener to the request that is loading the video, but it does not seem like we have access to that part of the code... Would just need to add something like this... Source code 1 2 3 4 5 6 7 8 9 10 var req = new XMLHttpRequest(); req.addEventListener('progress', function(event) { if (event.lengthCo...
Quoted from "indexofrefraction" this is not a problem of krpano, you cant get an exact value. i gave up on loading bars long ago I am able to accurately track the loadedbytes for larger video files, so is this only an issue for small video files?
When I call the loadedbytes value for a small video (under ~10mb), it returns the same value as the totalbytes action which means that the video should be completely loaded. But when I check the network console on Chrome, it shows that the video is still being downloaded from the source. Does anyone know why krpano says the video is completely loaded?
is there a limit to how much the video will buffer and is this value fixed or can it be changed?
When I call the loadedbytes value for a small video (under ~10mb), it shows that the video should be completely loaded. However, when I check the network console on Chrome, it shows that the video is still being downloaded from the source. Does anyone know why krpano says the video is completely loaded?