0

EDIT: If your havng my problem, please watch this: https://www.youtube.com/watch?v=orMgNh0o38A

I have a JFrame setup for my game, I'd like to play a quick video before my game loads. How would I go about playing the video the easiest way?

The video should not include controls etc, just the video so my whole frame should be the video!

I've read other topics on this and they dont seem to help... at all D:

I'm not the best Java programmer so don't expect me to know every API and how to use them.

  • 1
    *"..how would I go about playing the video the easiest way?"* Hire someone that already knows how (is always the easiest way). For a 'less than easiest way', look to embed a Java-FX based [`MediaPlayer`](https://docs.oracle.com/javafx/2/api/javafx/scene/media/MediaPlayer.html). For an obsolete way, look to JMF. – Andrew Thompson Jul 25 '15 at 15:29
  • I cant exactly hire someone... Im making the game for fun and hopefully to publish on steam... but I doubt ill get that far D: –  Jul 25 '15 at 15:31
  • possible duplicate of [Playing video in Java](http://stackoverflow.com/questions/5277921/playing-video-in-java) – mustangDC Jul 25 '15 at 15:34
  • I read that and it didnt help.... I just want to display video in my JFrame with no controls –  Jul 25 '15 at 15:38

1 Answers1

0

You can use VLCJ to play video, and you can use this link to add the video to jpanel which you can show on startup : https://stackoverflow.com/a/20426375

Community
  • 1
  • 1
Garry
  • 4,493
  • 3
  • 28
  • 48
  • How do I install vlcj? Something about Maven? Whats that?? :O –  Jul 25 '15 at 15:45
  • i assume you must have figured out till now. any how you can find the latest version here for maven: http://mvnrepository.com/artifact/uk.co.caprica/vlcj/3.8.0 – Garry Jul 25 '15 at 18:57
  • Thanks, but I didn't use maven I just downloaded the jars and added them to my build path –  Jul 28 '15 at 19:46