#include "base/logging.h"
#include "base/strings/string_util.h"
#include "content/common/media/media_stream_options.h"
+#include "content/renderer/media/media_stream_video_source.h"
#include "third_party/WebKit/public/platform/WebMediaConstraints.h"
#include "third_party/WebKit/public/platform/WebCString.h"
#include "third_party/WebKit/public/platform/WebString.h"
if (new_constraint.key == kMediaStreamSourceInfoId)
continue;
+ // Ignore constraints that are handled by Chrome in MediaStreamVideoSource.
+ if (MediaStreamVideoSource::IsConstraintSupported(new_constraint.key))
+ continue;
+
DVLOG(3) << "MediaStreamConstraints:" << new_constraint.key
<< " : " << new_constraint.value;
native_constraints->push_back(new_constraint);