question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: no video device chosen, stopping local video tile

See original GitHub issue

What 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

image (3)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
heyolajydcommented, Jun 1, 2022

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.

0reactions
xuesichaocommented, May 31, 2022

Hi @heyolajyd , do you still have problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Chime - assigning videos to tiles does not work as ...
I have tried many different variations of the if blocks and setting a state in the startContentShareFromScreenCapture(<state>) to no avail. The ...
Read more >
FAQs | amazon-chime-sdk-js - Open Source at AWS
// Select no video device (releases any previously selected device) meetingSession.audioVideo.stopVideoInput();. My clients are unable to successfully join ...
Read more >
amazon-chime-sdk-js/README.md - UNPKG
19, select audio and video devices, start and stop screen share and screen ... 21, control meeting features such as audio mute and...
Read more >
amazon-chime-sdk-js | Yarn - Package Manager
Fixed. Stop activeDevice video track before selecting a new device to prevent NotReadableError when calling getUserMedia for a new video input device. Fix ......
Read more >
Changing settings in the desktop client/mobile app
You will be able to start your video after joining the meeting. ... appear as a thumbnail over the device's home screen or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found