예제 #1
0
        /// <summary>
        /// Raises the <see cref="E:StatusChange"/> event.
        /// </summary>
        /// <param name="RtspStatusEventArgs">The <see cref="Rtsp.RtspStatusEventArgs"/> instance containing the event data.</param>
        protected void OnStatusChange(RtspStatusEventArgs rtspStatusEventArgs)
        {
            EventHandler <RtspStatusEventArgs> handler = StatusChanged;

            if (handler != null)
            {
                handler(this, rtspStatusEventArgs);
            }
        }
예제 #2
0
 void Rtsp_Client_StatusChanged(object sender, Rtsp.RtspStatusEventArgs e)
 {
     Console.WriteLine("NEW STATUS is " + e.Status.ToString());
     CurrentStatus = e.Status;
 }