-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: player playback speed #306
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.json is missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this effect to close the menu:
React.useEffect(() => {
if (videoState.playbackSpeed === null) {
closeSpeedMenu();
}
}, [videoState.playbackSpeed]);
…into feat/player-playback-speed
closeVideosMenu(); | ||
if (player.metaItem !== null && player.metaItem.type === 'Ready') { | ||
toggleInfoMenu(); | ||
} | ||
|
||
break; | ||
} | ||
case 'KeyR': { | ||
closeInfoMenu(); | ||
closeSubtitlesMenu(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call closeVideosMenu()
here
} | ||
|
||
break; | ||
} | ||
case 'KeyV': { | ||
closeInfoMenu(); | ||
closeSubtitlesMenu(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call closeSpeedMenu()
here
src/routes/Player/Player.js
Outdated
case 'KeyR': { | ||
closeInfoMenu(); | ||
closeSubtitlesMenu(); | ||
if (player.playbackSpeed !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be videoState
also it should be added to the effect deps
Closes #237