Esempio n. 1
0
 void storyboard_OnChangeMovieStatus(bool shouldPlay)
 {
     if (shouldPlay)
     {
         if (player.IsPlaying && player.IsPaused)
         {
             player.Play();
         }
     }
     else
     {
         if (player.IsPlaying)
         {
             player.Stop();
         }
     }
 }
Esempio n. 2
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();
        }