Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: accessing webcam in windows #919

Open
4 of 10 tasks
JamesPHoughton opened this issue Nov 7, 2024 · 2 comments
Open
4 of 10 tasks

[Bug]: accessing webcam in windows #919

JamesPHoughton opened this issue Nov 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JamesPHoughton
Copy link
Collaborator

What happened?

Issues connecting during hair check on windows, chrome and edge

image

What browsers do you see the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

What operating system do you see the problem on?

  • Windows
  • Mac
  • Linux

How did we discover the bug?

  • Reported by participant
  • Observed on Sentry
  • Found in dev

Priority

Blocking some participants

@JamesPHoughton JamesPHoughton added the bug Something isn't working label Nov 7, 2024
@JamesPHoughton
Copy link
Collaborator Author

Something is going on here:

const connect = async () => {
      try {
        const { camera, mic, speaker } = await dailyObject.startCamera({
          url: roomUrl,
        });
        const localParticipant = dailyObject.participants().local;
        const videoTrack = localParticipant.tracks.video.persistentTrack;
        const audioTrack = localParticipant.tracks.audio.persistentTrack;
        setLocalStream(new MediaStream([videoTrack, audioTrack]));
        player.set("camera", camera.deviceId);
        player.set("mic", mic.deviceId);
        player.set("speaker", speaker.deviceId);
        await refreshDeviceList();
        mountListeners();
      } catch (e) {
        alert(
          "Looks like there's an issue connecting to your camera or microphone. If you are using windows, you may need to make sure that no other program (e.g. Zoom) is using your camera or microphone already. Once you've checked this, try refreshing the page."
        );
        console.error("Error connecting to Daily", e);
      }

probably the video or audio track is undefined

@JamesPHoughton
Copy link
Collaborator Author

From sentry:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant