mute new mediaTrack if pub is muted
This commit is contained in:
@@ -88,6 +88,10 @@ class RemoteParticipant extends Participant {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// apply current muted state of publication
|
||||||
|
logger.fine('RemoteTrackPublication is muted: ${pub.muted}');
|
||||||
|
mediaTrack.enabled = !pub.muted;
|
||||||
|
|
||||||
// create Track
|
// create Track
|
||||||
final Track track;
|
final Track track;
|
||||||
if (pub.kind == lk_models.TrackType.AUDIO) {
|
if (pub.kind == lk_models.TrackType.AUDIO) {
|
||||||
|
|||||||
Reference in New Issue
Block a user