Ejemplo n.º 1
0
        internal void ValidateWebRTCState(params WebRTCState[] desiredStates)
        {
            Debug.Assert(desiredStates.Length > 0);

            ValidateNotDisposed();

            WebRTCState curState = State;

            if (!curState.IsAnyOf(desiredStates))
            {
                throw new InvalidOperationException("The WebRTC is not in a valid state. " +
                                                    $"Current State : { curState }, Valid State : { string.Join(", ", desiredStates) }.");
            }
        }
Ejemplo n.º 2
0
 internal static extern WebRTCErrorCode GetState(IntPtr handle, out WebRTCState state);
Ejemplo n.º 3
0
 internal WebRTCErrorOccurredEventArgs(WebRTCError error, WebRTCState state)
 {
     Error = error;
     State = state;
 }
Ejemplo n.º 4
0
 internal WebRTCStateChangedEventArgs(WebRTCState previous, WebRTCState current)
 {
     Previous = previous;
     Current  = current;
 }