Jump to content
  • Advertisement
Sign in to follow this  

[java] JVLC VLM

This topic is 4115 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello java people. Do any of you ever used the java binding of the VLC player? If any do, have you ever got it to stream using its VLM functionality? Problem for me is that it fails on creation of the broadcast.
String streamName = [streamName];
String location = [file URI];
String output="#std{access=udp,mux=ts,dst=}";
jvlc.vlm.addBroadcast(streamName, location, output, new String[0], true, false);
jvlc.vlm.setOutput(streamName, output);

And here is the exception thrown by addBroadcast()
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)

I'm really stuck on this. There aren't many examples on the whole net, as JVLC is still under development (I guess), but till now I got no help from their forums. So I thought I could rely on anyone here at gamedev who had ever used those features. I Hope there's someone here...

Share this post

Link to post
Share on other sites
Checking out the source code for VLC shows that this error is caused by the VLC, not Java bindings.

For whatever reason, loading of the data failed. Unfortunately, the true error is probably not reported.

It could be that a dll is missing or not in path, a coded isn't available, or some other configuration error.

The error itself comes from vlm_ControlMediaAdd in src\input\vlm.c.

My guess would be that either the location of the media you're trying to load isn't correct, or you're missing VLC dlls in -Djava.library.path

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!