stephenlb / webrtc-sdk

WebRTC Simple Calling API + Mobile SDK - A simplified approach to RTCPeerConnection for mobile and web video calling apps.

Home Page:https://stephenlb.github.io/webrtc-sdk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using five or more STUN/TURN servers causes problems

whitesnow9291 opened this issue · comments

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

Good catch!

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

Will update...

Did a quick fix: bd71202

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

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

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

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!

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