VideoProps interface
All properties in VideoProps are optional and have default values in the platform.
- Extends
-
MediaProps
Properties
is |
Optional; to determine if the video capturing flow needs to be launched in Full Screen Mode (Lens implementation) or PictureInPicture Mode (Native implementation). Default value is true, indicating video will always launch in Full Screen Mode via lens. |
is |
Optional; controls the visibility of stop button in PictureInPicture Mode. Default value is true, indicating the user will be able to stop the video. |
max |
Optional; the maximum duration in seconds after which the recording should terminate automatically. Default value is defined by the platform serving the API. |
video |
Optional; setting VideoController will register your app to listen to the lifecycle events during the video capture flow. Your app can also dynamically control the experience while capturing the video by notifying the host client. |
Inherited Properties
camera |
Optional; indicate if user is allowed to move between front and back camera. Default value is true. |
sources | Optional; Lets the developer specify the media source, more than one can be specified. Default value is both camera and gallery. |
start |
Optional; Specify in which mode the camera will be opened. * Default value is Photo. |
Property Details
isFullScreenMode
Optional; to determine if the video capturing flow needs to be launched in Full Screen Mode (Lens implementation) or PictureInPicture Mode (Native implementation). Default value is true, indicating video will always launch in Full Screen Mode via lens.
isFullScreenMode?: boolean
Property Value
boolean
isStopButtonVisible
Optional; controls the visibility of stop button in PictureInPicture Mode. Default value is true, indicating the user will be able to stop the video.
isStopButtonVisible?: boolean
Property Value
boolean
maxDuration
Optional; the maximum duration in seconds after which the recording should terminate automatically. Default value is defined by the platform serving the API.
maxDuration?: number
Property Value
number
videoController
Optional; setting VideoController will register your app to listen to the lifecycle events during the video capture flow. Your app can also dynamically control the experience while capturing the video by notifying the host client.
videoController?: VideoController
Property Value
@microsoft/teams-js.@microsoft.teams-js.media.VideoController
Inherited Property Details
cameraSwitcher
Optional; indicate if user is allowed to move between front and back camera. Default value is true.
cameraSwitcher?: boolean
Property Value
boolean
Inherited From MediaProps.cameraSwitcher
sources
Optional; Lets the developer specify the media source, more than one can be specified. Default value is both camera and gallery.
sources?: Source[]
Property Value
@microsoft/teams-js.@microsoft.teams-js.media.Source[]
Inherited From MediaProps.sources
startMode
Optional; Specify in which mode the camera will be opened. * Default value is Photo.
startMode?: CameraStartMode
Property Value
@microsoft/teams-js.@microsoft.teams-js.media.CameraStartMode
Inherited From MediaProps.startMode