Dart Documentationchrome.tabCaptureCaptureOptions

CaptureOptions class

Whether we are requesting tab video and/or audio and the MediaTrackConstraints that should be set for these streams.

class CaptureOptions extends ChromeObject {
 CaptureOptions({bool audio, bool video, MediaStreamConstraint audioConstraints, MediaStreamConstraint videoConstraints}) {
   if (audio != null) this.audio = audio;
   if (video != null) this.video = video;
   if (audioConstraints != null) this.audioConstraints = audioConstraints;
   if (videoConstraints != null) this.videoConstraints = videoConstraints;
 }
 CaptureOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 bool get audio => jsProxy['audio'];
 set audio(bool value) => jsProxy['audio'] = value;

 bool get video => jsProxy['video'];
 set video(bool value) => jsProxy['video'] = value;

 MediaStreamConstraint get audioConstraints => _createMediaStreamConstraint(jsProxy['audioConstraints']);
 set audioConstraints(MediaStreamConstraint value) => jsProxy['audioConstraints'] = jsify(value);

 MediaStreamConstraint get videoConstraints => _createMediaStreamConstraint(jsProxy['videoConstraints']);
 set videoConstraints(MediaStreamConstraint value) => jsProxy['videoConstraints'] = jsify(value);
}

Extends

ChromeObject > CaptureOptions

Constructors

new CaptureOptions({bool audio, bool video, MediaStreamConstraint audioConstraints, MediaStreamConstraint videoConstraints}) #

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

docs inherited from ChromeObject
CaptureOptions({bool audio, bool video, MediaStreamConstraint audioConstraints, MediaStreamConstraint videoConstraints}) {
 if (audio != null) this.audio = audio;
 if (video != null) this.video = video;
 if (audioConstraints != null) this.audioConstraints = audioConstraints;
 if (videoConstraints != null) this.videoConstraints = videoConstraints;
}

new CaptureOptions.fromProxy(JsObject jsProxy) #

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

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

Properties

bool audio #

bool get audio => jsProxy['audio'];
set audio(bool value) => jsProxy['audio'] = value;

MediaStreamConstraint audioConstraints #

MediaStreamConstraint get audioConstraints => _createMediaStreamConstraint(jsProxy['audioConstraints']);
set audioConstraints(MediaStreamConstraint value) => jsProxy['audioConstraints'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

bool video #

bool get video => jsProxy['video'];
set video(bool value) => jsProxy['video'] = value;

MediaStreamConstraint videoConstraints #

MediaStreamConstraint get videoConstraints => _createMediaStreamConstraint(jsProxy['videoConstraints']);
set videoConstraints(MediaStreamConstraint value) => jsProxy['videoConstraints'] = 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();