Skip to content

Commit 9b39856

Browse files
richiemcilroyRichie McIlroy
authored andcommitted
fix(share): defer segment playback with shared helper
1 parent c9529f9 commit 9b39856

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/app/s/[videoId]/_components/ShareVideo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type { VideoData } from "../types";
1616
import { type CaptionLanguage, useCaptionContext } from "./CaptionContext";
1717
import { CapVideoPlayer } from "./CapVideoPlayer";
1818
import { HLSVideoPlayer } from "./HLSVideoPlayer";
19-
import { useUploadProgress } from "./ProgressCircle";
19+
import { shouldDeferPlaybackSource, useUploadProgress } from "./ProgressCircle";
2020
import {
2121
PreparingVideoOverlay,
2222
RecordingInProgressOverlay,
@@ -200,7 +200,7 @@ export const ShareVideo = forwardRef<
200200
isSegmentsSource &&
201201
(data.hasActiveUpload ?? false) &&
202202
!isActivelyRecording &&
203-
segmentUploadProgress !== null;
203+
shouldDeferPlaybackSource(segmentUploadProgress);
204204

205205
const prevProgressRef = useRef<typeof segmentUploadProgress>(
206206
segmentUploadProgress,

0 commit comments

Comments
 (0)