From 7d4f192bcb4d0bb489c9411467eee00ebde38647 Mon Sep 17 00:00:00 2001 From: jawad khan Date: Wed, 17 Mar 2021 13:11:34 +0500 Subject: [PATCH] Learner 7611 - Make URLs of all video encodings available in Blocks API (#26701) * LEARNER-7611 Get all quality video urls in blocks api * moved video profiles from blocks api to video_module --- common/lib/xmodule/xmodule/video_module/video_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/video_module/video_module.py b/common/lib/xmodule/xmodule/video_module/video_module.py index a5b3d07a66..5ef0a9eeed 100644 --- a/common/lib/xmodule/xmodule/video_module/video_module.py +++ b/common/lib/xmodule/xmodule/video_module/video_module.py @@ -1079,7 +1079,7 @@ class VideoBlock( # Check in VAL data first if edx_video_id exists if self.edx_video_id: - video_profile_names = context.get("profiles", ["mobile_low"]) + video_profile_names = context.get("profiles", ["mobile_low", 'desktop_mp4', 'desktop_webm', 'mobile_high']) if HLSPlaybackEnabledFlag.feature_enabled(self.location.course_key) and 'hls' not in video_profile_names: video_profile_names.append('hls')