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:
Nitish Yadav 2022-03-14 21:54:05 +05:30
parent 1639519a5f
commit 8a7a10f7d5

View file

@ -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);
}