Game Development Community

How to play movie?

by Phil Wu · in Torque Game Builder · 08/21/2008 (8:58 pm) · 2 replies

Recently, the project I am doing is going to play some movie files. I then look up the reference and find out GuiAviBitmapCtrl may be responsible for playing movies. I thus create an object of GuiAviBitmapCtrl, theMovie, and set the filed, aviFilename, to indicate what the file is. At run time, however, theMovie.play() will result error, Unknown command play. As usual, I go to forum for help and I see an earlier post on the forum dated back to 2007 which mentions the same issue. Inside the post, the solution is suggested to get pro license(which I do) and to upgrade avi resource. However, I don't quite understand what that avi resource mean and where I sould look up. Hope someone can address this issue for me. Thanks.

#1
08/22/2008 (9:03 am)
You can encode your movies in the Theora codec and use the references posted on TDN to view them.
#2
08/25/2008 (7:53 pm)
I downloaded the theora codec and converted the file into theora(file extension, ogv) format. The file after converting to theora format played nicely in windows media; however, when being put into torque using GuiTheoraCtrl, it had glitches and certain frames could not be played smoothly. Wondering if there are some parameters need to be tweaked when converting or while using GuiTheoraCtrl? Thanks.