Exemple #1
0
      private async void PlayMovie(Stream file)
      {
         curTexture = null;

         player = new FLCPlayer(MainGame.Device);
         player.OnFrameUpdated += player_OnFrameUpdated;
         player.OnPlaybackFinished += player_OnPlaybackFinished;

         player.Open(file);
         player.ShouldLoop = false;
         player.Play();
      }
Exemple #2
0
      public IntroGameScreen(IntroFinished setIntroFinished)
      {
         curTexture = null;
         introFinished = setIntroFinished;

         MouseCursor.State = MouseCursorState.None;

         storyboard = new IntroStoryboard();
         storyboard.OnStageSwitched += storyboard_OnStageSwitched;
         storyboard.OnChangeMovieStatus += storyboard_OnChangeMovieStatus;

         player = new FLCPlayer(MainGame.Device);
         player.OnFrameUpdated += player_OnFrameUpdated;
         player.OnPlaybackFinished += player_OnPlaybackFinished;
      }