"""Fields for `VideoModule` and `VideoDescriptor`."""
"""Fields for `VideoModule` and `VideoDescriptor`."""
display_name=String(
display_name=String(
display_name="Display Name",
display_name="Display Name",help="Display name for this module.",
help="This name appears in the horizontal navigation at the top of the page.",
default="Video",
scope=Scope.settings
)
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,
scope=Scope.settings,
# it'd be nice to have a useful default but it screws up other things; so,
default=True
# use display_name_with_default for those
default="Video"
)
)
data=String(
# TODO: This should be moved to Scope.content, but this will
help="XML data for the problem",
# require data migration to support the old video module.
default='',
youtube_id_1_0=String(
scope=Scope.content
help="This is the Youtube ID reference for the normal speed video.",
display_name="Youtube ID",
scope=Scope.settings,
default="OEoXaMPEzfM"
)
youtube_id_0_75=String(
help="The Youtube ID for the .75x speed video.",
display_name="Youtube ID for .75x speed",
scope=Scope.settings,
default=""
)
youtube_id_1_25=String(
help="The Youtube ID for the 1.25x speed video.",
display_name="Youtube ID for 1.25x speed",
scope=Scope.settings,
default=""
)
youtube_id_1_5=String(
help="The Youtube ID for the 1.5x speed video.",
display_name="Youtube ID for 1.5x speed",
scope=Scope.settings,
default=""
)
start_time=Float(
help="Start time for the video.",
display_name="Start Time",
scope=Scope.settings,
default=0.0
)
end_time=Float(
help="End time for the video.",
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=""
)
html5_sources=List(
help="A list of filenames to be used with HTML5 video. The first supported filetype will be displayed.",
display_name="Video Sources",
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=""
)
sub=String(
help="The name of the subtitle track (for non-Youtube videos).",
display_name="HTML5 Subtitles",
scope=Scope.settings,
default=""
)
)
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="")