"""Fields for `VideoModule` and `VideoDescriptor`."""
data=String(help="XML data for the problem",scope=Scope.content)
position=Integer(help="Current position in the video",scope=Scope.user_state,default=0)
show_captions=Boolean(help="This controls whether or not captions are shown by default.",display_name="Show Captions",scope=Scope.settings,default=True)
youtube_id_1_0=String(help="This is the Youtube ID reference for the normal speed video.",display_name="Default Speed",scope=Scope.settings,default="OEoXaMPEzfM")
youtube_id_0_75=String(help="The Youtube ID for the .75x speed video.",display_name="Speed: .75x",scope=Scope.settings,default="")
youtube_id_1_25=String(help="The Youtube ID for the 1.25x speed video.",display_name="Speed: 1.25x",scope=Scope.settings,default="")
youtube_id_1_5=String(help="The Youtube ID for the 1.5x speed video.",display_name="Speed: 1.5x",scope=Scope.settings,default="")
start_time=Float(help="Time the video starts",display_name="Start Time",scope=Scope.settings,default=0.0)
end_time=Float(help="Time the video ends",display_name="End Time",scope=Scope.settings,default=0.0)
source=String(help="The external URL to download the video. This appears as a link beneath the video.",display_name="Download Video",scope=Scope.settings,default="")
track=String(help="The external URL to download the subtitle track. This appears as a link beneath the video.",display_name="Download Track",scope=Scope.settings,default="")
classVideoModule(VideoFields,XModule):
...
...
@@ -46,54 +54,6 @@ class VideoModule(VideoFields, XModule):
<videoname="S0V1: Video Resources"youtube="0.75:EuzkdzfR0i8,1.0:1bK-WdDi6Qw,1.25:0v1VzoDVUTM,1.50:Bxk_-ZJb240"/>
<videoname="S0V1: Video Resources"youtube_id_0_75=""EuzkdzfR0i8""youtube_id_1_0=""1bK-WdDi6Qw""youtube_id_1_25=""0v1VzoDVUTM""youtube_id_1_5=""Bxk_-ZJb240""/>
</videosequence>
<sectionname="Lecture 2">
<sequential>
<videoyoutube="1.0:TBvX7HzxexQ"/>
<videoyoutube_id_1_0=""TBvX7HzxexQ""/>
<problemname="L1 Problem 1"points="1"type="lecture"showanswer="attempted"filename="L1_Problem_1"rerandomize="never"/>