diff --git a/packages/xgplayer/src/mediaProxy.js b/packages/xgplayer/src/mediaProxy.js index 4c5b9303b..6d7d55e5d 100644 --- a/packages/xgplayer/src/mediaProxy.js +++ b/packages/xgplayer/src/mediaProxy.js @@ -203,6 +203,11 @@ class MediaProxy extends EventEmitter { this.media.autoplay = true } + // Warning:一些移动端浏览器(Like Vivo)需要直接设置JS属性,否则会导致失效 + if (options.playsinline) { + this.media.playsinline = true + } + /** * @private */