Skip to content

The swiss army knife of lossless video/audio editing

fix typo onSartPlaying

Mikael Finstad71480fabdd83
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index 4e8743d6..e336a1b0 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -2393,7 +2393,7 @@ function App() {
ref={videoRef}
style={videoStyle}
src={fileUri}
- onPlay={onSartPlaying}
+ onPlay={onStartPlaying}
onPause={onStopPlaying}
onAbort={onVideoAbort}
onDurationChange={onDurationChange}
diff --git a/src/renderer/src/hooks/useVideo.ts b/src/renderer/src/hooks/useVideo.ts
index 9b6c52db..a1a8dfc2 100644
--- a/src/renderer/src/hooks/useVideo.ts
+++ b/src/renderer/src/hooks/useVideo.ts
@@ -97,7 +97,7 @@ export default ({ filePath }: { filePath: string | undefined }) => {
playbackModeRef.current = undefined;
}, []);
- const onSartPlaying = useCallback(() => onPlayingChange(true), [onPlayingChange]);
+ const onStartPlaying = useCallback(() => onPlayingChange(true), [onPlayingChange]);
const onDurationChange = useCallback<ReactEventHandler<HTMLVideoElement>>((e) => {
// Some files report duration infinity first, then proper duration later
// Sometimes after seeking to end of file, duration might change
@@ -144,7 +144,7 @@ export default ({ filePath }: { filePath: string | undefined }) => {
setPlaying,
playingRef,
onStopPlaying,
- onSartPlaying,
+ onStartPlaying,
onSeeked,
seekAbs,
seekRel,