Room implementation, library exports

This commit is contained in:
David Zhao
2021-07-23 16:11:38 -07:00
parent b18c37fd1a
commit 57c2ea91e5
6 changed files with 289 additions and 20 deletions
+8 -1
View File
@@ -26,7 +26,14 @@ class RemoteParticipant extends Participant {
}
}
addSubscribedMediaTrack(MediaStreamTrack mediaTrack, String sid) async {
addSubscribedMediaTrack(MediaStreamTrack mediaTrack, String? sid) async {
if (sid == null) {
var msg = 'addSubscribedMediaTrack received null sid';
delegate?.onTrackSubscriptionFailed(this, '', msg);
roomDelegate?.onTrackSubscriptionFailed(this, '', msg);
return;
}
var pub = getTrackPublication(sid);
if (pub == null) {
// we may have received the track prior to metadata. wait up to 3s