aws-samples / amazon-chime-sdk-classroom-demo

Apache License 2.0
113 stars 52 forks source link

Can't Turn on Video on MAC Application #4

Closed vijayamin83 closed 4 years ago

vijayamin83 commented 4 years ago

I have successfully deployed the application to the AWS and when I install the /release/app.dmg, it's successfully installed the app in my MacBook.

Also, I can open it and join as teacher or student, but can't turn on the video option.

simmkyu commented 4 years ago
  1. Could you make sure you have clicked "OK" in the video permission dialog upon the first launch? The video permission dialog will appear when you click the video icon at the bottom.
1
  1. Make sure you have the name of your video device at the top-right corner. In my MacBook Pro without any external cameras, "FaceTime HD Camera" has been selected as default.
2
  1. If you still can't see your video, please open "View => Toggle Developer Tools" and check if you see any warning or error message. You can share error messages in this issue too.
3
vijayamin83 commented 4 years ago

Thank You for the reverting back.

Unfortunately, I am not getting any alerts like this to allow the video permissions. I have also checked the system settings and from privacy settings, I have enabled the video manually. But still there is the same problem.

Note. I am using Mac Catalina OS latest one.

vijayamin83 commented 4 years ago

I have deployed the code through the cloud9 service also. But it's also not working even after I got the successfully message.

simmkyu commented 4 years ago

@vijayamin83 I removed your demo URL from the comment above and the revision history. If others download your app and use it, you might be charged. To fully remove the URL and associated resources, go to CloudFormation and delete the stack.

In Security & Privacy, make sure you have enabled a checkbox for Camera and Microphone.

Screen Shot 2020-04-20 at 4 13 37 PM

For debugging:

Screen Shot 2020-04-20 at 4 19 25 PM
  1. Start your Classroom app.
  2. Please click "View => Toggle Developer Tools". Logs will appear at the bottom.
  3. Join a meeting and click the video icon to turn your webcam on.
  4. Share log messages at the bottom. (Copy and paste all log messages to .txt file, zip it, and attach it in this issue. Logs only contain meeting ID and attendee ID.)
vijayamin83 commented 4 years ago

I have removed the Stacks and everything. Re setup the things, but still getting the same issue. Actually, I am not getting the camera permission for the application in the MAC settings:

See the screen shots:

image

image

vijayamin83 commented 4 years ago

Any Update?

simmkyu commented 4 years ago

When the FaceTime camera on my MacBook (Mojave) stopped working, I ran the following command in the Terminal app to reset my camera:

sudo killall VDCAssistant

Could you share your Classroom demo logs by following these steps? I wonder if SDK throws any specific error messages.

  1. Start your Classroom app.
  2. Please click "View => Toggle Developer Tools". Logs will appear at the bottom.
  3. Join a meeting and click the video icon to turn your webcam on.
  4. Share log messages at the bottom. (Copy and paste all log messages to .txt file, zip it, and attach it in this issue. Logs only contain meeting ID and attendee ID.)
Screen Shot 2020-04-20 at 4 19 25 PM

You can also try out the Chime SDK browser demo and check if the video is working in a browser. https://github.com/aws/amazon-chime-sdk-js/tree/master/demos/browser

git clone https://github.com/aws/amazon-chime-sdk-js.git
cd amazon-chime-sdk-js/demos/browser
npm run start

Open http://localhost:8080 in your browser, join a meeting, and click the video icon. You should be able to see your own video.

vijayamin83 commented 4 years ago

so Here I have attached the log.

Note that when I run the command "yarn dev" I am able to see the video, but when I build the app with the deploy command as per README file, it's not working.

1587917839870.log.zip

simmkyu commented 4 years ago
2020-04-26T16:15:47.743Z [ERROR] SDK - failed to get video device for constraints
{"video":{"deviceId":{"exact":"e6e2713277b5db68eff359f515f56de688d4b9e296bf1a7347b396ba83cbcf54"},"width":960,"height":540,"frameRate":15}}:
Could not start video source
2020-04-26T16:15:47.750Z [ERROR] SDK - no video device chosen, stopping local video tile
2020-04-26T16:15:47.755Z [WARN] SDK - could not acquire video input from current device

When you call chooseVideoInputDevice, Chime SDK invokes navigator.mediaDevices.getUserMedia() in Web API that asks for the camera permission and returns the camera's MediaStream object if you allowed. In the attached log, the getUserMedia() API throws the Could not start video source error (NotReadableError).

Searching NotReadableError: Could not start video source online... This error can happen if:

Could you check if any application or tool in your macOS is preventing the Electron/downloaded app from accessing camera? The classroom app should appear in this list:

Screen Shot 2020-04-20 at 4 19 25 PM
vijayamin83 commented 4 years ago

I have tried all possible solutions as above. Downloaded application does not ask for the Camera permissions at all. So, video is not working.

Screen sharing is working properly Note: 1 Downloaded application does not work in the other MAC also 2 application run with "yarn dev" is working fine. 3 Even in the window system it is not working.

Thanks.

vijayamin83 commented 4 years ago

Can you change the design when screen share option is enabled. Just like other meeting app?

So, user can view just the stop button at the top of the screen

andi-amzn commented 4 years ago

Unfortunately there doesn't appear to be anything we can do in this demo to resolve the camera issue you are experiencing. According to the logs, the application is unable to access the selected device due to some kind of system-level restriction. Usually this is because of a privacy setting, but as @simmkyu there could be other causes as well.

Closing this issue for now. We can re-open this if we later find there is some way to control this behavior from the application or if we can reproduce this.

Can you change the design when screen share option is enabled. Just like other meeting app? So, user can view just the stop button at the top of the screen

Could you open a new issue for this feature request and provide a little bit more detail on the current behavior compared to the behavior you expect?

walfen commented 4 years ago

I'm having the same error with Xiaomi Redmi 4X and Android 7.1.2.

2020-06-05T11:14:39.191Z [ERROR] SDK - failed to get video device for constraints {"video":{"deviceId": "exact":"6b617456ca056c31ab3ec94ca1a1ca8713425a64bda50f040e84a9f7aa43f3a3"},"width":960,"height":540,"frameRate":15}}: Could not start video source

vijayamin83 commented 4 years ago

Nevermind, I have fixed this issue at my end. You need to make the changes in the .plist file