Slow plugin loading when using a lot of filmstrips
-
Can you defer the loading of the filmstrips to when the plugin is loaded to speed up the initial load?
I am creating a plugin with a lot of filmstrips, basically videos and the plugin startup is very slow.
-
@oskarsh I found out that the images are uncompressed into a bitmap format when loading which is probably killing the performances.
Is there a better way than knobs to display videos in hise? Maybe a webview that can play the videos directly?
-
@oskarsh yes, definitely a webview.
-
@Christoph-Hart I refactored the code to use webviews playing the .mp4 directly much smoother and easier to handle! I have a array of .mp4 files that I shuffle thru while the plugin is running.
This works fine in HISE however the exported plugin will only load the first video. I suspect that the others are loaded when needed and thus get not compiled with the plugin. Is there some behavior in HISE where only some assets get bundled with the JS?
-
@oskarsh yes the way it currently works is that HISE will only embed the resources that are requested by the webview in the current session - so in your case you might have to preload them all (or at least request them somehow) so that they end up in the resource folder.
The other option is to not bother about embedding the webview and set a root folder outside of the repository, then make sure that the user has all the files in a folder and point the webview there.
-
@Christoph-Hart just wondering if I put the videos into the images folder and not reference them they will not be copied alongside. So basically I would need to handle this myself with the installer script right?
-
@Christoph-Hart I was able to preload the videos in JavaScript but preloading around 14 videos is not suitable and makes the app actually very glitchy