mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Hide play/pause & volume slider for mobile
Using custom controlPanelElements removes this default behavior. So replicated it for consistency with before. https://github.com/shaka-project/shaka-player/blob/main/ui/ui.js#L251-L255
This commit is contained in:
parent
1639519a5f
commit
8a7a10f7d5
1 changed files with 6 additions and 0 deletions
|
@ -447,6 +447,12 @@ export default {
|
|||
},
|
||||
};
|
||||
|
||||
if (this.$ui.isMobile()) {
|
||||
config.controlPanelElements = config.controlPanelElements.filter(
|
||||
prop => prop != "play_pause" && prop != "volume",
|
||||
);
|
||||
}
|
||||
|
||||
this.$ui.configure(config);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue