How to play video in lwjgl?

Started by Trudko, April 04, 2007, 18:30:17

Previous topic - Next topic

Trudko

I need to play video in my game. Some good advice ? What format of video is best to use ?

bobjob

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

Trudko

That video is supposed to be an intro of game. So what is best way to do it ?

the2bears

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
the2bears - the indie shmup blog

Trudko

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.