Dart Documentationchrome.tabCaptureMediaStreamConstraint

MediaStreamConstraint class

MediaTrackConstraints for the media streams that will be passed to WebRTC. See section on MediaTrackConstraints: http://dev.w3.org/2011/webrtc/editor/getusermedia.html

class MediaStreamConstraint extends ChromeObject {
 MediaStreamConstraint({var mandatory, var optional}) {
   if (mandatory != null) this.mandatory = mandatory;
   if (optional != null) this.optional = optional;
 }
 MediaStreamConstraint.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 dynamic get mandatory => jsProxy['mandatory'];
 set mandatory(var value) => jsProxy['mandatory'] = jsify(value);

 dynamic get optional => jsProxy['_optional'];
 set optional(var value) => jsProxy['_optional'] = jsify(value);
}

Extends

ChromeObject > MediaStreamConstraint

Constructors

new MediaStreamConstraint({mandatory, optional}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
MediaStreamConstraint({var mandatory, var optional}) {
 if (mandatory != null) this.mandatory = mandatory;
 if (optional != null) this.optional = optional;
}

new MediaStreamConstraint.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
MediaStreamConstraint.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

var mandatory #

dynamic get mandatory => jsProxy['mandatory'];
set mandatory(var value) => jsProxy['mandatory'] = jsify(value);

var optional #

dynamic get optional => jsProxy['_optional'];
set optional(var value) => jsProxy['_optional'] = jsify(value);

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();