|
|
|
|
|
|
379
|
|
379
|
|
|
380
|
// Re-use any existing recvonly transceiver (if available) for p2p case.
|
380
|
// Re-use any existing recvonly transceiver (if available) for p2p case.
|
|
381
|
&& ((this.pc.isP2P && t.currentDirection === MediaDirection.RECVONLY)
|
381
|
&& ((this.pc.isP2P && t.currentDirection === MediaDirection.RECVONLY)
|
|
382
|
- || t.currentDirection === MediaDirection.INACTIVE));
|
|
|
|
|
|
382
|
+ || (t.currentDirection === MediaDirection.INACTIVE && !t.stopped)));
|
|
383
|
|
383
|
|
|
384
|
// For mute/unmute operations, find the transceiver based on the track index in the source name if present,
|
384
|
// For mute/unmute operations, find the transceiver based on the track index in the source name if present,
|
|
385
|
// otherwise it is assumed to be the first local track that was added to the peerconnection.
|
385
|
// otherwise it is assumed to be the first local track that was added to the peerconnection.
|