XNA DirectShow Video Player

Allows Video Playback in the Microsoft XNA Framework, using DirectShow.
Download

XNA DirectShow Video Player Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Ms-PL
  • Publisher Name:
  • Un4filled
  • Operating Systems:
  • Windows All
  • File Size:
  • 101 KB

XNA DirectShow Video Player Tags


XNA DirectShow Video Player Description

The XNA DirectShow Video Player package allows Video Playback in the Microsoft XNA Framework, using DirectShow. Usage: - Add both SeeSharp.Xna.Video.dll and DirectShowLib-2005.dll to your XNA project Reference both these dlls - Create a new VideoPlayer object, passing in the filename of the video to play - Call VideoPlayer.Update() in the Game.Update() method every frame to update the player - The Play(), Pause(), Stop() and Rewind() methods can be called as soon as the player has been created. - To draw the video, use a SpriteBatch in the Game.Draw() method to draw the VideoPlayer.OutputFrame Texture2D. It is important to enable SaveState mode on the SpriteBatch to prevent subsequent VideoPlayer.Update() calls failing. - The OnVideoComplete event handler is fired when the video finishes (ie, the video reaches the end and stops). This can be used to continue the game etc once a video such as a cutscene has finished.


XNA DirectShow Video Player Related Software