Add examples/play-from-disk-renegotation

Resolves #207
This commit is contained in:
Sean DuBois
2020-02-09 21:06:40 -08:00
parent 0b8bdebeeb
commit 5f54b68899
4 changed files with 239 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ func (t *RTPTransceiver) setDirection(d RTPTransceiverDirection) {
func (t *RTPTransceiver) setSendingTrack(track *Track) error {
t.Sender().track = track
if track == nil {
t.setSender(nil)
}
switch {
case track != nil && t.Direction() == RTPTransceiverDirectionRecvonly: