This commit is contained in:
Nicolas Mowen 2025-05-19 08:08:13 -06:00
parent 9bcfb5a852
commit 842cba4245

View File

@ -198,25 +198,10 @@ export default function DynamicVideoPlayer({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [controller, recordings]);
<<<<<<< Updated upstream
/** the HLS endpoint returns the vod segments with the first
* segment of the hour trimmed, meaning it will start at
* the beginning of the hour, cutting off any difference
* that the segment has.
*/
const inpointOffset = useMemo(() => {
if (!recordingParams || !recordings || recordings?.length === 0) {
return 0;
}
return recordingParams.after - recordings[0].start_time;
}, [recordingParams, recordings]);
=======
const inpointOffset = useMemo(
() => calculateInpointOffset(recordingParams.after, (recordings || [])[0]),
[recordingParams, recordings],
);
>>>>>>> Stashed changes
return (
<>