(t common.Track)
| 688 | } |
| 689 | |
| 690 | func (s *Stream) AddTrack(t common.Track) (promise *util.Promise[common.Track]) { |
| 691 | promise = util.NewPromise(t) |
| 692 | if !s.Receive(promise) { |
| 693 | promise.Reject(ErrStreamIsClosed) |
| 694 | } |
| 695 | return |
| 696 | } |
| 697 | |
| 698 | func (s *Stream) RemoveTrack(t common.Track) { |
| 699 | s.Receive(TrackRemoved{t}) |
nothing calls this directly
no test coverage detected