ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

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

Open roninshahi opened this issue 6 years ago • 16 comments

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.

roninshahi avatar Aug 05 '19 17:08 roninshahi

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.

ojw28 avatar Aug 05 '19 17:08 ojw28

ty

roninshahi avatar Aug 05 '19 17:08 roninshahi

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?

HiroyukiTamura avatar Apr 28 '20 23:04 HiroyukiTamura

This should be prioritized...

KgotsoK avatar Sep 15 '20 08:09 KgotsoK

This seems like such low hanging fruit. In order to show an image on the view, such as when there is no internet and the stream isn't loading, we have to wrap the view with another image view. IMO, this view should just be displayed the second the player is displayed. Then we can listen for playback errors and show the whole PlayerView, which would then have an image on it

elmateo487 avatar Apr 26 '21 20:04 elmateo487

Yeah, I'm surprised there is no way to show a placeholder image then when prepare and play go, hide that image and show video. Should be an option unless there is something blocking that from happening. I will just wrap an image view and show hide when player is prepping.

grndvl1 avatar Jun 18 '21 14:06 grndvl1

https://github.com/google/ExoPlayer/issues/4639

lmj0011 avatar Jul 15 '21 02:07 lmj0011

this issue was opened in 2019. it's currently 2021, almost ending, and still no proper solution for this. forcing the use of an artwork by means of loading a chunk of video data can be quite expensive if it is a high resolution video, instead of just keeping the player unprepared and showing a custom image.

ParticleCore avatar Oct 04 '21 21:10 ParticleCore

this issue was opened in 2019. it's currently 2021, almost ending, and still no proper solution for this. forcing the use of an artwork by means of loading a chunk of video data can be quite expensive if it is a high resolution video, instead of just keeping the player unprepared and showing a custom image.

Its google they work at their own pace. Hence why I shy away from them when using new libs. Have you tried changing the Closed Captions on a video? Wow what an experience and a piece of bad coding searching for ways to do it and depending on versions of the library, functions may or may not be there. It was a nightmare. Anyway, I hope they prioritize this soon as its really something that should have been there from the start.

grndvl1 avatar Oct 05 '21 15:10 grndvl1

Any updates on this issue?

ridanasif avatar Feb 14 '22 16:02 ridanasif

Any update on this issue ?

SaNu-hIT avatar Apr 07 '22 07:04 SaNu-hIT

Any update on this issue ?

mohodroid avatar Apr 10 '22 10:04 mohodroid

Aw, shoot it's still open, now I have to go for a workaround! =)

imansdn avatar Jan 08 '23 12:01 imansdn

?

nikmax42 avatar Feb 02 '25 14:02 nikmax42

is this repository tracked or we need to open this case again in the other active one: https://github.com/androidx/media/issues

Abu-Abdullah avatar Apr 03 '25 03:04 Abu-Abdullah

@Abu-Abdullah Existing issues on this tracker are still monitored (hi!). If you would like to, you are welcome to file this issue again on https://github.com/androidx/media/issues and we will close this one as a duplicate of the new one. We have no current plans to implement this, and we are in the process of building a suite of Compose UI components - so we are not actively improving PlayerView at the moment (and filing a new issue is unlikely to change our prioritization here).

icbaker avatar Apr 03 '25 06:04 icbaker