diff --git a/lib/src/core/room.dart b/lib/src/core/room.dart index 42893ddc..f159bd85 100644 --- a/lib/src/core/room.dart +++ b/lib/src/core/room.dart @@ -439,12 +439,10 @@ class Room extends DisposableChangeNotifier with EventsEmittable { var streamId = idParts[1]; var trackSid = event.track.id; - if (kIsWeb && lkBrowser() == BrowserType.firefox) { - // firefox will get streamId (pID|trackId) instead of (pID|streamId) as it doesn't support sync tracks by stream - // and generates its own track id instead of infer from sdp track id. - if (streamId.isNotEmpty && streamId.startsWith('TR')) { - trackSid = streamId; - } + // firefox will get streamId (pID|trackId) instead of (pID|streamId) as it doesn't support sync tracks by stream + // and generates its own track id instead of infer from sdp track id. + if (streamId.isNotEmpty && streamId.startsWith('TR')) { + trackSid = streamId; } final participant = _getRemoteParticipantBySid(participantSid);