Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With this, I don't need to have VLC on my PC? #1

Closed
leon-lourenco opened this issue Mar 13, 2019 · 3 comments
Closed

With this, I don't need to have VLC on my PC? #1

leon-lourenco opened this issue Mar 13, 2019 · 3 comments
Labels
question Further information is requested

Comments

@leon-lourenco
Copy link

Hello. I'm searching for some way to don't need to have VLC on my PC. There's somehow? I've searched on Caprica's page, but some tutorials are missing.

@caprica caprica added the question Further information is requested label Mar 13, 2019
@caprica
Copy link
Owner

caprica commented Mar 13, 2019

There are no tutorials missing. The tutorials state to install VLC first.

This project is the vlcj Java bindings to the native LibVLC library, it does NOT contain LibVLC. So the short answer to your question is "no".

I know some other projects use the "natives" nomenclature to mean it includes native libraries, but that is not the case here.

For a more useful answer:

If you are just supporting Windows, copy the VLC DLL's and ship them with your application (respecting the VLC license of course), and have vlcj's native discovery pick them up from whatever directory you put them in.

If you need to support Linux and/or OSX it is much more difficult, because you can NOT simply copy shared objects from one Linux distribution/architecture and have them work from some arbitrary directory on another PC.

Personally:

  • For Windows OSX, I don't really care since my projects are all Linux;
  • For Linux, I would:
    • create a .deb or .rpm or whatever for your project and have it depend on LibVLC;
    • look into the various options for running self contained applications link Snap, Appimage, Flatpak or something similar

When you find a solution that works, probably you can find (or write) a maven plugin for it to make it convenient to build your target package.

@leon-lourenco
Copy link
Author

leon-lourenco commented Mar 14, 2019

Thank you for your complete explanation. One more question: You have said something about "vlcj native discovery". I'm not much familiar with VLCj. There's any tuto about it? Thank u! (really love your work)

@caprica
Copy link
Owner

caprica commented Mar 14, 2019

Native discovery is a mechanism by which vlcj tries to help you correctly locate the LibVLC shared libraries (DLL's on Windows).

If VLC is installed properly, you usually don't have to bother with native discovery - it should just work, on any operating system.

In case it does not work, there are some things you can do but it is different (slightly) for vlcj-3.x vs vlcj-4.x:

For vlcj-3, see http://capricasoftware.co.uk/projects/vlcj-3/tutorials/first-steps.

For vlcj-4, native discovery is automatic for the vast majority of use-cases, but see http://capricasoftware.co.uk/projects/vlcj-4/tutorials/first-steps.

And thanks for the compliment!

@caprica caprica closed this as completed Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants