Fix rendering of remote shared screen (#50)
Fix activeVideoTrack to return any unmuted stream, not only first one in the list.
This commit is contained in:
@@ -171,10 +171,12 @@ class _RemoteParticipantWidgetState
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
VideoTrack? get activeVideoTrack {
|
VideoTrack? get activeVideoTrack {
|
||||||
if (firstVideoPublication?.subscribed == true &&
|
for (final trackPublication in widget.participant.videoTracks) {
|
||||||
firstVideoPublication?.muted == false &&
|
print(
|
||||||
_visible) {
|
'video track ${trackPublication.sid} subscribed ${trackPublication.subscribed} muted ${trackPublication.muted}');
|
||||||
return firstVideoPublication?.track;
|
if (trackPublication.subscribed && !trackPublication.muted) {
|
||||||
|
return trackPublication.track;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user