AssetDataSourceException: java.io.FileNotFoundException: splash_video.mp4

Bitrise Build Issue Report template

Description of the issue

I have a splash video in my android buid. When I run the app from my android studio
the exoplayer get the video from asset. But when I create the build with bitrise exoplayer can’t get the video from asset.

Playback error 
androidx.media3.exoplayer.ExoPlaybackException: Source error
Caused by: androidx.media3.datasource.AssetDataSource$AssetDataSourceException: java.io.FileNotFoundException: splash_video.mp4

This is the path
const val SPLASH_VIDEO_SOURCE = "asset:///splash_video.mp4"

Environment:

Where did the issue happen?

When I create the bitrise build.

Which build Step causes the issue and which version of the step?

When I put splash video.

Reproducibility

Local reproduction

I can’t Local reproduction. I think the issue is in Bitrise.

Local reproduction: Linux / Android (docker based) stack builds

I can’t Local reproduction. I think the issue is in Bitrise.

Build log

Playback error
androidx.media3.exoplayer.ExoPlaybackException: Source error 
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:737) 
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:709) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
 at android.os.Looper.loopOnce(Looper.java:232) 
at android.os.Looper.loop(Looper.java:317) 
at android.os.HandlerThread.run(HandlerThread.java:85) 
Caused by: androidx.media3.datasource.AssetDataSource$AssetDataSourceException: java.io.FileNotFoundException: splash_video.mp4 
 at androidx.media3.datasource.AssetDataSource.open(AssetDataSource.java:112) 
at androidx.media3.datasource.DefaultDataSource.open(DefaultDataSource.java:275) 
at androidx.media3.datasource.StatsDataSource.open(StatsDataSource.java:87) 
at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1085) 
at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:450) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
at java.lang.Thread.run(Thread.java:1012) 
 Caused by: java.io.FileNotFoundException: splash_video.mp4 
at android.content.res.AssetManager.nativeOpenAsset(Native Method) 
at android.content.res.AssetManager.open(AssetManager.java:1006) 
at androidx.media3.datasource.AssetDataSource.open(AssetDataSource.java:86) 
at androidx.media3.datasource.DefaultDataSource.open(DefaultDataSource.java:275)  
at androidx.media3.datasource.StatsDataSource.open(StatsDataSource.java:87)  
at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1085)  
at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:450)

We can close the issue, the problem was gitignore where I had include .mp4

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.