Skip to content

Commit

Permalink
Check transeiver instead of peer connection for video track.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Aug 7, 2020
1 parent 227c56f commit 86305c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Desktop.Core/Services/WebRtcSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ public WebRtcSession(Viewer viewer, IRtcMessageHandler rtcMessageHandler)
private Transceiver Transceiver { get; set; }
private ExternalVideoTrackSource VideoSource { get; set; }
private Viewer Viewer { get; }

public bool IsVideoTrackConnected
{
get
{
return PeerSession?.LocalVideoTracks?.FirstOrDefault()?.Source?.Enabled == true;
return Transceiver?.LocalVideoTrack?.Enabled == true;
}
}

Expand Down

0 comments on commit 86305c3

Please sign in to comment.