Example #1
0
 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();
     });
 }
Example #2
0
 public override int Deserialize(byte[] data)
 {
     AudioTracks.Clear();
     return(DataOffset = Header.Deserialize(data));
 }