🐛 Trying to fix something
This commit is contained in:
@@ -167,6 +167,13 @@ class WebRTCManager {
|
||||
if (participant != null) {
|
||||
participant.remoteStream = event.streams[0];
|
||||
participant.isConnected = true;
|
||||
|
||||
// Detect video tracks and update video enabled state
|
||||
final videoTracks = event.streams[0].getVideoTracks();
|
||||
if (videoTracks.isNotEmpty) {
|
||||
participant.isVideoEnabled = true;
|
||||
}
|
||||
|
||||
_participantController.add(participant);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user