Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultVideoTile

Hierarchy

  • DefaultVideoTile

Implements

Index

Constructors

constructor

Methods

bindVideoElement

  • bindVideoElement(videoElement: HTMLVideoElement): void
  • Binds the video element to the tile and sends out updates. This must also be called anytime the display of the video element changes, for example, when changing its dimensions or hiding it. To unbind the video element from the tile pass null.

    Parameters

    • videoElement: HTMLVideoElement

    Returns void

bindVideoStream

  • bindVideoStream(attendeeId: string, localTile: boolean, mediaStream: MediaStream, contentWidth: number, contentHeight: number, streamId: number, externalUserId?: string, groupId?: number): void
  • Updates current video tile’s state with the provided arguments. If the tile state is updated, the new tile state is sent to the meeting session's AudioVideoObserver's videoTileDidUpdate callback.

    Parameters

    • attendeeId: string
    • localTile: boolean
    • mediaStream: MediaStream
    • contentWidth: number
    • contentHeight: number
    • streamId: number
    • Optional externalUserId: string
    • Optional groupId: number

    Returns void

capture

  • capture(): ImageData

destroy

  • destroy(): void

devicePixelRatioChanged

  • devicePixelRatioChanged(newDevicePixelRatio: number): void

id

  • id(): number

markPoorConnection

  • markPoorConnection(): boolean

pause

  • pause(): void
  • Pauses the tile if it is not paused. When paused, the tile moves to an inactive state. The updated video tile state is sent to the meeting session’s AudioVideoObserver's videoTileDidUpdate callback. This API is intended to be called on the remote videos. If called on a local video tile, then the tile will no longer be updated, but the local video source will continue to be sent into the meeting.

    Returns void

setStreamId

  • setStreamId(id: number): void

state

stateRef

unmarkPoorConnection

  • unmarkPoorConnection(): boolean

unpause

  • unpause(): void
  • Unpauses the tile if it was paused. When unpaused, the tile moves to the active state. The updated video tile state is sent to the meeting session’s AudioVideoObserver's videoTileDidUpdate callback. This API is intended to be called on the remote videos and has no effect on the local video. When called on a remote video, the remote video source will start getting the updates if paused earlier.

    Returns void

Static connectVideoStreamToVideoElement

  • connectVideoStreamToVideoElement(videoStream: MediaStream, videoElement: HTMLVideoElement, localTile: boolean): void
  • Connect a video stream to a video element by setting the srcObject of the video element to the video stream.

    Parameters

    • videoStream: MediaStream

      The video stream input.

    • videoElement: HTMLVideoElement

      The video element input.

    • localTile: boolean

      Flag to indicate whether this is a local video.

    Returns void

Static disconnectVideoStreamFromVideoElement

  • disconnectVideoStreamFromVideoElement(videoElement: HTMLVideoElement, dueToPause: boolean, keepLastFrameWhenPaused?: boolean): void
  • Disconnect a video stream from a video element by setting HTMLVideoElement.srcObject to null.

    Parameters

    • videoElement: HTMLVideoElement

      The video element input.

    • dueToPause: boolean

      A flag to indicate whether this function is called due to pausing video tile. Based on keepLastFrameWhenPaused, it sets HTMLVideoElement.srcObject to null.

    • keepLastFrameWhenPaused: boolean = false

      If true and dueToPause is also true, then we will not set HTMLVideoElement.srcObject of the video element to null when it is paused and therefore, the last frame of the stream will be shown.

    Returns void

Generated using TypeDoc