Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

MonoGame 3.8 - Videos [update 18/1]

$
0
0

@lofcz wrote:

Are Videos properly implemented in this version yet? When I compile my mp4 using H.264 Video importer and Video - MonoGame processor, output xnb file is about 1Kb in size. Videos get loaded properly and for example Duration attribute is correct. Game crashes on following code:

VideoPlayer vp = new VideoPlayer();
Video v = video_get("MyVideo").VideoSource; // v contains valid duration, framerate, path
vp.Play(v); // crashes on nullreference0

Running this on Windows10, DX.
Would be grateful for any info about this, thanks!

Update:
Turned out MonoGame itself plays video well, problem is caused by MonoGame.Forms which I guess doesn't initialize some mandatory systems. As for audio to work FrameworkDispatcher.Update();needs to be called, are there any steps required to get video working?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles