question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PlayerView: Provide option to show default artwork when no prepared player is attached

See original GitHub issue

hi 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:open
  • Created 4 years ago
  • Reactions:6
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
ojw28commented, Aug 5, 2019

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.

7reactions
KgotsoKcommented, Sep 15, 2020

This should be prioritized…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found