confirm Recording
Confirms the recording based on the provided parameters.
The options parameter contains various settings and callbacks related to the recording. The function performs validation checks on the parameters and displays appropriate alerts if any invalid options are selected. It also updates the recording display type and other related settings based on the meeting display type.
The function uses the following callback functions to display alerts and update recording settings:
showAlert: A function that displays an alert with the specified message, type, and duration.
updateRecordingDisplayType: A function that updates the recording display type.
updateRecordingVideoOptimized: A function that updates the recording video optimization setting.
updateUserRecordingParams: A function that updates the user recording parameters.
updateConfirmedToRecord: A function that updates the confirmed to record setting.
The function returns void.
Example usage:
confirmRecording(ConfirmRecordingOptions(
parameters = object : ConfirmRecordingParameters {
override val showAlert: ShowAlert? = { message, type, duration -> Logger.d("ConfirmRecording", message) }
override val recordingMediaOptions: String = "video"
override val recordingAudioOptions: String = "high"
override val recordingVideoOptions: String = "all"
override val recordingVideoType: String = "HD"
override val recordingDisplayType: String = "video"
override val recordingNameTags: Boolean = true
override val recordingBackgroundColor: String = "#000000"
override val recordingNameTagsColor: String = "#ffffff"
override val recordingOrientationVideo: String = "landscape"
override val recordingAddHls: Boolean = true
override val recordingAddText: Boolean = true
override val recordingCustomText: String = "Meeting"
override val recordingCustomTextPosition: String = "top-right"
override val recordingCustomTextColor: String = "#ffffff"
override val meetingDisplayType: String = "video"
override val recordingVideoParticipantsFullRoomSupport: Boolean = true
override val recordingAllParticipantsSupport: Boolean = true
override val recordingVideoParticipantsSupport: Boolean = true
override val recordingSupportForOtherOrientation: Boolean = true
override val recordingPreferredOrientation: String = "landscape"
override val recordingMultiFormatsSupport: Boolean = true
override val recordingVideoOptimized: Boolean = true
override val recordingAllParticipantsFullRoomSupport: Boolean = true
override val meetingVideoOptimized: Boolean = false
override val eventType: EventType = EventType.broadcast
override val breakOutRoomStarted: Boolean = false
override val breakOutRoomEnded: Boolean = true
override fun getUpdatedAllParams(): ConfirmRecordingParameters = this
}
))