예제 #1
0
 public void StartLocalMedia(Action<Exception> callback)
 {
     if (LocalMedia == null)
     {
         // Create and start the local media engine.
         LocalMedia = new LocalMedia();
         LocalMedia.Start(callback);
     }
     else
     {
         callback(LocalMedia.LastStartException);
     }
 }
예제 #2
0
		public void StopLink()
		{
			try {
				if (Signalling != null) {
					Signalling.Stop (null);
					Signalling = null;
				}
			} catch {}

			try {
				if (LocalMedia != null) {
					LocalMedia.Stop (null);
					LocalMedia = null;
				}
			} catch {}

			try {
				if (Conference != null) {
					Conference.UnlinkAll ();
					Conference = null;
				}
			} catch {}
					
		}