diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 122601171..610ad5fcd 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -267,6 +267,10 @@ export default React.memo(function VideoJs(props: Props) { const player = playerRef.current; if (player) { + try { + window.cast.framework.CastContext.getInstance().getCurrentSession().endSession(false); + } catch {} + player.dispose(); window.player = undefined; }