forked from Github/frigate
add mobile player and fullscreen support for iOS
This commit is contained in:
committed by
Blake Blackshear
parent
c73aebadcb
commit
88ed7501a7
@@ -1,5 +1,6 @@
|
||||
import { h, Component } from 'preact';
|
||||
import videojs from 'video.js';
|
||||
import 'videojs-mobile-ui';
|
||||
import 'videojs-playlist';
|
||||
import 'videojs-seek-buttons';
|
||||
import 'video.js/dist/video-js.css';
|
||||
@@ -25,6 +26,11 @@ export default class VideoPlayer extends Component {
|
||||
forward: 30,
|
||||
back: 10,
|
||||
});
|
||||
this.player.mobileUi({
|
||||
fullscreen: {
|
||||
iOS: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
@@ -25,3 +25,7 @@
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.video-js.vjs-has-started .vjs-touch-overlay {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user