Can someone provide an example of loading and playing a video file in monogame?
I’ve been searching for awhile, looking at various posts and examples, and I’ve yet to find one that works.
My error is with the line:
video = contentManager.Load
An unhandled exception of type ‘Microsoft.Xna.Framework.Content.ContentLoadException’ occurred in MonoGame.Framework.dll
Additional information: Could not load Content\videos\videoTest asset as a non-content file!
videoTest as a wmv with a MGCP created xnb - same error
videoTest as a wmv without an xnb - same error
videoTest as a .mp4 - same error
Here are some of the links that I’ve found, but yielded no help:
https://github.com/Mono-Game/MonoGame.Samples - no examples for video
Playing video in Monogame 3.2 for Windows - no example
develop monogame 3.2 videoplalyer video option - no example
https://github.com/CartBlanche/MonoGame-Samples/tree/master/VideoPlayer - example uses an .mp4 video file, but this doesn’t work in 3.4
http://rbwhitaker.wikidot.com/monogame-managing-content - doesn’t even mention video files
This is a windows project (not openGL), and I’m using windows7.
Playing a video file really shouldn’t be this hard? I don’t care about playing videos on iOS, or android, or linux, or anything other than windows, so the ‘solution’ doesn’t need to be cross platform.