notedit / rtmp-to-webrtc

rtmp to webrtc
216 stars 62 forks source link

Multiple browser tabs #7

Closed cartovarc closed 5 years ago

cartovarc commented 5 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 5 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 5 years ago

9