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
aa0cda96
Commit
aa0cda96
authored
Aug 05, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #571 from edx/valera/one_speed_html5_fix
Fixed typo of function call. Added comment why it is necessary.
parents
85267e6a
a0aa652d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
common/lib/xmodule/xmodule/js/src/videoalpha/03_video_player.js
+8
-1
No files found.
common/lib/xmodule/xmodule/js/src/videoalpha/03_video_player.js
View file @
aa0cda96
...
...
@@ -318,7 +318,14 @@ function (HTML5Video) {
availablePlaybackRates
=
this
.
videoPlayer
.
player
.
getAvailablePlaybackRates
();
if
((
this
.
currentPlayerMode
===
'html5'
)
&&
(
this
.
videoType
===
'youtube'
))
{
if
(
availablePlaybackRates
.
length
===
1
)
{
restartUsingFlash
(
this
);
// This condition is needed in cases when Firefox version is less than 20. In those versions
// HTML5 playback could only happen at 1 speed (no speed changing). Therefore, in this case,
// we need to switch back to Flash.
//
// This might also happen in other browsers, therefore when we have 1 speed available, we fall
// back to Flash.
_restartUsingFlash
(
this
);
return
;
}
else
if
(
availablePlaybackRates
.
length
>
1
)
{
...
...
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