Skip to content

Commit

Permalink
Merge pull request #4 from itsthetaste/support-null-tracks-in-sender-…
Browse files Browse the repository at this point in the history
…replaceTrack-and-setTrack

allow nulls tracks to be passed in
  • Loading branch information
cloudwebrtc authored May 8, 2022
2 parents 7a122f8 + ce1db9c commit f85b565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/rtc_rtp_sender.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ abstract class RTCRtpSender {

Future<bool> setParameters(RTCRtpParameters parameters);

Future<void> replaceTrack(MediaStreamTrack track);
Future<void> replaceTrack(MediaStreamTrack? track);

Future<void> setTrack(MediaStreamTrack track, {bool takeOwnership = true});
Future<void> setTrack(MediaStreamTrack? track, {bool takeOwnership = true});

Future<List<StatsReport>> getStats();

Expand Down

0 comments on commit f85b565

Please sign in to comment.