 		NSLog("PluginRTCVideoCaptureController#stopCapture Capture stopped");
 	}
 	
-	func switchCamera() -> Bool {
-		return self.startCapture()
-	}
-	
 	fileprivate func findDevice() -> AVCaptureDevice? {
 		
 		var device : AVCaptureDevice?;
 		
-		// TODO facingMode ConstrainDOMString NSDictionary
-		// TODO check deviceId
+		// facingMode ConstrainDOMString NSDictionary
 		// Check the video contraints: examine facingMode and deviceId
 		// and pick a default if neither are specified.
 		var position = AVCaptureDevice.Position.front;

			
			// TODO Apply frameRates via minFrameRate/maxFrameRate
			
			NSLog("PluginRTCVideoCaptureController#selectFormatForDevice width:%i, height:%i, aspectRatio: %f, frameRateRanges:%f/%f", dimension.width, dimension.height, aspectRatio, frameRates.minFrameRate, frameRates.maxFrameRate);
		}
	
		return selectedFormat
	}
	
	//

		return isRequired;
	}
	
	fileprivate func getConstrainRangeValues(constraint: String) -> NSDictionary {
		let constraints = self.constraints;
		let finalValue: NSMutableDictionary = [:];
		finalValue.setValue(0, forKey: "min")
