I've been searching around on internet a way to display a video using XNA/Monogame. But everything tend to go in the direction of the class Microsoft.XNA.Framework.Media.Video. Unfortunatly, my xna Framework does not contain any Video member in the Media namespace as shown below. Also i've found this stackhex question which is the same question but the answer contains a gist with the code that does not exists anymore, so i'm a bit stuck here.

enter image description here

i'll appriciate any help, thank you for your time

After the recommandations of @Steven, i've tried to see what visual studio give me for replacement, What i've ended up with is the Video Class turning into the enum VideoSoundtrackType which is not a video or video player class.

enter image description here

public SplashScreenScene(GraphicsDevice gd, ContentManager contentManager, SpriteBatch spriteBatch)

   GraphicsDevice = gd;
   ContentManager = contentManager;
   SpriteBatch = spriteBatch;

   SplashScreenTexture2DAnimation = new NonRepeatingTexture2DAnimation();

   XDocument xmlDoc = XDocument.Parse(System.IO.File.ReadAllText("Content/Animations/SplashScreenAnimationMetadata.xml"));

   SplashScreenTexture2DAnimation.LoadAnimation(xmlDoc, contentManager);
   DisplayOffsetMatrix = new OrthographicCamera(gd).GetViewMatrix();

   var Video = new VideoSoundtrackType();


here is the enum from meta data

enter image description here

NB: for the moment i've created a class that holds texture2Ds to make an animation. But if I want to create cinematics it will be a bit difficult (or i can create simple story telling through images and text like undertale and other did).

  • \$\begingroup\$ Else i can do an image sequence an display them one by one with the sprite batch as Sega did this (youtube.com/watch?v=c-aQvP7CUAI) but it's not really modern to do it and it is a bit an inconvinient way of animating (and works only with twwo colors) \$\endgroup\$ Jun 18, 2020 at 19:41
  • \$\begingroup\$ Sometimes these usings may not work directly, have you tried right-clicking the Video and clicked on 'Quick Resolve' or 'Quick actions and refactoring', and add the using that way? \$\endgroup\$
    – Steven
    Jun 19, 2020 at 6:56
  • \$\begingroup\$ the replacement that visual studio gives is an enum which can't be used as what i want \$\endgroup\$ Jun 19, 2020 at 10:44
  • 1
    \$\begingroup\$ Please share your code as text, not as images. \$\endgroup\$
    – DMGregory
    Jun 19, 2020 at 11:28
  • \$\begingroup\$ You might want to double check the target platform of the Monogame binaries you're using, as they might not be built with the full Media library for that platform.I know the OpenGL version of Monogame had this as an issue several years back. \$\endgroup\$
    – Seta
    Jun 19, 2020 at 11:32


You must log in to answer this question.

Browse other questions tagged .