fix playsInline typo

This commit is contained in:
Harvey committed 2020-05-15 08:18:03 +08:00
1 parent 80818a965c
commit 19a894fcb6
4 files changed
+22 -17

No files matched your search

+6 -4
View File
@@ -3,15 +3,17 @@ var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
moreVideoAttr: {
'webkit-playsinline': true,
playsInline: true,
},
// whitelist: ['iPhone'],
// whitelist: [(ua)=>{ return /iPhone OS 11/gi.test(ua); }],
// whitelist: [/iPhone OS 11/gi]
});
Artplayer.config.events.forEach(function(item) {
art && art.on('video:' + item, function(event) {
Artplayer.config.events.forEach(function (item) {
art.on('video:' + item, function (event) {
console.log('video: ' + event.type);
});
});
console.warn('ArtPlayer.js: 移动端功能尚未完成适配,请用电脑打开.')