mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
remove some toggle setter
This commit is contained in:
1 parent
631bcfda58
commit
5f45ad112f
10 files changed
+15
-76
No files matched your search
@@ -1160,7 +1160,7 @@
|
||||
player.toggle();
|
||||
});
|
||||
proxy($video, 'dblclick', function () {
|
||||
player.fullscreenToggle = true;
|
||||
player.fullscreen = !player.fullscreen;
|
||||
});
|
||||
config.events.forEach(function (eventName) {
|
||||
proxy($video, eventName, function (event) {
|
||||
@@ -1887,13 +1887,6 @@
|
||||
|
||||
def(art, 'fullscreen', get(player, 'fullscreen'));
|
||||
});
|
||||
def(player, 'fullscreenToggle', {
|
||||
set: function set(value) {
|
||||
if (value) {
|
||||
player.fullscreen = !player.fullscreen;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function fullscreenWebMix(art, player) {
|
||||
@@ -1917,13 +1910,6 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
def(player, 'fullscreenWebToggle', {
|
||||
set: function set(value) {
|
||||
if (value) {
|
||||
player.fullscreenWeb = !player.fullscreenWeb;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function nativePip(art, player) {
|
||||
@@ -1995,14 +1981,6 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
def(player, 'pipToggle', {
|
||||
set: function set(value) {
|
||||
if (value) {
|
||||
player.pip = !player.pip;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function seekMix(art, player) {
|
||||
@@ -2236,13 +2214,6 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
def(player, 'miniToggle', {
|
||||
set: function set(value) {
|
||||
if (value) {
|
||||
player.mini = !player.mini;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loopMin(art, player) {
|
||||
@@ -2599,7 +2570,7 @@
|
||||
player = art.player;
|
||||
append($control, icons.fullscreen);
|
||||
proxy($control, 'click', function () {
|
||||
player.fullscreenToggle = true;
|
||||
player.fullscreen = !player.fullscreen;
|
||||
});
|
||||
art.on('fullscreen', function (value) {
|
||||
tooltip($control, i18n.get(value ? 'Exit fullscreen' : 'Fullscreen'));
|
||||
@@ -2623,7 +2594,7 @@
|
||||
player = art.player;
|
||||
append($control, icons.fullscreenWeb);
|
||||
proxy($control, 'click', function () {
|
||||
player.fullscreenWebToggle = true;
|
||||
player.fullscreenWeb = !player.fullscreenWeb;
|
||||
});
|
||||
art.on('fullscreenWeb', function (value) {
|
||||
tooltip($control, i18n.get(value ? 'Exit web fullscreen' : 'Web fullscreen'));
|
||||
@@ -2647,7 +2618,7 @@
|
||||
player = art.player;
|
||||
append($control, icons.pip);
|
||||
proxy($control, 'click', function () {
|
||||
player.pipToggle = true;
|
||||
player.pip = !player.pip;
|
||||
});
|
||||
art.on('pip', function (value) {
|
||||
tooltip($control, i18n.get(value ? 'Exit PIP mode' : 'PIP mode'));
|
||||
|
||||
Reference in new issue
Block a user