feat: more commands

This commit is contained in:
Fredrik Burmester
2024-08-25 16:59:53 +02:00
parent 30658ff067
commit 26057ed196
3 changed files with 82 additions and 41 deletions

View File

@@ -26,6 +26,7 @@ export const CurrentlyPlayingBar: React.FC = () => {
playVideo,
setCurrentlyPlayingState,
stopPlayback,
setVolume,
setIsPlaying,
isPlaying,
videoRef,
@@ -202,6 +203,9 @@ export const CurrentlyPlayingBar: React.FC = () => {
setIsPlaying(false);
}
}}
onVolumeChange={(e) => {
setVolume(e.volume);
}}
progressUpdateInterval={2000}
onError={(e) => {
console.log(e);