Exemplo n.º 1
0
        public TestPAge()
        {
            InitializeComponent();
            mediaElement1.Stop();
            AudioStream = this.mediaElement1;
            /*var _Timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(33) };
            _Timer.Tick += (s, arg) =>
            {
                FrameworkDispatcher.Update();

            };
            _Timer.Start();
            */

            stream = (RTPAudioStream)Datastore.Find("stream");
            localEp = (IPEndPoint)Datastore.Find("localEp");
            remote = (IPEndPoint)Datastore.Find("remoteEp");
            Datastore.Remove("stream");
            Datastore.Remove("localEp");
            Datastore.Remove("remoteEp");

            //FindMyIP();
            //InitializeStream();
            //StartCall();
        }
Exemplo n.º 2
0
 public void newStartStream()
 {
     textBlock1.Text += "hi";
     newstream = new RTPAudioStream(0, null);
     newstream.Bind(newLocalEp);
     newstream.AudioCodec = new G722CodecWrapper();
     newstream.Start(newRemoteEp, 100, 100);
 }
Exemplo n.º 3
0
 public void newStartStream()
 {
     newstream = new RTPAudioStream(0, null);
     newstream.UseInternalTimersForPacketPushPull = false;
     IPEndPoint newLocalEp = new IPEndPoint(IPAddress.Parse("172.16.41.174"), 4001);
     newstream.Bind(newLocalEp);
     newstream.AudioCodec = new G722CodecWrapper();
     newstream.Start(newRemoteEp, 100, 100);
 }
Exemplo n.º 4
0
 // Constructor
 public MainPage()
 {
     InitializeComponent();
     localEp = new IPEndPoint(IPAddress.Parse("172.16.41.174"), 4505);
     stream = new RTPAudioStream(0,null);
     stream.AudioCodec = new G722CodecWrapper();
     stream.UseInternalTimersForPacketPushPull = false;
     stream.Bind(localEp);
 }
Exemplo n.º 5
0
 void InitializeStream()
 {
     stream = new RTPAudioStream(0, null);
     stream.Bind(localEp);
     Log(localEp.ToString());
     stream.AudioCodec = new G722CodecWrapper();
     stream.UseInternalTimersForPacketPushPull = false;
 }
Exemplo n.º 6
0
 public void StartStream()
 {
     stream = new RTPAudioStream(0, null);
     stream.UseInternalTimersForPacketPushPull = false;
     stream.AudioCodec = new G722CodecWrapper();
     IPEndPoint LocalEndpoint = new IPEndPoint(IPAddress.Parse("172.16.41.174"), 3001);
     stream.Bind(LocalEndpoint);
     stream.Start(RemoteEp, 100, 100);
 }
Exemplo n.º 7
0
        void InitializeStream()
        {
            stream = new RTPAudioStream(0, null);
            stream.Bind(localEp);
            Log(localEp.ToString());
            stream.AudioCodec = new G722CodecWrapper();
            stream.UseInternalTimersForPacketPushPull = false;
            try
            {
                stunEp = stream.GetSTUNAddress(new DnsEndPoint("stun.ekiga.net", 3478), 4000);
            }
            catch (Exception e)
            {
                Log("Stun address retrieval failed.Cant work with this device.");
            }

            Log(stunEp.ToString());
        }