JVLC VLM
Posted: 13 Jul 2007 11:19
Hello. This is my first post here. I had playing around wth JVLC latest two days and was gratefully surprised to see it working so smooth. Problem occurred when it comes to use VLM trunk of JVLC. Apparently, there is no working example on the entire net and the vlm.addBroadcast() method seems to always fail creation. I was wondering whether I'm doing something wrong or the VLM trunk is not yet functional. I use 2007-03-10 release for windows.
I'd really appreciate if someone can put up some light on this misterious VLM for JVLC behaviour. If anyone managed to get it working it would be great if you can post some of your code and tell me where did you get your java VLC binding .
Here is the code I use, guess this doesn't mind anyway as addBroadcast raises a creation failed VLC exception:
And the exception:
I'd really appreciate if someone can put up some light on this misterious VLM for JVLC behaviour. If anyone managed to get it working it would be great if you can post some of your code and tell me where did you get your java VLC binding .
Here is the code I use, guess this doesn't mind anyway as addBroadcast raises a creation failed VLC exception:
Code: Select all
String streamName = [streamName];
String location = [file URI];
String output="#std{access=udp,mux=ts,dst=127.0.0.1:1234}";
jvlc.vlm.addBroadcast(streamName, location, output, new String[0], true, false);
jvlc.vlm.setOutput(streamName, output);
jvlc.vlm.playMedia(streamName);
Code: Select all
org.videolan.jvlc.VLCException: Media [streamName] creation failed
at org.videolan.jvlc.VLM._addBroadcast(Native Method)
at org.videolan.jvlc.VLM.addBroadcast(VLM.java:39)