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,
|
type: type,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// set playsinline for mobile
|
||||||
|
player.children_[0].setAttribute('playsinline', '');
|
||||||
|
|
||||||
// Add quality selector to player
|
// Add quality selector to player
|
||||||
player.hlsQualitySelector({
|
player.hlsQualitySelector({
|
||||||
displayCurrentQuality: true,
|
displayCurrentQuality: true,
|
||||||
|
|
|
@ -348,12 +348,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-js-parent--ios {
|
|
||||||
.vjs-control-bar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// By default no video js play button
|
// By default no video js play button
|
||||||
.vjs-big-play-button {
|
.vjs-big-play-button {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
Loading…
Reference in a new issue