On iOS I can access the bundle assets because the files are copied as-is into the application bundle and live on the device’s file-system:
val videoFilePath = NSBundle.mainBundle.pathForResource(item, null)
PlatformFile(videoFilePath ?: "")
But this doesn't work with Android. I have a file in assets/video.mp4 I'd like to use, and otherwise I have to copy the file, which is bad for performance (especially since I'm showing a splash screen video...).
Thank you for the work!
On iOS I can access the bundle assets because the files are copied as-is into the application bundle and live on the device’s file-system:
But this doesn't work with Android. I have a file in
assets/video.mp4I'd like to use, and otherwise I have to copy the file, which is bad for performance (especially since I'm showing a splash screen video...).Thank you for the work!