notedit / rtmp-to-webrtc

rtmp to webrtc
214 stars 61 forks source link

Multiple browser tabs #7

Closed cartovarc closed 4 years ago

cartovarc commented 4 years ago

I am very surprised at the work you have done, Congratulations! now I have a problem.

I am trying stream different channels and see it in different browser tabs, I can see first one, but second channel cant receive data:

Screenshot from 2019-10-02 18-38-00 Screenshot from 2019-10-02 18-38-38 Sometimes when I start second rtc peer in a different tab, first tab swap the stream with the second tab stream.

I am new with WebRTC, can you explain me please how I can to separate the RTC peers connections?

Thank you so much!

cartovarc commented 4 years ago

In createStream method, reset videoPort and audioPort solve the problem. I was using same port in gstreamer. videoPort = null; audioPort = null;

cartovarc commented 4 years ago

9