diff --git a/packages/stream_video/lib/src/webrtc/model/rtc_tracks_info.dart b/packages/stream_video/lib/src/webrtc/model/rtc_tracks_info.dart index 7342232ba..ae985439c 100644 --- a/packages/stream_video/lib/src/webrtc/model/rtc_tracks_info.dart +++ b/packages/stream_video/lib/src/webrtc/model/rtc_tracks_info.dart @@ -9,6 +9,7 @@ class RtcTrackInfo { required this.mid, required this.layers, required this.codec, + required this.muted, }); final String? trackId; @@ -16,11 +17,12 @@ class RtcTrackInfo { final String? mid; final List? layers; final SfuCodec? codec; + final bool muted; @override String toString() { return 'RtcTrackInfo{trackId: $trackId, trackType: $trackType, ' - 'mid: $mid, layers: $layers, codec: $codec}'; + 'mid: $mid, layers: $layers, codec: $codec, muted: $muted}'; } } diff --git a/packages/stream_video/lib/src/webrtc/rtc_manager.dart b/packages/stream_video/lib/src/webrtc/rtc_manager.dart index 3ccbd7f4b..75ec2275c 100644 --- a/packages/stream_video/lib/src/webrtc/rtc_manager.dart +++ b/packages/stream_video/lib/src/webrtc/rtc_manager.dart @@ -553,6 +553,7 @@ extension PublisherRtcManager on RtcManager { ), layers: [], codec: transceiverCache.publishOption.codec, + muted: transceiverCache.transceiver.sender.track?.enabled ?? true, ); } else if (track is RtcLocalVideoTrack) { final dimension = _getTrackDimension(track); @@ -571,6 +572,7 @@ extension PublisherRtcManager on RtcManager { sdp, ), codec: transceiverCache.publishOption.codec, + muted: transceiverCache.transceiver.sender.track?.enabled ?? true, layers: encodings.map((it) { final scale = it.scaleResolutionDownBy ?? 1; return RtcVideoLayer(