MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / handleLoadedData

Function handleLoadedData

frontend/src/components/FloatingVideo.jsx:285–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283 seekToStart();
284 };
285 const handleLoadedData = () => {
286 setIsLoading(false);
287 // hls.js applies its `startPosition` after MEDIA_ATTACHED, which can
288 // run later than `loadedmetadata`. Re-seek here as a safety net so a
289 // hls.js live playlist doesn't snap to the live edge after our first
290 // seek attempt happened against an empty seekable range.
291 seekToStart();
292 };
293 const handleCanPlay = () => {
294 setIsLoading(false);
295 // Final fallback for the Safari native-HLS path where seekable.start(0)

Callers

nothing calls this directly

Calls 1

seekToStartFunction · 0.85

Tested by

no test coverage detected