fix plays inline bug on ios (#1723)
This commit is contained in:
parent
56ce70cef5
commit
d50f51bd3b
1 changed files with 2 additions and 3 deletions
|
@ -314,9 +314,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// set playsinline for mobile
|
|
||||||
player.children_[0].setAttribute('playsinline', '');
|
|
||||||
|
|
||||||
// immediately show control bar while video is loading
|
// immediately show control bar while video is loading
|
||||||
player.userActive(true);
|
player.userActive(true);
|
||||||
|
|
||||||
|
@ -432,6 +429,8 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
|
|
||||||
vjsPlayer.poster(poster);
|
vjsPlayer.poster(poster);
|
||||||
|
|
||||||
|
vjsPlayer.el().childNodes[0].setAttribute('playsinline', '');
|
||||||
|
|
||||||
let contentUrl;
|
let contentUrl;
|
||||||
// TODO: pull this function into videojs-functions
|
// TODO: pull this function into videojs-functions
|
||||||
// determine which source to use and load it
|
// determine which source to use and load it
|
||||||
|
|
Loading…
Reference in a new issue