Ejemplo n.º 1
0
 /// <summary>
 /// Called from within here (TogglePreviewMode), as well as by the VidkaFastPreviewPlayerWrapper
 /// </summary>
 public void SwapPreviewPlayerUI(VidkaPreviewMode mode)
 {
     if (mode == VidkaPreviewMode.Normal)
         configureUi_PreviewMode(vidkaPreviewPlayer, vidkaFastPreviewPlayer);
     else if (mode == VidkaPreviewMode.Fast)
         configureUi_PreviewMode(vidkaFastPreviewPlayer, vidkaPreviewPlayer);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the correct preview player in UI and logic.
 /// Called from Form.OnLoad and TogglePreviewMode.
 /// </summary>
 private void setPreviewPlayer(VidkaPreviewMode mode)
 {
     previewMode = mode;
     videoShitbox.iiii("Preview mode: " + previewMode);
     SwapPreviewPlayerUI(previewMode);
     logic.SetPreviewPlayer((previewMode == VidkaPreviewMode.Normal)
                         ? (IVideoPlayer)vidkaPreviewPlayer
                         : (IVideoPlayer)fastPlayerWrapper);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Called from within here (TogglePreviewMode), as well as by the VidkaFastPreviewPlayerWrapper
 /// </summary>
 public void SwapPreviewPlayerUI(VidkaPreviewMode mode)
 {
     if (mode == VidkaPreviewMode.Normal)
     {
         configureUi_PreviewMode(vidkaPreviewPlayer, vidkaFastPreviewPlayer);
     }
     else if (mode == VidkaPreviewMode.Fast)
     {
         configureUi_PreviewMode(vidkaFastPreviewPlayer, vidkaPreviewPlayer);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Set the correct preview player in UI and logic.
 /// Called from Form.OnLoad and TogglePreviewMode.
 /// </summary>
 private void setPreviewPlayer(VidkaPreviewMode mode)
 {
     previewMode = mode;
     videoShitbox.iiii("Preview mode: " + previewMode);
     SwapPreviewPlayerUI(previewMode);
     logic.SetPreviewPlayer((previewMode == VidkaPreviewMode.Normal)
         ? (IVideoPlayer)vidkaPreviewPlayer
         : (IVideoPlayer)fastPlayerWrapper);
 }