How to play a video in Java Swing? Is there any Swing components for this?
Asked
Active
Viewed 1.9k times
4 Answers
2
I suppose this will solve your problem : How to use JVLC (Java bindings for VLC)?
-
2The link given on the above post is DEAD. Did you mean http://code.google.com/p/vlcj/ . – Favonius Dec 31 '10 at 11:07
-
@asela38 - I mistakenly edited your post. Just made a rollback. Sorry about that. – Natan Streppel Dec 20 '13 at 20:07
0
What you are looking for is JMF (Java Media Framework).
You can find some tutorials on how to use it in the SO question below.
-
3Note that JMF has been sadly neglected by Sun. It may be hard to find the appropriate codecs. – Thorbjørn Ravn Andersen Dec 31 '10 at 10:38
-
Agree with above comment. Two days I was trying a simple .mov file and it failed miserably. Although FMJ looks good as of now. – Favonius Dec 31 '10 at 11:01
-
This would be a nice concise answer, except that it is apparently sadly out of date. – icedwater Jan 11 '16 at 03:28
0
vlcj is a very nice library for playing video in Java Swing, but it needs to have VLC installed on user's computer first:

Antony Ng
- 767
- 8
- 16