0x5eba / Video-Meeting

Google Meet / Zoom clone in a few lines of code

Home Page:https://video.sebastienbiollo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the reason the app does not work on safari?

toshvelaga opened this issue · comments

Hey I've been editing the code and it works perfectly for Firefox and Chrome. I am curious though as to why it doesn't work on other browsers such as Safari? I have commented out the code that renders a message if the browser is not chrome as shown below. If anyone has any ideas I am super curious. Thanks so much!

Screen Shot 2021-12-28 at 1 44 10 AM

It seems that some of the apis have been deprecated in webRTC and don't work on certain browsers. For example onaddStream and addStream are deprecated

Here is the browser compatibility for onaddmediastream for example
Screen Shot 2022-02-22 at 2 12 46 PM

If needed here are the replacements:
onaddstream ===> ontrack
addStream ===> addTrack