/**
 * Expose the MediaDevices class.
 */
module.exports = MediaDevices;

/**
 * Spec: https://w3c.github.io/mediacapture-main/#dom-mediadevices
 */

/**
 * Dependencies.
 */
var
	EventTarget = require('./EventTarget'),
	getUserMedia = require('./getUserMedia'),
	enumerateDevices = require('./enumerateDevices');

function MediaDevices(data) {

	//ondevicechange
	//enumerateDevices
	//getDisplayMedia
	//getSupportedConstraints
	//getUserMedia

	var self = this;

	// Make this an EventTarget.
	EventTarget.call(self);

	data = data || {};
}

MediaDevices.prototype = Object.create(EventTarget.prototype);
MediaDevices.prototype.constructor = MediaDevices;

MediaDevices.prototype.getUserMedia = function (constraints) {
	return getUserMedia(constraints);
};

MediaDevices.prototype.enumerateDevices = function () {
	return enumerateDevices();
};

@@ -838,12 +838,825 @@
 vices();%0A%7D;%0A
+%0AMediaDevices.prototype.getSupportedConstraints = function () %7B%0A%09return %7B%0A%09%09// Supported%0A%09%09%22height%22: true,%0A%09%09%22width%22: true,%0A%09%09%22deviceId%22: true,%0A%09%09%22frameRate%22: true,%0A%09%09%22sampleRate%22: true,%0A%09%09%22aspectRatio%22: true,%0A%09%09// Not Supported%0A%09%09%22autoGainControl%22: false,%0A%09%09%22brightness%22: false,%0A%09%09%22channelCount%22: false,%0A%09%09%22colorTemperature%22: false,%0A%09%09%22contrast%22: false,%0A%09%09%22echoCancellation%22: false,%0A%09%09%22exposureCompensation%22: false,%0A%09%09%22exposureMode%22: false,%0A%09%09%22exposureTime%22: false,%0A%09%09%22facingMode%22: true,%0A%09%09%22focusDistance%22: false,%0A%09%09%22focusMode%22: false,%0A%09%09%22groupId%22: false,%0A%09%09%22iso%22: false,%0A%09%09%22latency%22: false,%0A%09%09%22noiseSuppression%22: false,%0A%09%09%22pointsOfInterest%22: false,%0A%09%09%22resizeMode%22: false,%0A%09%09%22sampleSize%22: false,%0A%09%09%22saturation%22: false,%0A%09%09%22sharpness%22: false,%0A%09%09%22torch%22: false,%0A%09%09%22whiteBalanceMode%22: false,%0A%09%09%22zoom%22: false%0A%09%7D;%0A%7D;%0A%0A

implement basic MediaDevices.prototype.getSupportedConstraints SHIM