private async void PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { await this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, new DispatchedHandler(() => { txtPlaybackBitrate.Text = args.NewValue.ToString(); })); }
/// <summary> /// Provides a JSON object for Playback Bitrate Changed Event Args /// </summary> public static JsonObject ToJsonObject(this AdaptiveMediaSourcePlaybackBitrateChangedEventArgs e) { var builder = new JsonBuilder("AdaptiveMediaSourcePlaybackBitrateChangedEventArgs"); builder.AddNumber("OldValue", e.OldValue); builder.AddNumber("NewValue", e.NewValue); builder.AddBoolean("AudioOnly", e.AudioOnly); return(builder.GetJsonObject()); }
private void PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { UpdateBitrateUI(txtPlaybackBitrate, args.NewValue); }
private void PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { UpdateBitrateUI(txtPlaybackBitrate, args.NewValue); }
private void _source_PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { }
private async void PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { uint playbackBitrate = args.NewValue; await UpdatePlaybackBitrateAsync(playbackBitrate); }
private async void PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { uint playbackBitrate = args.NewValue; await UpdatePlaybackBitrate(playbackBitrate); }
private void _source_PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { }
// </SnippetAMSBindingCurrentItemChanged> private void Ams_PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { throw new NotImplementedException(); }
private void PlaybackBitrateChanged(AdaptiveMediaSource sender, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) { logView.Log($"{args.ToJsonObject()}", LogViewLoggingLevel.Information); }