Skip to content

Commit 0e32591

Browse files
committed
Fix the issue that unified-plan's onTrack does not call back AudioTrack.
1 parent 26574cf commit 0e32591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/rtc_session.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ class RTCSession extends EventManager {
15971597
switch (sdpSemantics) {
15981598
case 'unified-plan':
15991599
_connection.onTrack = (RTCTrackEvent event) {
1600-
if (event.track.kind == 'video' && event.streams.isNotEmpty) {
1600+
if (event.streams.isNotEmpty) {
16011601
emit(EventStream(
16021602
session: this, originator: 'remote', stream: event.streams[0]));
16031603
}

0 commit comments

Comments
 (0)