Re: [webrtc-pc] How reuse transceiver (#2639)

`transceiver.stop()` will irreversible stop the transceiver so that it cannot be reused.

`transceiver.direction = "inactive"` or `"recvonly"` (which is also what happens when you do pc.removeTrack(sender)) on the sender side is reversible.

You can reuse transceivers with...

```
transceiver.direction = "sendonly" or "sendrecv"
await transceiver.sender.replaceTrack(newTrack);
/* perform O/A */
```


-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2639#issuecomment-806475071 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 25 March 2021 08:52:41 UTC