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

addStream doesn't exist in standard #35

Open
normen opened this issue Jul 12, 2022 · 1 comment
Open

addStream doesn't exist in standard #35

normen opened this issue Jul 12, 2022 · 1 comment

Comments

@normen
Copy link

normen commented Jul 12, 2022

Thanks for this example, it helped me a lot. I found that the addStream function hasn't been implemented on Safari as its not part of the standard apparently, so changing this line:

pc.addStream(localStream);

to the following worked for me

localStream.getTracks().forEach(track => pc.addTrack(track, localStream))

Thanks again!

@pfertyk
Copy link
Owner

pfertyk commented Jul 13, 2022

Hi! Thanks for reaching out :) I was sure that the "track vs stream" issue was already resolved in one of the previous PRs, but apparently not quite ... I'll take a look at this ;)

Cheers,
Paweł

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants