vlcj

Playing media files using JAVA

99封情书 提交于 2019-11-29 08:22:28
I want to build a tread safe JAVA application which: Play *.mp4 or other format HD media files (full-screen mode 1920x1080) Add event bindings to applet (I'll be using touchscreen monitor) I tried to search a lot, but found only outdated examples of JMF (VLCJ and etc.). So I want you to ask from where to start building this applet. What libraries I can include. I found a similar project here: Media Shuffle But I want my media files to be located in one folder and they appear in applications as icons which start selected video (VLC fullscreen or other cross-platform media player) to play on 1st

Trying to embed vlcj media player in a WindowsCanvas inside a JPanel

Deadly 提交于 2019-11-28 08:42:08
问题 I'm trying to play a video using vlcj inside a JPanel but it doesn't work for me. The message exception I am getting is "java.lang.IllegalStateException: The video surface component must be displayable" which is the same problem as in Keep getting an Error "Component must be displayable". The code of the JPanel which contains the canvas and the vlcj player is this: import javax.swing.JPanel; import com.sun.jna.Native; import com.sun.jna.NativeLibrary; import java.awt.Canvas; import java.awt

Play video using libVLC from memory in python

懵懂的女人 提交于 2019-11-28 02:17:21
问题 I am trying to make use of libVLC python bindings to play files after reading them into memory. I have the following code that reads a valid video file into the memory. I need to now play the video directly from the memory. import vlc File1 = open('vid.webm','rb') Axel = File1.read() Now i need to play the contents in Axel, how can I do this. Information on how to do this in C, Java etc too can help. Edit: Understood I will have to use the imem module but can't find any help regarding how to

Playing media files using JAVA

落花浮王杯 提交于 2019-11-28 01:52:34
问题 I want to build a tread safe JAVA application which: Play *.mp4 or other format HD media files (full-screen mode 1920x1080) Add event bindings to applet (I'll be using touchscreen monitor) I tried to search a lot, but found only outdated examples of JMF (VLCJ and etc.). So I want you to ask from where to start building this applet. What libraries I can include. I found a similar project here: Media Shuffle But I want my media files to be located in one folder and they appear in applications

how to control VLC by java

隐身守侯 提交于 2019-11-27 22:31:59
I want to run a program called VLC in java and control it while running, for example if user clicked on ❚❚ or ►► button, I do a specific suitable action. I run VLC by this code : try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec(VLCProgramAddFile + " udp://@:" + listeningPort); OutputStream out = p.getOutputStream(); InputStream in = p.getInputStream(); p.waitFor(); System.out.println("End of VLC"); } catch (Exception e) { System.out.println("error in running VLC"); } I have heard about Java bindings, but I don't know how does it work for this job. You are probably looking for VLCJ,

Embedding VLCJ in JPanel

北慕城南 提交于 2019-11-26 23:29:31
问题 I have read this SO thread and when I have tried to use the code with some changes, I'm getting just a black window, can some one tell me what I'm doing wrong here, I have just one class with main function : import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; import com.sun.jna.NativeLibrary; import uk.co.caprica.vlcj.player.MediaPlayerFactory; import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; import uk.co.caprica.vlcj.player.embedded.videosurface

Adding other video codecs / DVD support to JavaFX 2.2

拜拜、爱过 提交于 2019-11-26 22:33:48
Update: Since the media side of JFX has been open sourced, I've looked into this myself and it is indeed possible, but requires changing and rebuilding the JFX source (both Java and C parts.) The process is described here for anyone that wants to have a go - I add MKV support in that example, but it should be very similar for other plugins. The remainder of the question is thus mainly historical, but I'll leave it here for reference. Background I've been using VLCJ thus far for playing video in my application. It works, but if possible I'd like to see if I can achieve a similar level of

Adding other video codecs / DVD support to JavaFX 2.2

有些话、适合烂在心里 提交于 2019-11-26 08:23:53
问题 Update: Since the media side of JFX has been open sourced, I\'ve looked into this myself and it is indeed possible, but requires changing and rebuilding the JFX source (both Java and C parts.) The process is described here for anyone that wants to have a go - I add MKV support in that example, but it should be very similar for other plugins. The remainder of the question is thus mainly historical, but I\'ll leave it here for reference. Background I\'ve been using VLCJ thus far for playing