PlayerView: Provide option to show default artwork when no prepared player is attached
See original GitHub issuehi I wanna show a preview bitmap of a video in exoplayer.i have the bitmap and I use
playerview.setUseArtwork(true);
playerview.setDefaultArtwork(bitmap);
but it doesn’t work. ***i havent write any code to connect playerview to exoplayer. I used an image view to show the preview and then hide it but it wasn’t good.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:12 (1 by maintainers)
Top Results From Across the Web
PlayerView (ExoPlayer library)
A high level view for Player media playbacks. It displays video, subtitles and album art during playback, and displays playback controls using a ......
Read more >If you're using PlayerView you can set default artwork via an ...
If you're using PlayerView you can set default artwork via an attribute in your layout or programmatically (see here).
Read more >PlayerView | Android Developers
A high level view for Player media playbacks. It displays video, subtitles and album art during playback, and displays playback controls ...
Read more >ExoPlayer useArtwork never being called, Thumbnail not shown
And the artwork is never shown. useArtwork is true. TrackSelectionArray selections = player.getCurrentTrackSelections(); for (int ...
Read more >Playing Media with ExoPlayer or TubiPlayer
Once our player is ready, we can set it to our view. It can either be defined as ExoPlayer's PlayerView widget, or as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Artwork passed to
setDefaultArtwork
is only displayed when the player is connected to the view and prepared (and if the prepared media doesn’t contain any artwork of its own).I’ll mark this as an enhancement to provide an option for the default artwork to also be displayed when there’s no player and when the player is not prepared.
This should be prioritized…