1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-28 08:58:46 +02:00

@mister-ben blacklisted Chrome for Android for playback rate support. closes #3246

This commit is contained in:
mister-ben 2016-04-19 15:13:50 -04:00 committed by Gary Katsevman
parent fdd4d25bad
commit 6b5040c04c
3 changed files with 10 additions and 3 deletions

View File

@ -3,6 +3,7 @@ CHANGELOG
## HEAD (Unreleased)
* @benjipott updated IS_CHROME to not be true on MS Edge ([view](https://github.com/videojs/video.js/pull/3232))
* @mister-ben blacklisted Chrome for Android for playback rate support ([view](https://github.com/videojs/video.js/pull/3246))
--------------------

View File

@ -119,9 +119,10 @@ class PlaybackRateMenuButton extends MenuButton {
}
/**
* Get supported playback rates
* Get whether playback rates is supported by the tech
* and an array of playback rates exists
*
* @return {Array} Supported playback rates
* @return {Boolean} Whether changing playback rate is supported
* @method playbackRateSupported
*/
playbackRateSupported() {

View File

@ -935,9 +935,14 @@ Html5.canControlVolume = function(){
/*
* Check if playbackRate is supported in this browser/device.
*
* @return {Number} [description]
* @return {Boolean}
*/
Html5.canControlPlaybackRate = function(){
// Playback rate API is implemented in Android Chrome, but doesn't do anything
// https://github.com/videojs/video.js/issues/3180
if (browser.IS_ANDROID && browser.IS_CHROME) {
return false;
}
var playbackRate = Html5.TEST_VID.playbackRate;
Html5.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
return playbackRate !== Html5.TEST_VID.playbackRate;