LWJGL Forum

Programming => OpenGL => Topic started by: Trudko on April 04, 2007, 18:30:17

Title: How to play video in lwjgl?
Post by: Trudko on April 04, 2007, 18:30:17
I need to play video in my game. Some good advice ? What format of video is best to use ?
Title: Re: How to play video in lwjgl?
Post by: bobjob on April 05, 2007, 11:16:06
if its not in the game but an intro or a cut scene between levels, you could always run the video outside of a display window, then once its finished load another display screen for the next level.

im not sure the best way to approach video within the LWJGL display
Title: Re: How to play video in lwjgl?
Post by: Trudko on April 05, 2007, 15:34:19
That video is supposed to be an intro of game. So what is best way to do it ?
Title: Re: How to play video in lwjgl?
Post by: the2bears on April 08, 2007, 21:21:44
Quote from: Trudko on April 05, 2007, 15:34:19
That video is supposed to be an intro of game. So what is best way to do it ?

The best way would be to figure out what format your video is in, figure out where you will stream it from, and investigate whether or not there are implementations of the codec used so you can integrate this in your program.  LWJGL has nothing native for video, you'd be best off doing a little Google work on video codecs and Java.

Bill
Title: Re: How to play video in lwjgl?
Post by: Trudko on April 09, 2007, 08:46:36
Quote from: the2bears on April 08, 2007, 21:21:44
Quote from: Trudko on April 05, 2007, 15:34:19
That video is supposed to be an intro of game. So what is best way to do it ?

The best way would be to figure out what format your video is in, figure out where you will stream it from, and investigate whether or not there are implementations of the codec used so you can integrate this in your program.  LWJGL has nothing native for video, you'd be best off doing a little Google work on video codecs and Java.

Bill

Finnaly I use Java Media Framework.