public void RefreshPlayerTimeShifting(PlayerTimeShiftingEntity entity) { }
public void RefreshTimeShifting(PlayerTimeShiftingEntity entity) { Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() => { lblDetectedTempo.Content = entity.DetectedTempo; lblReferenceTempo.Content = entity.ReferenceTempo; lblCurrentTempo.Content = entity.CurrentTempo; //sliderTimeShifting.SetValueWithoutTriggeringEvent((int)entity.TimeShiftingValue); trackTimeShifting.Value = (int) entity.TimeShiftingValue; })); }
public void RefreshTimeShifting(PlayerTimeShiftingEntity entity) { InvokeOnMainThread(() => { try { lblCurrentTempoValue.Text = entity.CurrentTempo; lblReferenceTempoValue.Text = entity.ReferenceTempo; lblDetectedTempoValue.Text = entity.DetectedTempo; slider.SetValue(entity.TimeShiftingValue, false); } catch(Exception ex) { Console.WriteLine("TimeShiftingViewController - RefreshTimeShifting - Exception: {0}", ex); } }); }
public void RefreshPlayerTimeShifting(PlayerTimeShiftingEntity entity) { Gtk.Application.Invoke(delegate{ // lblTimeShiftingValue.Text = entity.TimeShiftingString; // if(entity.TimeShifting != hscaleTimeShifting.Value) // hscaleTimeShifting.Value = (float)entity.TimeShifting; }); }
public void RefreshTimeShifting(PlayerTimeShiftingEntity entity) { try { Activity.RunOnUiThread(() => { _lblCurrentTempoValue.Text = entity.CurrentTempo; _lblReferenceTempoValue.Text = entity.ReferenceTempo; _lblDetectedTempoValue.Text = entity.DetectedTempo; // The seekbar in Android doesn't have a minimum value and doesn't support floats. Lazy Google! // Time shifting range: 50% to 150%. Seek bar range: 0-1000 int seekBarProgress = (int)Math.Ceiling(entity.TimeShiftingValue * 10f - 500f); //Console.WriteLine("TimeShiftingFragment - RefreshTimeShifting - timeShiftingValue: {0} seekBarProgress: {1}", entity.TimeShiftingValue, seekBarProgress); _seekBar.Progress = seekBarProgress; }); } catch (Exception ex) { Console.WriteLine("TimeShiftingFragment - RefreshTimeShifting - Exception: {0}", ex); } }
public void RefreshTimeShifting(PlayerTimeShiftingEntity entity) { InvokeOnMainThread(() =>{ lblDetectedTempoValue.StringValue = entity.DetectedTempo; lblReferenceTempoValue.StringValue = entity.ReferenceTempo; txtCurrentTempoValue.StringValue = entity.CurrentTempo; trackBarTimeShifting.Value = (int) entity.TimeShiftingValue; }); }
public void RefreshPlayerTimeShifting(PlayerTimeShiftingEntity entity) { InvokeOnMainThread(() => { // lblTimeShifting.StingValue = entity.TimeShiftingString; // if(sliderTimeShifting.FloatValue != entity.TimeShifting) // sliderTimeShifting.FloatValue = entity.TimeShifting; }); }