versatica / mediasoup-client-aiortc

mediasoup-client handler for aiortc Python library
https://mediasoup.org
ISC License
56 stars 30 forks source link

producer.replaceTrack(): strange behavior #8

Closed ibc closed 4 years ago

ibc commented 4 years ago

Actually, sender.replaceTrack() works randomly in aiortc (or that's what I see in my experiments). When it "works", it keeps sending RTP. However the remote (i.e. Chrome) cannot render the received RTP for ~10 seconds and gets frozen video instead (but it does receive RTP). Asking for a key frame via RTCP PLI does not make it work. After ~10 seconds, the receiver can render the video again.

Said that, the above happens if I replace a webcam track with another new webcam track. If I try to replace a webcam track with a file video track, the remote gets frozen video forever, and I think that there is no sending RTP anymore.

NOTE: Obviously this may have relationship with #7.

ibc commented 4 years ago

Let's handle this issue in #9 and https://github.com/aiortc/aiortc/issues/304.