mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 01: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
@@ -15,9 +15,11 @@ export default function fastForward(art) {
|
||||
let isPress = false;
|
||||
|
||||
proxy($layer, 'touchstart', () => {
|
||||
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', () => {
|
||||
|
||||
@@ -12,7 +12,7 @@ export default class Plugins {
|
||||
|
||||
const { option } = art;
|
||||
|
||||
if (!option.isLive && option.miniProgressBar) {
|
||||
if (option.miniProgressBar && !option.isLive) {
|
||||
this.add(miniProgressBar);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export default class Plugins {
|
||||
this.add(autoOrientation);
|
||||
}
|
||||
|
||||
if (option.fastForward && isMobile) {
|
||||
if (option.fastForward && isMobile && !option.isLive) {
|
||||
this.add(fastForward);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user