Beispiel #1
0
 private void UpdateVideoPlayer()
 {
     if (CurrentUser.CurrentExercise.Description.VideoPath != null && CurrentUser.CurrentExercise.Description.VideoPath != "")
     {
         VideoPlayerPage      videopage = new VideoPlayerPage();
         VideoPlayerViewModel videovm   = new VideoPlayerViewModel(CurrentUser.CurrentExercise.Description.VideoPath, false);
         videopage.DataContext = videovm;
         VideoFrame            = videopage;
     }
     else
     {
         VideoFrame = null;
     }
 }
Beispiel #2
0
 private void UpdateAudio()
 {
     if (CurrentUser.CurrentExercise.Description.AudioPath != null && CurrentUser.CurrentExercise.Description.AudioPath != "")
     {
         VideoPlayerPage      page = new VideoPlayerPage();
         VideoPlayerViewModel vm   = new VideoPlayerViewModel(CurrentUser.CurrentExercise.Description.AudioPath, true);
         page.DataContext = vm;
         AudioFrame       = page;
     }
     else
     {
         AudioFrame = null;
     }
 }