Exemplo n.º 1
0
        public RtpReceiver(IntPtr native)
        {
            _native = new RtpReceiverSafeHandle(native);

            // Get the track, check the type then wrap it
            var trackPtr = RtpReceiverInterops.GetTrack(_native);

            Track = MediaStreamTrackInterop.IsAudioTrack(trackPtr)
                ? (MediaStreamTrack) new AudioTrack(trackPtr)
                : (MediaStreamTrack) new VideoTrack(trackPtr);
        }
Exemplo n.º 2
0
 public static extern IntPtr GetTrack(RtpReceiverSafeHandle rtpReceiverWrapper);
Exemplo n.º 3
0
 public static extern IntPtr GetRtpReceiverInterface(RtpReceiverSafeHandle rtpReceiverWrapper);