Example #1
0
 /// <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());
 }
Example #2
0
 public void CreateAnswer()
 {
     Native.Check(Native.CreateAnswer(_nativePtr));
 }
Example #3
0
 public void RemoveDataChannel(string label)
 {
     Native.Check(Native.RemoveDataChannel(_nativePtr, label));
 }
Example #4
0
 public void AddDataChannel(DataChannelOptions options)
 {
     Native.Check(Native.AddDataChannel(_nativePtr, options.Label, options.IsOrdered, options.IsReliable));
 }
Example #5
0
        internal int AddVideoTrack(VideoEncoderOptions options)
        {
            var id = Native.AddVideoTrack(_nativePtr, options.Label, options.MinBitsPerSecond, options.MaxBitsPerSecond, options.MaxFramesPerSecond);

            return(Native.Check(id));
        }
Example #6
0
 public static bool PumpQueuedMessages(TimeSpan timeout)
 {
     return(Native.PumpQueuedMessages((int)timeout.TotalMilliseconds));
 }