|
|
|
@ -90,7 +90,7 @@ import BigWaveform from './components/BigWaveform';
|
|
|
|
|
|
|
|
|
|
|
|
import isDev from './isDev';
|
|
|
|
import isDev from './isDev';
|
|
|
|
import { BatchFile, Chapter, CustomTagsByFile, EdlExportType, EdlFileType, EdlImportType, FfmpegCommandLog, FilesMeta, goToTimecodeDirectArgsSchema, openFilesActionArgsSchema, ParamsByStreamId, PlaybackMode, SegmentBase, SegmentColorIndex, SegmentTags, StateSegment, TunerType } from './types';
|
|
|
|
import { BatchFile, Chapter, CustomTagsByFile, EdlExportType, EdlFileType, EdlImportType, FfmpegCommandLog, FilesMeta, goToTimecodeDirectArgsSchema, openFilesActionArgsSchema, ParamsByStreamId, PlaybackMode, SegmentBase, SegmentColorIndex, SegmentTags, StateSegment, TunerType } from './types';
|
|
|
|
import { CaptureFormat, KeyboardAction, Html5ifyMode, ApiActionRequest, KeyBinding } from '../../../types';
|
|
|
|
import { CaptureFormat, KeyboardAction, Html5ifyMode, ApiActionRequest } from '../../../types';
|
|
|
|
import { FFprobeChapter, FFprobeFormat, FFprobeStream } from '../../../ffprobe';
|
|
|
|
import { FFprobeChapter, FFprobeFormat, FFprobeStream } from '../../../ffprobe';
|
|
|
|
import useLoading from './hooks/useLoading';
|
|
|
|
import useLoading from './hooks/useLoading';
|
|
|
|
import useVideo from './hooks/useVideo';
|
|
|
|
import useVideo from './hooks/useVideo';
|
|
|
|
@ -179,7 +179,7 @@ function App() {
|
|
|
|
} = allUserSettings;
|
|
|
|
} = allUserSettings;
|
|
|
|
|
|
|
|
|
|
|
|
// Note that each action may be multiple key bindings and this will only be the first binding for each action
|
|
|
|
// Note that each action may be multiple key bindings and this will only be the first binding for each action
|
|
|
|
const keyBindingByAction = useMemo(() => Object.fromEntries(keyBindings.map((binding) => [binding.action, binding])) as Record<KeyboardAction, KeyBinding>, [keyBindings]);
|
|
|
|
const keyBindingByAction = useMemo(() => Object.fromEntries(keyBindings.map((binding) => [binding.action, binding])), [keyBindings]);
|
|
|
|
|
|
|
|
|
|
|
|
const { working, setWorking, workingRef, abortWorking } = useLoading();
|
|
|
|
const { working, setWorking, workingRef, abortWorking } = useLoading();
|
|
|
|
const { videoRef, videoContainerRef, playbackRate, setPlaybackRate, outputPlaybackRate, setOutputPlaybackRate, commandedTime, seekAbs, playingRef, getRelevantTime, setPlaying, onSeeked, relevantTime, onStartPlaying, setCommandedTime, setOutputPlaybackRateState, commandedTimeRef, onStopPlaying, onVideoAbort, playerTime, setPlayerTime, playbackModeRef, playing, play, pause, seekRel } = useVideo({ filePath });
|
|
|
|
const { videoRef, videoContainerRef, playbackRate, setPlaybackRate, outputPlaybackRate, setOutputPlaybackRate, commandedTime, seekAbs, playingRef, getRelevantTime, setPlaying, onSeeked, relevantTime, onStartPlaying, setCommandedTime, setOutputPlaybackRateState, commandedTimeRef, onStopPlaying, onVideoAbort, playerTime, setPlayerTime, playbackModeRef, playing, play, pause, seekRel } = useVideo({ filePath });
|
|
|
|
|