tbgeorge Posted July 19, 2016 Share Posted July 19, 2016 Hey, I'm working with video textures and I just noticed that they continue reloading themselves whenever they finish so they can loop. Is this a bug/is there a way to fix this? I was using this playground link and got the results in the attached image: http://www.babylonjs-playground.com/#CHQ4T#1 -Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2016 Share Posted July 20, 2016 This must be a browser bug (babylon.js is not loading video, it asks a Video tag to do it) and I cannot reproduce it on my side: Quote Link to comment Share on other sites More sharing options...
MasterSplinter Posted July 20, 2016 Share Posted July 20, 2016 Version number? Quote Link to comment Share on other sites More sharing options...
Nabroski Posted July 20, 2016 Share Posted July 20, 2016 Hello No from Cache means its loaded from the Cache of your Browser (like Computer Ram) this video is huge so you have to wait til its fully downloaded, then if you press Run playground again, the video will not be downloaded , it runs from the cache of your browser, thats a good thing, course it speeds things up. But now, if you start downloading and the press Run playground again, before its fully downloaded, and watch this video just a bit longer before you hit Run playground again, it has to download the next block, til at some point its fully downloaded. Also its not fully download at once, just prebuffer (preload) some frames/seconds, when the user still keep watching the video, it again pre -buffer some frames. My explanation is not very good, maybe, but i'm sure if you think about it, it become more clearer. Just pay attention to, what you are doing to produce this bug. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 26, 2016 Share Posted July 26, 2016 Nope still no problem: Quote Link to comment Share on other sites More sharing options...
steven_EXC Posted July 28, 2016 Share Posted July 28, 2016 Deltakosh, I'm getting the same issue when I view the network tab in my chrome devtools. I'm a bit new to reading this network tab but I think I've figure out what's going on. Under "size" in all the screenshots above, it lists "from cache" for every row after the first. In your screenshot, there's only one row. Is there a setting somewhere that you're using that consolidates extra rows that are similar? I'm willing to bet this isn't a bug but rather a devtools feature that we must be unfamiliar with. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 29, 2016 Share Posted July 29, 2016 Actually I did nothing else than just installing Chrome Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 2, 2016 Share Posted August 2, 2016 @Nockawa take a read, chrome has a Caching Strategy and Canvas2D also, maybe they don't cooperate well. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 2, 2016 Share Posted August 2, 2016 //jquery $( "#editorButton" ).on( "click", function( event ) { videoTexture.video.load(); }); //javascript document.getElementById("editorButton").onclick = function () { videoTexture.video.load(); }; i'm using this while working with playground and video and on chrome, maybe its helpful. this removes the head from the browser, and force it to reload again Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 2, 2016 Share Posted August 2, 2016 About the fact that DK doesn't have more than one line - this is due to the simple fact that he didn't download the entire file This behavior is expected. The film will loop from cache after it was completely downloaded (and ended, of course). As already said, when the dev tools are open, you can disable cache, and this is where things get interesting, because the dev tools can disable cache. One thing I cannot really explain without investigating - why you ALL have different download size one 195 B, one 1.4M, ond 1.5M one 4.2 M , so much fun. The file, BTW, is much larger. Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 2, 2016 Share Posted August 2, 2016 @RaananW i don't work with Video for 2 Weeks, but previously, this was the workaround for stop sound playing. The video was refreshing but the previous sound was still playing over the new one. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.