Skip to content

Support loading local videos in the assets directory of Android #96

@marioortizmanero

Description

@marioortizmanero

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!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions