mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
简化player接口
This commit is contained in:
1 parent
1b69b28ba1
commit
52b6693da2
41 files changed
+624
-690
No files matched your search
@@ -22,7 +22,7 @@ export default function aspectRatio(settingOption) {
|
||||
click: event => {
|
||||
const { value } = event.target.dataset;
|
||||
if (value) {
|
||||
player.aspectRatio(value);
|
||||
player.aspectRatio = value;
|
||||
}
|
||||
},
|
||||
mounted: $setting => {
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function flip(settingOption) {
|
||||
click: event => {
|
||||
const { value } = event.target.dataset;
|
||||
if (value) {
|
||||
player.flip(value);
|
||||
player.flip = value;
|
||||
}
|
||||
},
|
||||
mounted: $setting => {
|
||||
|
||||
@@ -21,7 +21,7 @@ export default function playbackRate(settingOption) {
|
||||
proxy($range, 'change', () => {
|
||||
const { value } = $range;
|
||||
$value.innerText = value;
|
||||
player.playbackRate(Number(value));
|
||||
player.playbackRate = Number(value);
|
||||
});
|
||||
|
||||
art.on('playbackRateChange', rate => {
|
||||
|
||||
Reference in new issue
Block a user