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

Using five or more STUN/TURN servers causes problems #76

Open
whitesnow9291 opened this issue Apr 30, 2020 · 8 comments
Open

Using five or more STUN/TURN servers causes problems #76

whitesnow9291 opened this issue Apr 30, 2020 · 8 comments

Comments

@whitesnow9291
Copy link

Hello :)
I followed tutorial for broadcasting and viewer. (I exactly used same code and only changed keys)
viewer don't show broadcaster's cam video.
And I got this error. Using five or more STUN/TURN servers causes problems
And this is error messages from console.

Screen Shot 2020-04-30 at 2 50 39 PM

Is this because keys are of free version? or is this issue?

Thanks

@stephenlb
Copy link
Owner

Good catch!

@stephenlb
Copy link
Owner

This may be related to other issues faced.
https://github.com/stephenlb/webrtc-sdk/blob/master/js/webrtc-v2.js#L48-L72

Will update...

@stephenlb
Copy link
Owner

Did a quick fix: bd71202

@whitesnow9291
Copy link
Author

Yes, it's now fixed.
Btw, I have one more issue.
viewer don't show broadcasters cam.
Please check here.
broadcast
viewer
It's just stuck after showing this log Fetching broadcaster's video
Thanks

@stephenlb
Copy link
Owner

that last one was due to the broadcaster not streaming before the viewer starts. added a notification system when the broadcaster starts so the viewer can reload.

It's not perfect, its a start though. 89da107

@whitesnow9291
Copy link
Author

whitesnow9291 commented May 2, 2020

Hi @stephenlb
Thanks but unfortunately it doesn't work for me.
I have cloned and deployed without code change.
I have tested for both chrome and firefox. (both not working)
Also I have tested with your and my own pub,sub key pairs for both browsers (both not working)
I have attached screens shots for each browser.

  1. Chrome
  • broadcaster.html screenshot
    2020-05-02 21_48_03-Microsoft Edge
    It seems to work, as it doesn't show any error in console.
  • viewer.html screenshot
    Screen Shot 2020-05-02 at 9 44 15 PM
    It has no error message, but it doesn't show any cam in screen. so it's not working
  1. Firefox
  • broadcaster.html screenshot
    2020-05-02 21_50_34-Microsoft Edge
    Firefox shows errors, and it doesn't show cam also
  • viewer.html screenshot
    Screen Shot 2020-05-02 at 9 44 38 PM
    viewer also shows errors and don't show any cam.

I didn't test on safari because it doesn't seem to be browser issue.
Maybe I need to find other webrtc framework or should use bare webrtc.
Thanks

@stephenlb
Copy link
Owner

stephenlb commented May 5, 2020

Yes this is the start, and is an incomplete example. The app code needs work, as this is just an example.

Meanwhile, will be working on getting a read-made solution!

@stephenlb
Copy link
Owner

Should work in Firefox now. It's not going to be exactly what you might be looking for. However it's better.

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