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
8ba9497f
Commit
8ba9497f
authored
Aug 14, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #675 from edx/anton/disable_0-25x_speed
Add filter for playback rates.
parents
bcb4ae07
b4df2c4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
+15
-1
No files found.
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
View file @
8ba9497f
...
...
@@ -315,7 +315,21 @@ function (HTML5Video) {
this
.
videoPlayer
.
log
(
'load_video'
);
availablePlaybackRates
=
this
.
videoPlayer
.
player
.
getAvailablePlaybackRates
();
availablePlaybackRates
=
this
.
videoPlayer
.
player
.
getAvailablePlaybackRates
();
// Because of problems with muting sound outside of range 0.25 and
// 5.0, we should filter our available playback rates.
// Issues:
// https://code.google.com/p/chromium/issues/detail?id=264341
// https://bugzilla.mozilla.org/show_bug.cgi?id=840745
// https://developer.mozilla.org/en-US/docs/DOM/HTMLMediaElement
availablePlaybackRates
=
_
.
filter
(
availablePlaybackRates
,
function
(
item
){
var
speed
=
Number
(
item
);
return
speed
>
0.25
&&
speed
<=
5
;
});
if
((
this
.
currentPlayerMode
===
'html5'
)
&&
(
this
.
videoType
===
'youtube'
))
{
if
(
availablePlaybackRates
.
length
===
1
)
{
// This condition is needed in cases when Firefox version is less than 20. In those versions
...
...
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