We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Image is not rendered in Exoplayer Playerview
I want to display image as video
I have referred this
I am trying this code
val playlist: MutableList<MediaItem> = mutableListOf<MediaItem>() val mediaItem = MediaItem.Builder().setImageDurationMs(30000).setUri("content://media/external/images/media/1000005827").build() playlist.add(mediaItem) player = ExoPlayer.Builder(this).build() playerView = findViewById(R.id.player_view) player.addMediaItems(playlist) playerView.player = player player.prepare() player.play()
this creates a blank video with the duration 30000 but nothing is rendered , I have tried multiple images but nothing is rendered,
The text was updated successfully, but these errors were encountered:
I think this is expected, because images are emitted via ImageOutput and PlayerView does not implement this interface.
ImageOutput
PlayerView
I will mark this as an enhancement, but we currently have no plans to work on this.
Sorry, something went wrong.
This has been implemented and published in 1.4.0
please can you indicate an example of the fix @tonihei
The image support is documented here: https://developer.android.com/media/media3/exoplayer/images PlayerView automatically display images played with ExoPlayer without any special configuration needed
icbaker
No branches or pull requests
Image is not rendered in Exoplayer Playerview
I want to display image as video
I have referred this
I am trying this code
this creates a blank video with the duration 30000 but nothing is rendered , I have tried multiple images but nothing is rendered,
The text was updated successfully, but these errors were encountered: