-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Bundled assets won't load in release builds #4278
Comments
Previous bot comment (click to expand)Previous bot comment (click to expand)Thank you for your bug report. We will review it and get back to you if we need more information. There is a newer version of the library available. You are using version 6.6.3, while the latest stable version is 6.7.0. Please update to the latest version and check if the issue still exists.
|
Updated to 6.7.0, but the issue persists |
Previous bot comment (click to expand)Thank you for your bug report. We will review it and get back to you if we need more information. There is a newer version of the library available. You are using version 6.6.3, while the latest stable version is 6.7.0. Please update to the latest version and check if the issue still exists.
|
Thank you for your bug report. We will review it and get back to you if we need more information. |
Changed the return of
as in the Android documentation the package name is also added optionally, resulting in Also tried
resulting in |
ur encountering this. its loading ur source as an httpDataSourceFactory and that happens when cache is enabled. |
Ahaa! Thanks, disabling the cache for local assets fixed it indeed! |
Version
6.7.0
What platforms are you having the problem on?
Android
System Version
API 34
On what device are you experiencing the issue?
Real device, Simulator
Architecture
Old architecture
What happened?
When passing a
number
in thesource
property the video won't load on Android release builds. On debug builds it does work, and on iOS it always works.I've retrieved the number value like this (I've also tried
require('./asset.mp4')
):Unfortunately, it won't show a video in my app and using Android Studio I'm seeing the following error:
Adding logs in the
getUriFromAssetId
function inSource.kt
does indicate that it found an identifier:The result of
getUriFromAssetId
is:Unfortunately, I'm not proficient in Kotlin or Android native stuff, so I don't know how to continue from here.
I'm 100% sure that the assets are actually bundled with the app, because when passing the
VideoAsset
to the source of anImage
element fromexpo-image
it actually shows the first frame as image.Reproduction Link
No response
Reproduction
Step to reproduce this bug are:
source
parameter.The text was updated successfully, but these errors were encountered: