Commit 1ad6468d by Bertrand Marron

Remove autoplay for video in course about page

The iframe was generated with autoplay=1, which, sometimes, would cause
the video to play in the background.
parent 98a5ce32
...@@ -182,7 +182,7 @@ class CourseDetails(object): ...@@ -182,7 +182,7 @@ class CourseDetails(object):
result = None result = None
if video_key: if video_key:
result = '<iframe width="560" height="315" src="//www.youtube.com/embed/' + \ result = '<iframe width="560" height="315" src="//www.youtube.com/embed/' + \
video_key + '?autoplay=1&rel=0" frameborder="0" allowfullscreen=""></iframe>' video_key + '?rel=0" frameborder="0" allowfullscreen=""></iframe>'
return result return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment