While I am connecting to my own meeting room my own video is visible for 2 or 3 seconds. This should not happen. The vide should be a muted start of the conference.
Is there a direct API to start a video conference with self video muted
Currently, I have implemented the following code
muteUnmuteVideoParticipant: function (participant, isToBeMuted) {
if (isToBeMuted) {
if (participant && participant.getBlockParticipantVideoCapability().isAllowed) {
participant.blockVideo().then(function () {
// Mute action was successful
console.log("Success mute participant");
}, function (error) {
// Action failed
console.log("Failed mute participant");
});
}
} else {
if (participant && participant.getUnblockParticipantVideoCapability().isAllowed) {
participant.unblockVideo().then(function () {
// UnMute action was successful
console.log("Success unmute participant");
}, function (error) {
// Action failed
console.log("Failed unmute participant");
});
}
}
}
participant object here is the self participant