I want to play a video, the video file file "1a.ogv" is in the game folder and I have this code:
PlayVideo("1a.ogv",eVideoSkipNotAllowed, 0);
But everytime I click the hot-spot to trigger it this error appears: 'Unable to load theora video '1a.ogv"'. Why is this and how can I fix it?
By "game folder", do you mean "project folder" (where it's supposed to go) or "compiled game folder" where the .exe ends up?
Quote from: Khris on Fri 03/09/2021 09:23:55
By "game folder", do you mean "project folder" (where it's supposed to go) or "compiled game folder" where the .exe ends up?
The video file is in the same folder that stores the room(.asc and .crm) data. I also have it in the game folder in documents and neither seem to work.
Good, one other possible reason: Windows hides known extensions, so is it possible that the file is called "1a.ogv.ogv"? I assume it's associated with VLC or something, so if you don't see .exe but see .ogv, that means the name is bad.
You can turn the option off in Windows explorer or use Total Commander to see the actual name.
Quote from: Khris on Fri 03/09/2021 09:36:43
Windows hides known extensions, so is it possible that the file is called "1a.ogv.ogv"? I assume it's associated with VLC or something, so if you don't see .exe but see .ogv, that means the name is bad.
You can turn the option off in Windows explorer or use Total Commander to see the actual name.
That was the problem, I removed the .ogv at the end and now it works.
Thank you!