mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
fix playsInline typo
This commit is contained in:
1 parent
80818a965c
commit
19a894fcb6
4 files changed
+22
-17
No files matched your search
@@ -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: 移动端功能尚未完成适配,请用电脑打开.')
|
||||
Reference in new issue
Block a user