private void HandleStreamFailed(object sender, StreamFailedEventArgs e) { BeginInvoke(new MethodInvoker(delegate() { _statusTextBox.Text = $"Failed: {e.Error}"; UpdateButtons(); })); }
private void HandleStreamFailedEvent(object sender, StreamFailedEventArgs e) { if (StreamFailed != null) { StreamFailed(sender, e); } m_camStatus = CamStatus.Failed; }
private void HandleStreamFailedEvent(object sender, StreamFailedEventArgs e) { UpdateButtons(); _statusTextBox.Text = "Failed"; MessageBox.Show(e.Error, "Stream Player Demo", MessageBoxButtons.OK, MessageBoxIcon.Error); }
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"); } }
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}"; }
void Player_StreamFailed(object sender, StreamFailedEventArgs e) { AddLog(new StreamEventLog(StreamEventType.Failed, Player.Position, Player.Duration)); AddLog(new StreamFailedLog(e.ErrorMessage)); }
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; }
private void HandleStreamError(object sender, StreamFailedEventArgs e) { ErrorMessage = e.Error; }
private void HandleStreamFailedEvent(object sender, StreamFailedEventArgs e) { }