Skip to content

Commit 45bf184

Browse files
SujithThirumalaisamyhkirat
authored andcommitted
Added full screen for appx player
1 parent cd47cca commit 45bf184

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/actions/user/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export const GetAppxVideoPlayerUrl = async (courseId: string, videoId: string):
7373

7474
const res = await axios.request(config);
7575
const { video_player_token, video_player_url } = res.data.data;
76-
const full_video_url = `${video_player_url}${video_player_token}&watermark=${name}%0A${email}`;
76+
const parsed_url = new URL(video_player_url);
77+
parsed_url.searchParams.delete('isMobile');
78+
const full_video_url = `${parsed_url.toString()}${video_player_token}&watermark=${name}%0A${email}`;
7779
return full_video_url;
7880
};

0 commit comments

Comments
 (0)