use video js viewer for ios and add playsinline

This commit is contained in:
Anthony 2021-06-04 18:14:11 +02:00 committed by Thomas Zarebczan
parent 72130b19d2
commit eef218a807
2 changed files with 3 additions and 6 deletions

View file

@ -578,6 +578,9 @@ export default React.memo<Props>(function VideoJs(props: Props) {
type: type,
});
// set playsinline for mobile
player.children_[0].setAttribute('playsinline', '');
// Add quality selector to player
player.hlsQualitySelector({
displayCurrentQuality: true,

View file

@ -348,12 +348,6 @@
width: 100%;
}
.video-js-parent--ios {
.vjs-control-bar {
display: none;
}
}
// By default no video js play button
.vjs-big-play-button {
display: none;