Constructors

Properties

#backgroundEffect: BackgroundEffect = BackgroundEffect.NONE
imageSegmenter: undefined | ImageSegmenter

Accessors

Methods

  • Parameters

    • constraints: undefined | boolean | MediaTrackConstraints
    • defaultConstraints: MediaTrackConstraints

    Returns boolean | MediaTrackConstraints

  • Method that returns a {MediaStream} based on constraints provided This method is needed for screen sharing when an unique stream that contains audio, video and screen tracks must be obtained. Current implementation has some limitations:

    • Require two video tracks (camera and screen) is not supported
    • Screen sharing is only supported on Chrome >= 72, Firefox >= 66 and Edge >= 17

    Parameters

    • constraints: Constraints = {}

      audio camera and screen constraints

    Returns Promise<MediaStream>

    media stream with desired tracks