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); } }
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 {} }