Ejemplo n.º 1
0
 // Constructor for interop-based creation; SetHandle() will be called later.
 // Constructor for a track associated with a peer connection.
 internal LocalAudioTrack(PeerConnection peer, Transceiver transceiver, string trackName) : base(peer, trackName)
 {
     Debug.Assert(transceiver.MediaKind == MediaKind.Audio);
     Debug.Assert(transceiver.LocalAudioTrack == null);
     Transceiver = transceiver;
     transceiver.LocalAudioTrack = this;
 }
Ejemplo n.º 2
0
 // Constructor for interop-based creation; SetHandle() will be called later
 // Constructor for a track associated with a peer connection.
 internal LocalVideoTrack(PeerConnection peer,
                          Transceiver transceiver, string trackName, ExternalVideoTrackSource source = null) : base(peer, trackName)
 {
     Debug.Assert(transceiver.MediaKind == MediaKind.Video);
     Debug.Assert(transceiver.LocalVideoTrack == null);
     Transceiver = transceiver;
     transceiver.LocalVideoTrack = this;
     Source = source;
     source?.OnTrackAddedToSource(this);
 }