use video js viewer for ios and add playsinline
This commit is contained in:
parent
72130b19d2
commit
eef218a807
2 changed files with 3 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue