From b02c8a6844613251dbf100acfd3142d5fb204a67 Mon Sep 17 00:00:00 2001 From: aaronshiel Date: Fri, 26 Jul 2024 11:53:22 -0700 Subject: [PATCH] idle video cache url param --- client/src/use-with-cur-mentor-data.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/use-with-cur-mentor-data.tsx b/client/src/use-with-cur-mentor-data.tsx index ae26eb1d..a6ee5c6f 100644 --- a/client/src/use-with-cur-mentor-data.tsx +++ b/client/src/use-with-cur-mentor-data.tsx @@ -121,7 +121,9 @@ export function useWithCurMentorData(): UseWithCurMentorData { const _idleVideoData = getIdleVideoData(curMentor); if (_idleVideoData.src !== idleVideo.src) setIdleVideo({ - src: _idleVideoData.src, + src: _idleVideoData.src + ? `${_idleVideoData.src}?v=${Math.random()}` + : "", subtitles: "", }); }, [curMentor?.answer_media, replayMessageCount]);