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