diff --git a/frontend/app/components/Session/LivePlayer.tsx b/frontend/app/components/Session/LivePlayer.tsx index 5a88cf89a..6a1534772 100644 --- a/frontend/app/components/Session/LivePlayer.tsx +++ b/frontend/app/components/Session/LivePlayer.tsx @@ -60,7 +60,7 @@ function LivePlayer({ makeAutoObservable(state) ); setContextValue({ player, store }); - player.play(); + return () => player.clean(); }, [session.sessionId, assistCredendials]); diff --git a/frontend/app/components/Session_/Multiview/Multiview.tsx b/frontend/app/components/Session_/Multiview/Multiview.tsx index b60c20c27..d9986a800 100644 --- a/frontend/app/components/Session_/Multiview/Multiview.tsx +++ b/frontend/app/components/Session_/Multiview/Multiview.tsx @@ -9,8 +9,9 @@ import { liveSession, assist, withSiteId } from 'App/routes'; import AssistSessionsModal from 'App/components/Session_/Player/Controls/AssistSessionsModal'; import { useModal } from 'App/components/Modal'; import LivePlayer from 'App/components/Session/LivePlayer'; +import { InactiveTab } from 'App/components/Session_/Player/Controls/AssistSessionsTabs' -function Multiview({ total, fetchSessions, siteId }: { total: number; fetchSessions: (filter: any) => void, siteId: string }) { +function Multiview({ total, fetchSessions, siteId, assistCredendials }: { total: number; fetchSessions: (filter: any) => void, siteId: string, assistCredendials: any }) { const { showModal, hideModal } = useModal(); const { assistMultiviewStore } = useStore(); @@ -58,12 +59,14 @@ function Multiview({ total, fetchSessions, siteId }: { total: number; fetchSessi className="border hover:border-active-blue-border relative group cursor-pointer" >