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

Created on 5 Aug 2019  路  4Comments  路  Source: google/ExoPlayer

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.

enhancement

Most helpful comment

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.

All 4 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.

ty

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.

any updates?

This should be prioritized...

Was this page helpful?
0 / 5 - 0 ratings