mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
fix: 🐛 修复Vivo playsinline失败问题
This commit is contained in:
parent
30cb962906
commit
253a930032
@ -203,6 +203,11 @@ class MediaProxy extends EventEmitter {
|
||||
this.media.autoplay = true
|
||||
}
|
||||
|
||||
// Warning:一些移动端浏览器(Like Vivo)需要直接设置JS属性,否则会导致失效
|
||||
if (options.playsinline) {
|
||||
this.media.playsinline = true
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user