优化手机端UI

This commit is contained in:
Harvey committed 2020-05-15 10:28:38 +08:00
1 parent 19a894fcb6
commit beea013daf
16 files changed
+249 -129

No files matched your search

+2 -2
View File
@@ -4,11 +4,11 @@ html, body {
.container {
height: 100%;
padding: 20px;
padding: 10px;
box-sizing: border-box;
}
.artplayer-app {
width: 100%;
height: 100%;
height: 50%;
}
+35
View File
@@ -3,10 +3,45 @@ 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',
poster: url + '/image/one-more-time-one-more-chance-poster.jpg',
autoSize: true,
loop: true,
mutex: true,
theme: '#ffad00',
fullscreenWeb: true,
miniProgressBar: true,
lang: navigator.language.toLowerCase(),
moreVideoAttr: {
'webkit-playsinline': true,
playsInline: true,
crossOrigin: 'anonymous',
},
subtitle: {
url: url + '/subtitle/one-more-time-one-more-chance.srt',
style: {
color: '#03A9F4',
fontSize: '14px',
},
},
layers: [
{
html: `<img style="width: 50px" src="${url}/image/your-name.png">`,
click: function () {
console.info('You clicked on the custom layer');
},
style: {
position: 'absolute',
top: '10px',
right: '10px',
opacity: '.9',
},
},
],
icons: {
loading: '<img src="./assets/img/ploading.gif">',
state: '<img src="./assets/img/state.png">',
},
whitelist: ['*'],
// whitelist: ['iPhone'],
// whitelist: [(ua)=>{ return /iPhone OS 11/gi.test(ua); }],
// whitelist: [/iPhone OS 11/gi]