コード例 #1
0
        /// <summary>
        /// This method gets the media manager to pass local media samples to the RTP channel and then
        /// receive them back as the remote video stream. This tests that the codec and RTP packetisation
        /// are working.
        /// </summary>
        public void RunLoopbackTest()
        {
            _rtpManager = new RTPManager(false, true);
            _rtpManager.OnRemoteVideoSampleReady += EncodedVideoSampleReceived;

            var sdp = _rtpManager.GetSDP(false);

            _rtpManager.SetRemoteSDP(sdp);
        }
コード例 #2
0
 public void SetRemoteSDP(SDP remoteSDP)
 {
     _rtpManager.SetRemoteSDP(remoteSDP);
 }
コード例 #3
0
ファイル: MediaManager.cs プロジェクト: Dawn2Yuan/sipsorcery
        /// <summary>
        /// This method gets the media manager to pass local media samples to the RTP channel and then 
        /// receive them back as the remote video stream. This tests that the codec and RTP packetisation
        /// is working.
        /// </summary>
        public void RunLoopbackTest()
        {
            _rtpManager = new RTPManager(false, true);
            _rtpManager.OnRemoteVideoSampleReady += EncodedVideoSampleReceived;
            _rtpManager.OnRemoteAudioSampleReady += RemoteAudioSampleReceived;

            var sdp = _rtpManager.GetSDP(false);
            _rtpManager.SetRemoteSDP(sdp);
        }