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
7af892e6
Commit
7af892e6
authored
Sep 18, 2013
by
jmclaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled video autoplay for students
parent
c65e21c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
+3
-0
lms/djangoapps/courseware/tests/test_video_mongo.py
+1
-1
lms/djangoapps/courseware/tests/test_video_xml.py
+1
-1
lms/envs/common.py
+2
-2
No files found.
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
View file @
7af892e6
...
@@ -420,12 +420,15 @@ function (HTML5Video) {
...
@@ -420,12 +420,15 @@ function (HTML5Video) {
this
.
videoPlayer
.
player
.
setPlaybackRate
(
this
.
speed
);
this
.
videoPlayer
.
player
.
setPlaybackRate
(
this
.
speed
);
}
}
/* The following has been commented out to make sure autoplay is
disabled for students.
if (
if (
!onTouchBasedDevice() &&
!onTouchBasedDevice() &&
$('.video:first').data('autoplay') === 'True'
$('.video:first').data('autoplay') === 'True'
) {
) {
this.videoPlayer.play();
this.videoPlayer.play();
}
}
*/
}
}
function
onStateChange
(
event
)
{
function
onStateChange
(
event
)
{
...
...
lms/djangoapps/courseware/tests/test_video_mongo.py
View file @
7af892e6
...
@@ -61,7 +61,7 @@ class TestVideo(BaseTestXmodule):
...
@@ -61,7 +61,7 @@ class TestVideo(BaseTestXmodule):
'sub'
:
u'a_sub_file.srt.sjson'
,
'sub'
:
u'a_sub_file.srt.sjson'
,
'track'
:
''
,
'track'
:
''
,
'youtube_streams'
:
_create_youtube_string
(
self
.
item_module
),
'youtube_streams'
:
_create_youtube_string
(
self
.
item_module
),
'autoplay'
:
settings
.
MITX_FEATURES
.
get
(
'AUTOPLAY_VIDEOS'
,
Tru
e
),
'autoplay'
:
settings
.
MITX_FEATURES
.
get
(
'AUTOPLAY_VIDEOS'
,
Fals
e
),
'yt_test_timeout'
:
1500
,
'yt_test_timeout'
:
1500
,
'yt_test_url'
:
'https://gdata.youtube.com/feeds/api/videos/'
'yt_test_url'
:
'https://gdata.youtube.com/feeds/api/videos/'
}
}
...
...
lms/djangoapps/courseware/tests/test_video_xml.py
View file @
7af892e6
...
@@ -94,7 +94,7 @@ class VideoModuleUnitTest(unittest.TestCase):
...
@@ -94,7 +94,7 @@ class VideoModuleUnitTest(unittest.TestCase):
'sources'
:
sources
,
'sources'
:
sources
,
'youtube_streams'
:
_create_youtube_string
(
module
),
'youtube_streams'
:
_create_youtube_string
(
module
),
'track'
:
''
,
'track'
:
''
,
'autoplay'
:
settings
.
MITX_FEATURES
.
get
(
'AUTOPLAY_VIDEOS'
,
Tru
e
),
'autoplay'
:
settings
.
MITX_FEATURES
.
get
(
'AUTOPLAY_VIDEOS'
,
Fals
e
),
'yt_test_timeout'
:
1500
,
'yt_test_timeout'
:
1500
,
'yt_test_url'
:
'https://gdata.youtube.com/feeds/api/videos/'
'yt_test_url'
:
'https://gdata.youtube.com/feeds/api/videos/'
}
}
...
...
lms/envs/common.py
View file @
7af892e6
...
@@ -144,8 +144,8 @@ MITX_FEATURES = {
...
@@ -144,8 +144,8 @@ MITX_FEATURES = {
# Toggle to indicate use of a custom theme
# Toggle to indicate use of a custom theme
'USE_CUSTOM_THEME'
:
False
,
'USE_CUSTOM_THEME'
:
False
,
# Do autoplay videos for students
# Do
n't
autoplay videos for students
'AUTOPLAY_VIDEOS'
:
Tru
e
,
'AUTOPLAY_VIDEOS'
:
Fals
e
,
# Enable instructor dash to submit background tasks
# Enable instructor dash to submit background tasks
'ENABLE_INSTRUCTOR_BACKGROUND_TASKS'
:
True
,
'ENABLE_INSTRUCTOR_BACKGROUND_TASKS'
:
True
,
...
...
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