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

Apache License 2.0
113 stars 52 forks source link

video broadcaste is not working using chrom and safari browser. #63

Open kalpeshims opened 3 years ago

kalpeshims commented 3 years ago

Hello,

I am not able to brodcast video using chrome and safari browser. using the firefox browser i can broadcast fine to all other browser. but not from chrome and safari browser. even its working fine firefox to electron app. but not working fine with chrome and safari to electron app. i am geeeting green screen like below.

image

code looks like below (web code) if (navigator.userAgent.indexOf("Firefox") != -1) { // @ts-ignore const stream: MediaStream = await videoFile.mozCaptureStream(); await chime?.audioVideo?.startContentShare(stream); } else { // @ts-ignore const stream: MediaStream = await videoFile.captureStream(); await chime?.audioVideo?.startContentShare(stream); }

can you please solve my issue asap.

ref. link (Use case 20 ) https://aws.github.io/amazon-chime-sdk-js/

Thanks.

simmkyu commented 3 years ago

The classroom demo (this repo) uses the Chromium-based Electron framework to support macOS, Windows, and Linux.

To confirm if it's an Electron issue, do you see a green screen in your Electron app as in the following table? Or do you experience the same issue in other browsers?

Screen sharer Viewer Symptoms
Chrome Electron A green screen appears in your Electron app
Safari Electron A green screen appears in your Electron app
Firefox Electron Working fine
Screen sharer Viewer Symptoms
Chrome Chrome, FF, or Safari Do you see a green screen in other browsers?
kalpeshims commented 3 years ago

Hello @simmkyu , thank you for your reply.

I am getting the following response.

Screen Sharer Viewer Symptoms Code for mediaStream
Electron Chrome, FF, Safari, M. Edge and Electron Working fine videoElement.captureStream()
FF Chrome, FF, Safari, M. Edge and Electron Working fine videoElement. mozCaptureStream()
Chrome Chrome, FF, Safari, M. Edge and Electron Not working - Getting green screen videoElement.captureStream()
Safari Chrome, FF, Safari, M. Edge and Electron Not working - Getting black screen videoElement.captureStream()
M. Edge Chrome, FF, Safari, M. Edge and Electron Not working - No any screen appeares videoElement.captureStream()

one more thing i want tell you that i am using videojs module to play video.

ref. link (Use case 20 ) https://aws.github.io/amazon-chime-sdk-js/

Thanks.