VideoTileObserver

@objc
public protocol VideoTileObserver

VideoTileObserver handles events related to VideoTile.

  • Called whenever a new attendee starts sharing the video

    Note: this callback will be called on main thread.

    Declaration

    Swift

    func videoTileDidAdd(tileState: VideoTileState)

    Parameters

    tileState

    video tile state associated with this attendee

  • Called whenever any attendee stops sharing the video

    Note: this callback will be called on main thread.

    Declaration

    Swift

    func videoTileDidRemove(tileState: VideoTileState)

    Parameters

    tileState

    video tile state associated with this attendee

  • Called whenever an attendee tile pauseState changes from .unpaused

    Note: this callback will be called on main thread.

    Declaration

    Swift

    func videoTileDidPause(tileState: VideoTileState)

    Parameters

    tileState

    video tile state associated with this attendee

  • Called whenever an attendee tile pauseState changes to .unpaused

    Note: this callback will be called on main thread.

    Declaration

    Swift

    func videoTileDidResume(tileState: VideoTileState)

    Parameters

    tileState

    video tile state associated with this attendee

  • Called whenever a video steam size is changed

    Note: this callback will be called on main thread.

    Declaration

    Swift

    func videoTileSizeDidChange(tileState: VideoTileState)

    Parameters

    tileState

    video tile state whose size was changed