Backport Chrome 34 workarround

Known bug in Chrome 34 for Linux
This commit is contained in:
Daniel Berteaud 2014-04-30 17:49:01 +02:00
parent 4ced1dd4d9
commit ab4126d8a9
1 changed files with 4 additions and 1 deletions

View File

@ -4546,7 +4546,10 @@ module.exports = function (constraints, cb) {
if (window.navigator.userAgent.match('Chrome')) {
var chromever = parseInt(window.navigator.userAgent.match(/Chrome\/(.*) /)[1], 10);
if (chromever >= 26 && chromever <= 35) {
var maxver = 33;
// "known‶ bug in chrome 34 on linux
if (window.navigator.userAgent.match('Linux')) maxver = 34;
if (chromever >= 26 && chromever <= maxver) {
// chrome 26 - chrome 33 way to do it -- requires bad chrome://flags
constraints = (hasConstraints && constraints) || {
video: {