/// <summary> /// This shuts down the global webrtc module. /// </summary> /// <remarks> /// Only needed when you disabled auto-shutdown in the <seealso cref="Configure(GlobalOptions)"/> call />, /// and can then only be called after all <see cref="PeerConnection"/> instances are disposed. /// </remarks> public static void Shutdown() { Native.Check(Native.Shutdown()); }
public void CreateAnswer() { Native.Check(Native.CreateAnswer(_nativePtr)); }
public void RemoveDataChannel(string label) { Native.Check(Native.RemoveDataChannel(_nativePtr, label)); }
public void AddDataChannel(DataChannelOptions options) { Native.Check(Native.AddDataChannel(_nativePtr, options.Label, options.IsOrdered, options.IsReliable)); }
internal int AddVideoTrack(VideoEncoderOptions options) { var id = Native.AddVideoTrack(_nativePtr, options.Label, options.MinBitsPerSecond, options.MaxBitsPerSecond, options.MaxFramesPerSecond); return(Native.Check(id)); }
public static bool PumpQueuedMessages(TimeSpan timeout) { return(Native.PumpQueuedMessages((int)timeout.TotalMilliseconds)); }