diff --git a/docs/assets/css/mobile.css b/docs/assets/css/mobile.css new file mode 100644 index 000000000..9b9508513 --- /dev/null +++ b/docs/assets/css/mobile.css @@ -0,0 +1,14 @@ +html, body { + height: 100%; +} + +.container { + height: 100%; + padding: 20px; + box-sizing: border-box; +} + +.artplayer-app { + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/docs/assets/js/mobile.js b/docs/assets/js/mobile.js new file mode 100644 index 000000000..9f4031183 --- /dev/null +++ b/docs/assets/js/mobile.js @@ -0,0 +1,9 @@ +var vConsole = new VConsole(); +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: [(ua)=>{ return /iPhone OS 11/gi.test(ua); }], + // whitelist: [/iPhone OS 11/gi] +}); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 2f46cfca7..186bf3331 100644 --- a/docs/index.html +++ b/docs/index.html @@ -69,5 +69,14 @@ + diff --git a/docs/mobile.html b/docs/mobile.html new file mode 100644 index 000000000..4eb5b712b --- /dev/null +++ b/docs/mobile.html @@ -0,0 +1,35 @@ + + + + + ArtPlayer.js Lab + + + + + + + + + + + + +
+
+
+ + + + + + + \ No newline at end of file