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

Screen share issue on safari #1373

Open
ashrakrahman opened this issue Feb 7, 2021 · 2 comments
Open

Screen share issue on safari #1373

ashrakrahman opened this issue Feb 7, 2021 · 2 comments
Assignees
Labels
bug filed A bug has been filed upstream for this issue Mac Safari

Comments

@ashrakrahman
Copy link

I'm facing an issue on safari browser in mac catalina os. I am using twilio reactJs sdk. can anyone help me?

Step to produce the issue :

  • join a room with multiple person.
  • host is on the mac catalina os.
  • host shares his screen.
  • host now open a tab and create google meet meeting.
  • google meet took camera permission.
  • now host goes back to twilio conference tab.
  • safari browser tooks camera permission again for twilio conference tab.
  • when i give camera permission, other participants are seeing my video, instead of seeing the shared screen.

is this issue meant to be happen? or i have done something wrong?
p.s : this issue arises only in mac catalina os.

@manjeshbhargav manjeshbhargav self-assigned this Feb 8, 2021
@manjeshbhargav manjeshbhargav transferred this issue from twilio/video-quickstart-js Feb 8, 2021
@manjeshbhargav
Copy link
Collaborator

Hi @ashrakrahman ,

Thanks for writing in with your issue. I will have one of our engineers look into it.

Thanks,

Manjesh

@makarandp0 makarandp0 added the bug filed A bug has been filed upstream for this issue label Feb 11, 2021
@makarandp0
Copy link
Contributor

Hello @ashrakrahman,

Thank you for reporting this issue, I was able to reproduce this. Looks like this is caused by some workarounds that we had to add to mitigate some iOS Safari issues. I have filed an internal bug to track this issue (VIDEO-3977)

In the meanwhile you can workaround the issue by setting a flag workaroundWebKitBug1208516: false when creating the LocalVideoTrack object associated with the screenshare track. For example:

  const screenStream = await navigator.mediaDevices.getDisplayMedia({
    video: { width: 1920, height: 1080, frameRate: 15 }
  });

  const localTrack = new Video.LocalVideoTrack(screenStream.getTracks()[0], { 
    workaroundWebKitBug1208516: false 
  }); 

Let us know if that fixes the issue, and if you have additional questions.
Thanks,
Makarand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug filed A bug has been filed upstream for this issue Mac Safari
Projects
None yet
Development

No branches or pull requests

3 participants