From 9fd5455209f71c8d3b2154ea74429f80670ea765 Mon Sep 17 00:00:00 2001 From: SujithThirumalaisamy Date: Thu, 5 Dec 2024 11:27:27 +0530 Subject: [PATCH] Added full screen for appx player --- src/actions/user/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actions/user/index.ts b/src/actions/user/index.ts index 7f6f960a..316e29f4 100644 --- a/src/actions/user/index.ts +++ b/src/actions/user/index.ts @@ -73,6 +73,8 @@ export const GetAppxVideoPlayerUrl = async (courseId: string, videoId: string): const res = await axios.request(config); const { video_player_token, video_player_url } = res.data.data; - const full_video_url = `${video_player_url}${video_player_token}&watermark=${name}%0A${email}`; + const parsed_url = new URL(video_player_url); + parsed_url.searchParams.delete('isMobile'); + const full_video_url = `${parsed_url.toString()}${video_player_token}&watermark=${name}%0A${email}`; return full_video_url; };