androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.69k stars 404 forks source link

Images show blank on exoplayer (using media3 1.4.1 version) #1861

Open chileanne opened 1 day ago

chileanne commented 1 day ago

Version

Media3 1.4.1

Devices that reproduce the issue

Samsung note 9

  1. attached the image uri to the input media like this val mediaItem = MediaItem.Builder().setUri(imageUri).setImageDurationMs(3000).build()

  2. then attached it to the exoplayer val player = ExoPlayer.Builder(context).build() player.setMediaItem(mediaItem) player.prepare() player.play()

but still it does not preview the image on the exoplayer it shows blank screen

i would be greatfull if you could help provide solutions

thank you for all you do

Bug Report

tianyif commented 1 day ago

Hi @chileanne, could you please provide the details about the error you got, if any? Thanks!