Media Permissions
To get media permissions (audio/video) for localUser we can do as follows
- Kotlin
- Java
val isCameraPermissionGranted
= meeting.localUser.isCameraPermissionGranted
val isMicrophonePermissionGranted
= meeting.localUser.isMicrophonePermissionGranted
boolean isCameraPermissionGranted
= meeting.localUser.isCameraPermissionGranted();
boolean isMicrophonePermissionGranted
= meeting.localUser.isMicrophonePermissionGranted();
Similarly to listen to callbacks regarding media permissions once user joins the meeting
- Kotlin
- Java
meeting.addSelfEventsListener(object : DyteSelfEventsListener {
override fun onMeetingRoomJoinedWithoutCameraPermission() {
}
override fun onMeetingRoomJoinedWithoutMicPermission() {
}
})
meeting.addSelfEventsListener(new : DyteSelfEventsListener() {
@Override
public void onMeetingRoomJoinedWithoutCameraPermission() {
}
@Override
public void onMeetingRoomJoinedWithoutMicPermission() {
}
});