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
This commit is contained in:
jawad khan
2021-03-17 13:11:34 +05:00
committed by GitHub
parent 10d4c5259d
commit 7d4f192bcb

View File

@@ -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')