mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
添加画质选项
This commit is contained in:
1 parent
e9b0ff101b
commit
504d5b3954
7 files changed
+78
-9
No files matched your search
+37
-4
@@ -679,6 +679,14 @@
|
||||
click: 'function'
|
||||
}
|
||||
},
|
||||
quality: {
|
||||
type: 'array',
|
||||
child: {
|
||||
default: 'boolean',
|
||||
name: 'string',
|
||||
url: 'string'
|
||||
}
|
||||
},
|
||||
loading: 'string',
|
||||
theme: 'string',
|
||||
hotkey: 'boolean',
|
||||
@@ -1935,6 +1943,25 @@
|
||||
return Screenshot;
|
||||
}();
|
||||
|
||||
var Quality =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Quality(option) {
|
||||
classCallCheck(this, Quality);
|
||||
|
||||
this.option = option;
|
||||
}
|
||||
|
||||
createClass(Quality, [{
|
||||
key: "apply",
|
||||
value: function apply(art) {
|
||||
this.art = art;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Quality;
|
||||
}();
|
||||
|
||||
var id = 0;
|
||||
|
||||
var Controls =
|
||||
@@ -1999,21 +2026,26 @@
|
||||
position: 'right',
|
||||
index: 30
|
||||
}));
|
||||
this.add(new Setting({
|
||||
disable: false,
|
||||
this.add(new Quality({
|
||||
disable: this.art.option.quality.length === 0,
|
||||
position: 'right',
|
||||
index: 40
|
||||
}));
|
||||
this.add(new Pip({
|
||||
this.add(new Setting({
|
||||
disable: false,
|
||||
position: 'right',
|
||||
index: 50
|
||||
}));
|
||||
this.add(new Fullscreen({
|
||||
this.add(new Pip({
|
||||
disable: false,
|
||||
position: 'right',
|
||||
index: 60
|
||||
}));
|
||||
this.add(new Fullscreen({
|
||||
disable: false,
|
||||
position: 'right',
|
||||
index: 70
|
||||
}));
|
||||
this.art.option.controls.forEach(function (item) {
|
||||
_this2.add(item);
|
||||
});
|
||||
@@ -2957,6 +2989,7 @@
|
||||
mimeCodec: '',
|
||||
layers: [],
|
||||
contextmenu: [],
|
||||
quality: [],
|
||||
loading: '',
|
||||
theme: '#f00',
|
||||
hotkey: true,
|
||||
|
||||
Reference in new issue
Block a user