Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable camera in amazon chime sdk meeting

I'm creating a meeting using amazon chime sdk library (in reactjs), where I don't want the option to open the camera at all. When the meeting is created, I'm setting the video input to null:

meetingManager.meetingSession.audioVideo.chooseVideoInputDevice(null)

What is happening is that the browser is asking for permissions to use the camera, turn it on for a second, and then turn it off (when the chooseVideoInputDevice() is being called).

What I want is to never ask for the camera permission, is that possible?

like image 717
S.R Avatar asked Nov 07 '22 04:11

S.R


1 Answers

You can try join meeting with DeviceLabels.None to achieve your goal.

import {
  DeviceLabels,
  useMeetingManager,
} from 'amazon-chime-sdk-component-library-react';

const meetingManager = useMeetingManager();

await meetingManager.join({
  meetingInfo,
  attendeeInfo,
  deviceLabels: DeviceLabels.None, // here
});
like image 94
Daniel Tseng Avatar answered Nov 15 '22 07:11

Daniel Tseng