How do I play a .wmv file in my AGS game? I have made an intro video to my game and can't figure out where to place it or add it, so that I can call the PlayVideo(); function. Someone please help!! Trying to figure it our for our class.
It's just PlayVideo("filename.wmv",VideoSkipStyle, int flags);
Get a utility to convert the wmv to avi.
Put the avi video in the games document folder under the compiled directory.
You don't have to convert to AVI - PlayVideo can play anything a DirectShow player can - which includes WMV.
Really? but i got an error when try to run my games that includes the .avi format,the screen becomes blank with black screen and then hangs up,why?
But i success when running .wmv file that i put on my games..currently i've a current K-Lite codec installed on my PC & Media Player Classic that can running DirectShow filters video/audio decoding,what's wrong?
Arjunax, it sounds like you have a problem with a particular codec. I prefer to use OGG Theora video for AGS anyway since it's integrated into the game files. But WMV and AVI should play fine.
I'd prefer wmv over avi any day. And frankly scrap wmv and avi, and just use .ogv. Those are bundled with the exe, and also get converted to like at least 50% of the size, so you save up size and also protect the video. It's a win-win situation.
I may suggest the following program that I've been using. You just drag a wmv over it, and it converts it.
Download (http://duals.agser.me/Files/theora.rar)
I'm on the team with RyeGuy here for senior P. I felt it was worth mentioning that when we were in direct9 mode we could not see our video when we ran the compiled exe. We switched to D. Draw and everything was coo. Not to versed in the ways of video cards so anyone know why that may happen? We got our movie playing and honestly direct9 isn't really important for our game but I feel this may be an issue for some. Maybe just us lol. All 3 of our laptops had the issue. And Mine is a suped up XPS.
Yeah. We got it working, once we changed it off Direct9