Skip to content

Commit

Permalink
added muted to track info
Browse files Browse the repository at this point in the history
  • Loading branch information
Brazol committed Dec 23, 2024
1 parent 950b91a commit 5fa2344
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ class RtcTrackInfo {
required this.mid,
required this.layers,
required this.codec,
required this.muted,
});

final String? trackId;
final SfuTrackType? trackType;
final String? mid;
final List<RtcVideoLayer>? 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}';
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/stream_video/lib/src/webrtc/rtc_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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(
Expand Down

0 comments on commit 5fa2344

Please sign in to comment.