Compartilhar via


VideoController class

VideoController class is used to communicate between the app and the host client during the video capture flow.

Extends

MediaController<@microsoft/teams-js.@microsoft.teams-js.media.VideoControllerCallback>

Constructors

VideoController(VideoControllerCallback)

Methods

notifyEventToApp(MediaControllerEvent)

Inherited Methods

stop((err?: SdkError) => void)

Optional; Function to programatically stop the ongoing media event.

Constructor Details

VideoController(VideoControllerCallback)

new VideoController(controllerCallback?: VideoControllerCallback)

Parameters

controllerCallback

@microsoft/teams-js.@microsoft.teams-js.media.VideoControllerCallback

Method Details

notifyEventToApp(MediaControllerEvent)

function notifyEventToApp(mediaEvent: MediaControllerEvent)

Parameters

mediaEvent

MediaControllerEvent

Inherited Method Details

stop((err?: SdkError) => void)

Optional; Function to programatically stop the ongoing media event.

function stop(callback?: (err?: SdkError) => void)

Parameters

callback

(err?: SdkError) => void

is used to send app if host client has successfully stopped the event or not

Inherited From MediaController.stop