code: function(action) {
  			//UR
  			if (!window.URL || !window.URL.createObjectURL) {
  				window.URL = window.URL || {};
  				window.URL.createObjectURL = function(obj) {
  					return obj;
  				};
  			}
  			if (_browser.supported) {
  				var newVideo = false;
  				navigator.getUserMedia = navigator.getUserMedia || navigator.oGetUserMedia || navigator.msGetUserMedia || navigator.mozGetUserMedia || navigator.webkitGetUserMedia;
  				_readyCb = function() {
  					try {
  						if (action === 'stop') {
  							_stop = true;
  							icon.reset();
  							_stop = false;
  							return;
  						}
  						newVideo = document.createElement('video');
  						newVideo.width = _w;
  						newVideo.height = _h;
  						navigator.getUserMedia({
  							video : true,
  							audio : false
  						}, function(stream) {
  							newVideo.src = URL.createObjectURL(stream);
  							newVideo.play();
  							drawVideo(newVideo);
  						}, function() {
  						});
  					} catch(e) {
  						throw 'Error setting webcam. Message: ' + e.message;
  					}
  				};
  				if (_ready) {
  					_readyCb();
  				}
  			}
  
  		}
docs: Set video as icon