Exemple #1
0
 private void HandleStreamFailed(object sender, StreamFailedEventArgs e)
 {
     BeginInvoke(new MethodInvoker(delegate()
     {
         _statusTextBox.Text = $"Failed: {e.Error}";
         UpdateButtons();
     }));
 }
Exemple #2
0
        private void HandleStreamFailedEvent(object sender, StreamFailedEventArgs e)
        {
            if (StreamFailed != null)
            {
                StreamFailed(sender, e);
            }

            m_camStatus = CamStatus.Failed;
        }
Exemple #3
0
        private void HandleStreamFailedEvent(object sender, StreamFailedEventArgs e)
        {
            UpdateButtons();

            _statusTextBox.Text = "Failed";

            MessageBox.Show(e.Error, "Stream Player Demo",
                            MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
Exemple #4
0
        private void rearCameraStream_StreamFailed(object sender, StreamFailedEventArgs e)
        {
            UpdateButtons();

            lblRearCamStatus.Text = "Can not connect to rear camera";
            if (cameraStatus)
            {
                playCamera();
                Console.WriteLine("Stream failed event, trying to reconnect");
            }
        }
Exemple #5
0
        private void FrontCamHandleStreamFailedEvent(object sender, StreamFailedEventArgs e)
        {
            UpdateButtons();

            lblFrontCamStatus.Text = "Can not connect to front camera";

            if (cameraStatus)
            {
                playCamera();
                Console.WriteLine("Stream failed event, trying to reconnect");
            }

            //MessageBox.Show("Can not connect to camera!", "Stream Player Demo", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
 private void HandleStreamFailed(object sender, StreamFailedEventArgs e)
 {
     Status = $"Failed: {e.Error}";
 }
Exemple #7
0
 void Player_StreamFailed(object sender, StreamFailedEventArgs e)
 {
     AddLog(new StreamEventLog(StreamEventType.Failed, Player.Position, Player.Duration));
     AddLog(new StreamFailedLog(e.ErrorMessage));
 }
Exemple #8
0
 private void HandleStreamFailedEvent2(object sender, StreamFailedEventArgs e)
 {
     _toolStripLabel2.Text = "Camera kết nối thất bại";
     //MessageBox.Show(e.Error, "Stream Player Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     _btnConnect2.Enabled = true;
 }
Exemple #9
0
 private void HandleStreamError(object sender, StreamFailedEventArgs e)
 {
     ErrorMessage = e.Error;
 }
 private void HandleStreamFailedEvent(object sender, StreamFailedEventArgs e)
 {
 }