JVLC addBroadcast
Posted: 02 Oct 2007 15:09
Hello. I'm using JVLC for windows with jvlc-0.9.0-20070310 and I can't run my webcam through JVLC.
When i put, "vlc -vvv dshow:// :dshow-vdev="USB2.0 WebCam PRO" :dshow-adev="" :dshow-size="" :sout=#display{dst=display}" in console, it work correctly, but i don't know how to do in java.
Exception:
[00000306] main playlist error: Reloading playlist not implemented.
org.videolan.jvlc.VLCException: Media webCam creation failed
at org.videolan.jvlc.VLM._addBroadcast(Native Method)
at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)
Sorry for my English. Thanks.
When i put, "vlc -vvv dshow:// :dshow-vdev="USB2.0 WebCam PRO" :dshow-adev="" :dshow-size="" :sout=#display{dst=display}" in console, it work correctly, but i don't know how to do in java.
Code: Select all
JVLC video=new JVLC();
String[] options={"dshow-vdev=\"USB2.0 WebCam PRO\""};
String output="#display{dst=display}";
video.vlm.addBroadcast("webCam", "C:/Temp/guetta.avi", output, options, true, false);
video.vlm.setOutput("webCam", output);
video.vlm.playMedia("webCam");
[00000306] main playlist error: Reloading playlist not implemented.
org.videolan.jvlc.VLCException: Media webCam creation failed
at org.videolan.jvlc.VLM._addBroadcast(Native Method)
at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)
Sorry for my English. Thanks.