Ejemplo n.º 1
0
 void playPause()
 {
     if (null == mediaEngine)
     {
         return;
     }
     if (paused)
     {
         mediaEngine.play();
         ConsoleLogger.logInfo("Resumed the playback");
         fakeAnimation = animations.startFake();
     }
     else
     {
         mediaEngine.pause();
         ConsoleLogger.logInfo("Paused the playback");
         fakeAnimation?.Dispose();
         fakeAnimation = null;
     }
     paused = !paused;
 }