Class DefaultContentShareController

An interface for objects that require manual cleanup.

Implements

Constructors

Properties

destroyed: boolean

Methods

  • Called when the session has started.

    Returns void

  • Called when the session has stopped from a started state with the reason provided in the status. See documentation for [[MeetingSessionStatus]] and [[MeetingSessionStatusCode]] for more information.

    Parameters

    Returns void

  • Dispose of this instance. The instance cannot be used after this method has been called.

    Returns Promise<void>

  • Toggle simulcast for content share. This should be called before calling startContentShare or startContentShareFromScreenCapture. The default encoding parameters are:

    • High layer: 1200 kbps max bitrate
    • Low layer: 300 kbps max bitrate, scale down resolution by 2, and 5 fps max frame rate.

    Parameters

    • enable: boolean

      Enable/disable simulcast

    • OptionalencodingParams: ContentShareSimulcastEncodingParameters

      Overide the default encoding params for either layer in max bitrate, scale resolution down by, or max frame rate.

    Returns void

  • Toggle SVC for content share. This should be called before calling startContentShare or startContentShareFromScreenCapture. This will only have impact if using an SVC supporting codec like VP9. It cannot be enabled at the same time as simulcast.

    Parameters

    • enable: boolean

      Enable/disable SVC

    Returns void

  • Pause content sharing. This (combined with unpauseContentShare is a lightweight alternative to stopping and starting content share which requires use of a seperate peer connection and therefore has increased latency.

    Remote receivers will continue to subscribe to content share video but there will be nothing transmitting (e.g. it may be a black frame)

    Returns void

  • Sets the audio profile to use for content sharing. The new audio profile takes effect on the next call to startContentShare or startContentShareFromScreenCapture or if already started, upon the next reconnect.

    Parameters

    Returns void

  • Start content sharing

    Parameters

    • stream: MediaStream

    Returns Promise<void>

  • Start screen sharing

    Parameters

    • OptionalsourceId: string
    • OptionalframeRate: number

    Returns Promise<MediaStream>

  • Stop content sharing

    Returns void