Hierarchy

  • VideoDeviceService

Accessors

  • get availableCameras(): AudioVideoDevice[]
  • availableCameras, returns the list of cameras available

    Returns AudioVideoDevice[]

  • get selectedCamera(): AudioVideoDevice
  • selectedCamera, returns the current camera being used to capture video

    Returns AudioVideoDevice

Methods

  • Allows observing changes to properties. Provide the property which you are interested in and a callback. Whenever the property value changes, you will be notified via the callback.

    Usage:

    Example

    sdk.videoDeviceService.observe("availableCameras", function() {
    console.info("availableCameras changed to : ", sdk.videoDeviceService.availableCameras)
    });

    Parameters

    • property: keyof VideoDeviceService

      The name of the property to observe for changes.

    • callback: (() => void)

      on change event for the property.

        • (): void
        • Returns void

    Returns void

  • Select camera device to capture video from. The list of cameras to choose from can be found by calling availableCameras

    Parameters

    Returns void

Generated using TypeDoc