ChooseDesktopMediaOptions constructor

ChooseDesktopMediaOptions({
  1. SystemAudioPreferenceEnum? systemAudio,
  2. SelfCapturePreferenceEnum? selfBrowserSurface,
  3. bool? suppressLocalAudioPlaybackIntended,
})

Implementation

ChooseDesktopMediaOptions({
  /// Mirrors
  /// [systemAudio](https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamconstraints-systemaudio).
  SystemAudioPreferenceEnum? systemAudio,

  /// Mirrors
  /// [selfBrowserSurface](https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamconstraints-selfbrowsersurface).
  SelfCapturePreferenceEnum? selfBrowserSurface,

  /// Indicates that the caller intends to perform local audio suppression,
  /// and that the media picker shown to the user should therefore reflect
  /// that with the appropriate warnings, as it does when getDisplayMedia() is
  /// invoked.
  bool? suppressLocalAudioPlaybackIntended,
}) : _wrapped = $js.ChooseDesktopMediaOptions(
        systemAudio: systemAudio?.toJS,
        selfBrowserSurface: selfBrowserSurface?.toJS,
        suppressLocalAudioPlaybackIntended:
            suppressLocalAudioPlaybackIntended,
      );