Skip to content

Commit

Permalink
Learner 7611 - Make URLs of all video encodings available in Blocks A…
Browse files Browse the repository at this point in the history
…PI (#26701)

* LEARNER-7611
Get all quality video urls in blocks api
* moved video profiles from blocks api to video_module
  • Loading branch information
jawad-khan authored Mar 17, 2021
1 parent 10d4c52 commit 7d4f192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/xmodule/xmodule/video_module/video_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def student_view_data(self, context=None):

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

Expand Down

0 comments on commit 7d4f192

Please sign in to comment.