Skip to content

Commit

Permalink
Fixed broken Insertable Streams for recvonly streams when answering
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Jul 10, 2023
1 parent ed12226 commit 4f9b524
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions html/janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -2648,9 +2648,10 @@ function Janus(gatewayCallbacks) {
}
if(nt && track.dontStop === true)
nt.dontStop = true;
} else if(track.recv && !transceiver) {
} else if(track.recv) {
// Maybe a new recvonly track
transceiver = config.pc.addTransceiver(kind);
if(!transceiver)
transceiver = config.pc.addTransceiver(kind);
if(transceiver) {
// Check if we need to override some settings
if(track.codec) {
Expand Down

0 comments on commit 4f9b524

Please sign in to comment.