Skip to content

Commit ec6009a

Browse files
authored
Merge pull request surmon-china#25 from uihoh0/patch-2
'webkit-playsinline' not works well in some ios
2 parents f1bc325 + 541ec8d commit ec6009a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

player.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
143143
// 是否应用IOS下的禁止自动全屏
144144
var playsinline = options.playsinline
145-
playsinline && this.$el.children[0].setAttribute('webkit-playsinline', playsinline)
145+
playsinline && (this.$el.children[0].setAttribute('playsinline', playsinline),this.$el.children[0].setAttribute('webkit-playsinline', playsinline))
146146
147147
// 是否适用youtube
148148
// if (video_options.techOrder.indexOf('youtube') > -1) require('videojs-youtube')

0 commit comments

Comments
 (0)