mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
规范化play方法
This commit is contained in:
1 parent
11e871ddc8
commit
c5c4cf73eb
29 files changed
+81
-623
No files matched your search
@@ -17,11 +17,11 @@ export default function playAndPause(option) {
|
||||
tooltip($pause, i18n.get('Pause'));
|
||||
|
||||
proxy($play, 'click', () => {
|
||||
player.play = true;
|
||||
player.play();
|
||||
});
|
||||
|
||||
proxy($pause, 'click', () => {
|
||||
player.pause = true;
|
||||
player.pause();
|
||||
});
|
||||
|
||||
function showPlay() {
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function setting(option) {
|
||||
append($control, icons.setting);
|
||||
|
||||
proxy($control, 'click', () => {
|
||||
setting.toggle = true;
|
||||
setting.toggle();
|
||||
});
|
||||
|
||||
art.on('setting', value => {
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function subtitle(option) {
|
||||
append($control, icons.subtitle);
|
||||
|
||||
proxy($control, 'click', () => {
|
||||
subtitle.toggle = true;
|
||||
subtitle.toggle();
|
||||
});
|
||||
|
||||
art.on('subtitle', value => {
|
||||
|
||||
Reference in new issue
Block a user