Beispiel #1
0
 private void NextMTV()
 {
     lock (RunTimeData.VideoQueue)
     {
         RunTimeData.VideoQueue.RemoveAll(m => m.Sort == 0);
         RunTimeData.VideoQueue.ForEach(m => m.Sort--);
         RefreshQueueList();
         var mtv      = RunTimeData.VideoQueue.FirstOrDefault(m => m.Sort == 0)?.MTV;
         var playPath = mtv?.SavePath.Replace("~", PathHelper.GetDownloadDir(mtv.Id));
         KTVPlayer.Open(playPath);
     }
 }
Beispiel #2
0
 private void OpenMTV()
 {
     if (KTVPlayer.GetState() == 0)
     {
         lock (RunTimeData.VideoQueue)
         {
             var mtv      = RunTimeData.VideoQueue.FirstOrDefault(m => m.Sort == 0)?.MTV;
             var playPath = mtv?.SavePath.Replace("~", PathHelper.GetDownloadDir(mtv.Id));
             KTVPlayer.Open(playPath);
         }
     }
 }