private async void CustomMTC_Loaded(object sender, RoutedEventArgs e) { if (HasLoaded) { return; } HasLoaded = true; "CustomMTC_Loaded".PrintDebug(); if (Media == null) { return; } ME.Source = Media.Videos[0].Uri?.ToUri(); CustomMTC.TVPlayer = this; await Task.Delay(500); CustomMTC.SetMedia(Media); }
private void MEMediaEnded(object sender, RoutedEventArgs e) { try { var more = FooterView.FooterVM.SelectedIndex; more.PrintDebug(); more += 1; FooterView.FooterVM.Items.Count.PrintDebug(); if (more < FooterView.FooterVM.Items.Count) { FooterView.FooterVM.SelectedIndex = more; var media = FooterView.FooterVM.Items[FooterView.FooterVM.SelectedIndex]; ME.Source = media.Videos[0].Uri?.ToUri(); CustomMTC.SetMedia(media); FooterView.LVItems.SelectedIndex = more; } } catch { } }