Update mobile.js

This commit is contained in:
Harvey committed 2020-03-31 08:24:24 +08:00
1 parent de8cbdd375
commit c6c8b8e22f
1 file changed
+2 -2
+2 -2
View File
@@ -3,12 +3,12 @@ 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',
// whitelist: ['iPhone OS 11'],
// whitelist: ['iPhone'],
// whitelist: [(ua)=>{ return /iPhone OS 11/gi.test(ua); }],
// whitelist: [/iPhone OS 11/gi]
});
Artplayer.config.video.events.forEach(function(item) {
Artplayer.config.events.forEach(function(item) {
art && art.on('video:' + item, function(event) {
console.log('video: ' + event.type);
});