Skip to content

Commit 8a68810

Browse files
committed
mute new mediaTrack if pub is muted
1 parent 6bba6b4 commit 8a68810

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/participant/remote_participant.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ class RemoteParticipant extends Participant {
8888
);
8989
}
9090

91+
// apply current muted state of publication
92+
logger.fine('RemoteTrackPublication is muted: ${pub.muted}');
93+
mediaTrack.enabled = !pub.muted;
94+
9195
// create Track
9296
final Track track;
9397
if (pub.kind == lk_models.TrackType.AUDIO) {

0 commit comments

Comments
 (0)