Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
52bf82ac
Commit
52bf82ac
authored
Jun 12, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Youtube ID defaults to the empty string.
parent
63e376da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
cms/djangoapps/contentstore/features/video-editor.py
+4
-4
common/lib/xmodule/xmodule/video_module.py
+4
-4
No files found.
cms/djangoapps/contentstore/features/video-editor.py
View file @
52bf82ac
...
...
@@ -6,11 +6,11 @@ from lettuce import world, step
@step
(
'I see the correct settings and default values$'
)
def
i_see_the_correct_settings_and_values
(
step
):
world
.
verify_all_setting_entries
([[
'.75x'
,
'
JMD_ifUUfsU
'
,
False
],
[
'1.25x'
,
'
AKqURZnYqpk
'
,
False
],
[
'1.5x'
,
'
DYpADpL7jAY
'
,
False
],
world
.
verify_all_setting_entries
([[
'.75x'
,
''
,
False
],
[
'1.25x'
,
''
,
False
],
[
'1.5x'
,
''
,
False
],
[
'Display Name'
,
'default'
,
True
],
[
'Normal Speed'
,
'
OEoXaMPEzfM
'
,
False
],
[
'Normal Speed'
,
''
,
False
],
[
'Show Captions'
,
'True'
,
False
],
[
'Source'
,
''
,
False
],
[
'Track'
,
''
,
False
]])
common/lib/xmodule/xmodule/video_module.py
View file @
52bf82ac
...
...
@@ -22,10 +22,10 @@ class VideoFields(object):
"""Fields for `VideoModule` and `VideoDescriptor`."""
position
=
Integer
(
help
=
"Current position in the video"
,
scope
=
Scope
.
user_state
,
default
=
0
)
show_captions
=
StringyBoolean
(
help
=
"Whether or not captions are shown"
,
display_name
=
"Show Captions"
,
scope
=
Scope
.
settings
,
default
=
True
)
youtube_id_1_0
=
String
(
help
=
"Youtube ID for normal speed video"
,
display_name
=
"Normal Speed"
,
scope
=
Scope
.
settings
,
default
=
"
OEoXaMPEzfM
"
)
youtube_id_0_75
=
String
(
help
=
"Youtube ID for .75x speed video"
,
display_name
=
".75x"
,
scope
=
Scope
.
settings
,
default
=
"
JMD_ifUUfsU
"
)
youtube_id_1_25
=
String
(
help
=
"Youtube ID for 1.25x speed video"
,
display_name
=
"1.25x"
,
scope
=
Scope
.
settings
,
default
=
"
AKqURZnYqpk
"
)
youtube_id_1_5
=
String
(
help
=
"Youtube ID for 1.5x speed video"
,
display_name
=
"1.5x"
,
scope
=
Scope
.
settings
,
default
=
"
DYpADpL7jAY
"
)
youtube_id_1_0
=
String
(
help
=
"Youtube ID for normal speed video"
,
display_name
=
"Normal Speed"
,
scope
=
Scope
.
settings
,
default
=
""
)
youtube_id_0_75
=
String
(
help
=
"Youtube ID for .75x speed video"
,
display_name
=
".75x"
,
scope
=
Scope
.
settings
,
default
=
""
)
youtube_id_1_25
=
String
(
help
=
"Youtube ID for 1.25x speed video"
,
display_name
=
"1.25x"
,
scope
=
Scope
.
settings
,
default
=
""
)
youtube_id_1_5
=
String
(
help
=
"Youtube ID for 1.5x speed video"
,
display_name
=
"1.5x"
,
scope
=
Scope
.
settings
,
default
=
""
)
start_time
=
StringyFloat
(
help
=
"Time the video starts"
,
display_name
=
"Start Time"
,
scope
=
Scope
.
settings
,
default
=
0.0
)
end_time
=
StringyFloat
(
help
=
"Time the video ends"
,
display_name
=
"End Time"
,
scope
=
Scope
.
settings
,
default
=
0.0
)
source
=
String
(
help
=
"Source to download video"
,
display_name
=
"Source"
,
scope
=
Scope
.
settings
,
default
=
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment