Skip to main content

Media Permissions

To get media permissions (audio/video) for localUser we can do as follows

val isCameraPermissionGranted
= meeting.localUser.isCameraPermissionGranted
val isMicrophonePermissionGranted
= meeting.localUser.isMicrophonePermissionGranted

Similarely to listen to callbacks regarding media permissions once user joins the meeting

meeting.addSelfEventsListener(object : DyteSelfEventsListener {
override fun onMeetingRoomJoinedWithoutCameraPermission() {
super.onMeetingRoomJoinedWithoutCameraPermission()
// when meeting room is joined without camera permission
}

override fun onMeetingRoomJoinedWithoutMicPermission() {
super.onMeetingRoomJoinedWithoutMicPermission()
// when meeting room is joined without microphone permission
}
});