public void LoadData()
 {
     audiotracks = new MediaTrackDescriptionList(mediaplayer.AudioTrackDescription.Pointer);
     audiotracks.OnPropertyChanged += Audiotracks_OnPropertyChanged;
     if (mediaplayer.AudioTrack > 0 && mediaplayer.AudioTrack < audiotracks.Count)
     {
         SetAudioTrack(audiotracks[mediaplayer.AudioTrack]);
     }
 }
Пример #2
0
 public void LoadData()
 {
     videotracks = new MediaTrackDescriptionList(mediaplayer.AudioTrackDescription.Pointer);
     videotracks.OnPropertyChanged += Videotracks_OnPropertyChanged;
     if (mediaplayer.VlcMediaPlayer.VideoTrack > 0 &&
         mediaplayer.VlcMediaPlayer.VideoTrack < videotracks.Count)
     {
         SetVideoTrack(videotracks[mediaplayer.VlcMediaPlayer.VideoTrack]);
     }
 }
Пример #3
0
        public void ReloadData()
        {
            if (subtitle != null)
            {
                subtitlelist.OnPropertyChanged -= Subtitlelist_OnPropertyChanged;
                subtitlelist = null;
            }

            subtitlelist = new MediaTrackDescriptionList(mediaplayer.VlcMediaPlayer.SubtitleDescription.Pointer);
            if (Currentsubtitle > 0 && Currentsubtitle < subtitlelist.Count)
            {
                SetSubtitle(subtitlelist[0]);
            }
            subtitlelist.OnPropertyChanged += Subtitlelist_OnPropertyChanged;
        }