private async void Playback_MediaStopped() { await DispatchHelper.InvokeInUIThread(CoreDispatcherPriority.Normal, async() => { AudioTracks.Clear(); Subtitles.Clear(); OnPropertyChanged(nameof(AudioTracks)); OnPropertyChanged(nameof(Subtitles)); OnPropertyChanged(nameof(CurrentAudioTrack)); OnPropertyChanged(nameof(CurrentSubtitle)); OnPropertyChanged(nameof(IsPlaying)); await ClearMediaTransportControls(); }); }
public override int Deserialize(byte[] data) { AudioTracks.Clear(); return(DataOffset = Header.Deserialize(data)); }