Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm trying to play a video in a monogame project. I've done this in XNA in the past by including the Framework.Video directory and it's very simple. This cannot be done in monogame as Visual Studio 2012 wont accept the XNA directories.

I've not been able to find any other way explained anywhere if you can actually put video in monogame yer and if you can how it's done.

Any ideas?

share|improve this question

1 Answer 1

The Mono Framework seems to implement a media player via the windows media player. https://github.com/mono/MonoGame/blob/develop3d/MonoGame.Framework/Media/MediaPlayer.cs

share|improve this answer
    
Thanks Evan, I'll give it a try tonight when I get home. –  Josh Naylor Jan 31 '13 at 15:18
1  
@JoshNaylor please don't mark this as accepted until you've verified that it really works. This will discourage other people from answering. –  ashes999 Jan 31 '13 at 15:41
    
I've put all of that in a class but apparently Framework.Media.MediaQueue and .Song does not contain definitions of things like Clear,Add and Volume. I think I'm missing the directory SharpDX.Multimedia for some reason. Will have to try locate it. –  Josh Naylor Jan 31 '13 at 22:46
    
I've commented out the lines which where giving me problems in the MediaPlayer.cs file, i dont think they will effect much. Now i dont know how to call both the Video and VideoPlayer like i would in XNA –  Josh Naylor Feb 1 '13 at 0:22
    
Looking further into it, i think it was this that I needed. github.com/monospider/monogame/blob/master/MonoGame.Framework/… –  Josh Naylor Feb 1 '13 at 9:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.