Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playing a video in Java Swing

Tags:

java

swing

I am doing a project on Video steganography. I thought of playing the 2 video files in Java Swing to make the comparision of files easier. So i want to know if we can play a video in Swing? Please help me out!!

like image 637
sammy Avatar asked Feb 21 '23 05:02

sammy


1 Answers

You might want to take a look at the Java Media Framework. A better alternative is probably using JavaFX. See SimpleVideoPlayer for an example.

Edit: You might also want to look at vlcj. It allows to embed a VLC player into a Swing java application.

like image 164
Wim Deblauwe Avatar answered Mar 03 '23 03:03

Wim Deblauwe