mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 06:26:16 -08:00
update fastForward
This commit is contained in:
1 parent
8c7edbb83a
commit
c5ed370c8b
4 files changed
+15
-11
No files matched your search
@@ -4960,9 +4960,11 @@
|
||||
mounted: function mounted($layer) {
|
||||
var isPress = false;
|
||||
proxy($layer, 'touchstart', function () {
|
||||
isPress = true;
|
||||
art.playbackRate = 3;
|
||||
addClass($player, 'art-fast-forward');
|
||||
if (art.playing) {
|
||||
isPress = true;
|
||||
art.playbackRate = 3;
|
||||
addClass($player, 'art-fast-forward');
|
||||
}
|
||||
});
|
||||
proxy(document, 'touchend', function () {
|
||||
if (isPress) {
|
||||
@@ -5031,7 +5033,7 @@
|
||||
this.id = 0;
|
||||
var option = art.option;
|
||||
|
||||
if (!option.isLive && option.miniProgressBar) {
|
||||
if (option.miniProgressBar && !option.isLive) {
|
||||
this.add(miniProgressBar);
|
||||
}
|
||||
|
||||
@@ -5047,7 +5049,7 @@
|
||||
this.add(autoOrientation);
|
||||
}
|
||||
|
||||
if (option.fastForward && isMobile) {
|
||||
if (option.fastForward && isMobile && !option.isLive) {
|
||||
this.add(fastForward);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user