We need to display a short splash video in the application, I wanted to use the VideoPlayer component for this, but I see that it has the ability to play only from the remote (videoURL). Does the Kepler SDK currently allow to play video from local .mp4 assets in the application?
This is not currently supported.
@milew did you try a local file URL or just going by documentation? AFAIK, I don’t think there is any code that “prevents” the local file playback. The JS and TM layers just pass the URL to the Kepler media player and it supports playing from local file:// content.
I tried file:// protocol and used a few options, but doesn’t work. Which folder is considered as root directory in Kepler? Is it the main project dir?
Would be helpful to see some code sample, at least “file://path” + location of local assets in the project
I would advise against using video playback for splash screen. Video playback takes a lot of CPU/memory resources , which would slow down the rest of the processing when the app is loading. It would also increase the app package size overall. From a customer perspective you want to get to the content as quickly as possible, so a quick splash animation is a good idea to keep the customer engaged while the app is loading, but it should not be detrimental by increasing time to download the app or to launch the app. My recommendation would be to use other approaches, such as animations (e.g., Lottie, which will be available soon).
@giolaq wrote an excellent post on this topic (it focuses on FireOS but it should be pretty much applicable to Kepler). Develop Animated Splash Screens on Fire TV with Lottie - DEV Community