MainVideoContainerSetting
Class is the required in case you want to customise the main video view. You need to pass the Object of the MainVideoContainerSetting
Class in the setMainVideoContainerSetting()
method of the CallSettingsBuilder
.
Setting | Description |
---|---|
setMainVideoAspectRatio(aspectRatio: string) | This method is used to set the aspect ratio of main video. Default Value: contain Possible Values: 1. CometChatCalls.CallSettings.ASPECT_RATIO_CONTAIN 2. CometChatCalls.CallSettings.ASPECT_RATIO_COVER |
setFullScreenButtonParams(position: string, visibility: boolean) | This method is used to set the position & visibility parameter of the full screen button. Default: Visible in the bottom-right position Possible Values for POSITION: 1. CometChatCalls.CallSettings.POSITION_TOP_LEFT 2. CometChatCalls.CallSettings.POSITION_TOP_RIGHT 3. CometChatCalls.CallSettings.POSITION_BOTTOM_LEFT 4. CometChatCalls.CallSettings.POSITION_BOTTOM_RIGHT Possible Values for VISIBILITY: 1. true 2. false |
setNameLabelParams(position: string, visibility: boolean, backgroundColor: string) | This method is used to set the position, visibility & background color of the name label. Default: Visible in the bottom-left position with background-color #333333 Possible Values for POSITION: 1. CometChatCalls.CallSettings.POSITION_TOP_LEFT 2. CometChatCalls.CallSettings.POSITION_TOP_RIGHT 3. CometChatCalls.CallSettings.POSITION_BOTTOM_LEFT 4. CometChatCalls.CallSettings.POSITION_BOTTOM_RIGHT Possible Values for VISIBILITY: 1. true 2. false |
setZoomButtonParams(position: string, visibility: boolean) | This method is used to set the position, visibility of the zoom button. Default: Visible in the bottom-right position Possible Values for POSITION: 1. CometChatCalls.CallSettings.POSITION_TOP_LEFT 2. CometChatCalls.CallSettings.POSITION_TOP_RIGHT 3. CometChatCalls.CallSettings.POSITION_BOTTOM_LEFT 4. CometChatCalls.CallSettings.POSITION_BOTTOM_RIGHT Possible Values for VISIBILITY: 1. true 2. false |
setUserListButtonParams(position: string, visibility: boolean) | This method is used to set the position, visibility of the user list button. Default: Visible in the bottom-right position Possible Values for POSITION: 1. CometChatCalls.CallSettings.POSITION_TOP_LEFT 2. CometChatCalls.CallSettings.POSITION_TOP_RIGHT 3. CometChatCalls.CallSettings.POSITION_BOTTOM_LEFT 4. CometChatCalls.CallSettings.POSITION_BOTTOM_RIGHT Possible Values for VISIBILITY: 1. true 2. false |
MainVideoContainerSetting
object, pass it to CallSettingsBuilder
via the setMainVideoContainerSetting
method as shown below,