Hi, i’m trying termoventilador’s solution, but it won’t work.
I’m adding TheoraPlay-CS.dll from SDL2 recent branch as reference to monogame (develop main branch, 3.1.2 ?!), VideoPlayer.cs and Video.cs from SDL2, but it throws the following errors:
at line 96:
/buildpath.../MonoGame.Framework/Media/VideoPlayer.cs(11,11): Error CS0246: The type or namespace name `OpenGLDevice' could not be found. Are you missing an assembly reference? (CS0246) (MonoGame.Framework.Linux)
at line 469:
/buildpath.../MonoGame.Framework/Media/VideoPlayer.cs(11,11): Error CS0246: The type or namespace name `DynamicSoundEffectInstance' could not be found. Are you missing an assembly reference? (CS0246) (MonoGame.Framework.Linux)
Then I tried another solution by termoventilador again, in this post VideoPlayer.cs Monogame 3.2 with the files he provided for Video and VideoPlayer, it builds fine, but when I try to load the video, it throws the error:
Microsoft.Xna.Framework.Content.ContentLoadException: Could not load Video/intro_naif asset as a non-content file! ---> System.Exception: The content file was not found. ---> System.Exception: Could not find file "/home/mauricio/Projetos/Games/wrk/Worm/02_production/04_game/Wormmy/bin/Debug/Content/Video/intro_naif.xnb".
Apparently, it tries to read the file with the .xnb extension… there are three formats of the same video in there .avi, .ogv and .wmv … I have also tried converting to xnb with xnb builder, but it says I can’ use, probably because it is not CBR single pass. As additional note, i’m using linux.
Any help? ):