I’m using Windows 10, VS 2015 Update 3 and MonoGame 3.5.1, DirectX.
I’m trying to play a video inside the game and I tried using a .WMV and it works as expected, however when I try to play an .MP4 video (using the same code used to play the .WMV) I get the following exception in the VideoPlayer.GetTexture() statement:
An unhandled exception of type ‘System.InvalidOperationException’ occurred in MonoGame.Framework.dll
Additional information: Platform returned a null texture
Here’s the statement causing the exception
// VideoPlayer player; Texture2D videoTexture = player.GetTexture();
Can anyone tell me possible causes for this exception?