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
fc4686b8
Commit
fc4686b8
authored
Mar 11, 2014
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a missing comment documenting the changes done in PR 2841.
parent
2a149a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
+11
-0
No files found.
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
View file @
fc4686b8
...
@@ -558,6 +558,17 @@ function (HTML5Video, Resizer) {
...
@@ -558,6 +558,17 @@ function (HTML5Video, Resizer) {
}
}
);
);
// Because of a recent change in the YouTube API (not documented), sometimes
// HTML5 mode loads after Flash mode has been loaded. In this case we have
// multiple speeds available but the variable `this.currentPlayerMode` is
// set to "flash". This is impossible because in Flash mode we can have
// only one speed available. Therefore we must execute the following code
// block if we have multiple speeds or if `this.currentPlayerMode` is set to
// "html5". If any of the two conditions are true, we then set the variable
// `this.currentPlayerMode` to "html5".
//
// For more information, please see the PR that introduced this change:
// https://github.com/edx/edx-platform/pull/2841
if
(
if
(
(
this
.
currentPlayerMode
===
'html5'
||
availablePlaybackRates
.
length
>
1
)
&&
(
this
.
currentPlayerMode
===
'html5'
||
availablePlaybackRates
.
length
>
1
)
&&
this
.
videoType
===
'youtube'
this
.
videoType
===
'youtube'
...
...
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