You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow overriding drawables locally (only for a specific PlayerView instance) #1200
My app has two players: video player and podcast player. Both should look different in terms of icons, buttons' positions, and spacing. Spacing and reordering buttons is easy, but it seems that the only option to replace icons is to do it globally1, for all PlayerViews.
Proposed solution
It would be great to have attributes similar to show_timeout2 for icons/resources used in the PlayerControlView.
e.g.:
play_resource_id
pause_resource_id
etc.
with the fallback to exo_styled_controls_play, exo_styled_controls_pause, .. if not present.
Hi @ziem, apologies, I have been away for a month. I discussed this internally within the team and I don't see any issue with the proposed solution above. I will prioritise it next week and hopefully you can test it out in 1.4.0 alpha/beta
Activity
oceanjules commentedon Mar 19, 2024
Please correct me if I'm wrong. Do I understand that you want:
and then you can define various xml views
app:play_resource_id="R.drawable.personal_controls_play"or
app:play_resource_id="R.drawable.personal_controls_play_new"and
<drawable name="personal_controls_play">@drawable/personal_play_circle_filled</drawable><drawable name="personal_controls_play_new">@drawable/personal_play_square</drawable>ziem commentedon Mar 20, 2024
Yes, exactly
ziem commentedon Apr 15, 2024
Do you have any updates on this ticket?
oceanjules commentedon May 8, 2024
Hi @ziem, apologies, I have been away for a month. I discussed this internally within the team and I don't see any issue with the proposed solution above. I will prioritise it next week and hopefully you can test it out in 1.4.0 alpha/beta
ziem commentedon May 9, 2024
Awesome, thank you 🙂
Allow customisation of various icons in PlayerControlView