Question: no video device chosen, stopping local video tile
See original GitHub issueWhat happened and what did you expect to happen?
Having read through the documentation and some closed issues, and implemented some of the suggestions. Typical flow is, a user (director) starts a meeting session, and we initialize a chime session. We show an audio-video settings modal, allow the user (director) to select a video input, preview, and finally join the meeting session. Some of our users have no issues displaying the local video tile, others just get a blank screen with the error: no video device chosen, stopping local video tile
Have you reviewed our existing documentation?
Reproduction steps
We have a preview component that previews the user’s video input and we’re doing something like this in the code snippet
CameraPreview = ({ videoInputDevice, meetingSession}) => {
...
useEffect(() => {
/** if video element is not defined */
if (!videoElement) return;
// see: https://aws.github.io/amazon-chime-sdk-js/modules/apioverview.html#2h-preview-local-camera-in-a-video-element-optional
async function start() {
await meetingSession.audioVideo.chooseVideoInputDevice(videoInputDevice);
// Based on trial and error it was discovered that one must first choose a video device ID before starting preview (otherwise an error is yielded)
meetingSession.audioVideo.startVideoPreviewForVideoInput(videoElement);
}
start()
return () => {
meetingSession.audioVideo.stopVideoPreviewForVideoInput(videoElement);
}
}, [videoElement, meetingSession, videoInputDevice]);
...
}
Somewhere in our app, where we initialize Chime, we have this in our observer as
const observer = {
...
audioVideoDidStart: () => {
// start up video tile
/*
We've been getting this error ChimeMeetingLogger - no video device chosen, stopping local video tile
see: https://github.com/aws/amazon-chime-sdk-js/issues/1818#issuecomment-975774752
Recommended to add the audioVideoDidStart observer and then call `startLocalVideoTile` function.
this ensures the meeting session is successfully established before calling the startlocalVideoTile function
*/
meetingSession.audioVideo.startLocalVideoTile();
},
videoTileDidUpdate: (tileState) => { ... },
videoTileWasRemoved: () => { ... },
eventDidReceive: () => { ... },
videoSendBandwidthDidChange: () => { ... },
videoReceiveBandwidthDidChange: () => { ...},
...
};
//Add the tile observer
meetingSession.audioVideo.addObserver(observer);
//Start capturing video / audio
meetingSession.audioVideo.start();
We have noticed that some of our users still get this error:
ERROR] ChimeMeetingLogger - no video device chosen, stopping local video tile
, the video tile doesn’t show the video feed from the computer/mac
We’re trying to make users starting/joining a meeting a seamless experience and we want to understand this error. What could be wrong with our setup?
Amazon Chime SDK for JavaScript version
2.30.0
What browsers are you seeing the problem on?
Chrome, Edge
Browser version
100
Meeting and Attendee ID Information.
No response
Browser console logs
[ERROR] ChimeMeetingLogger - no video device chosen, stopping local video tile
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hey @xuesichao Thanks for getting back to me. I tested this locally and no issues for now, unfortunately, we have a code freeze at the moment because one of our customers is having a big event. I can close this until our testing is complete and give feedback or reopen if the issue persists.
Hi @heyolajyd , do you still have problem?