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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user