MCPcopy Index your code
hub / github.com/code100x/cms / handleVideoEnded

Function handleVideoEnded

src/components/VideoPlayer2.tsx:610–614  ·  view source on GitHub ↗
(interval: number)

Source from the content-addressed store, hash-verified

608 );
609 };
610 const handleVideoEnded = (interval: number) => {
611 handleMarkAsCompleted(true, contentId);
612 window.clearInterval(interval);
613 onVideoEnd();
614 };
615
616 player.on('play', handleVideoProgress);
617 player.on('ended', () => handleVideoEnded(interval));

Callers 1

VideoPlayerFunction · 0.85

Calls 1

handleMarkAsCompletedFunction · 0.90

Tested by

no test coverage detected