caprica / vlcj

Java framework for the vlc media player
http://www.capricasoftware.co.uk/projects/vlcj
1.13k stars 259 forks source link

[Suggestion] Vlc can't be discovery when install 32-bit vlc in 64-bit machines #1214

Closed Greatwallcorner closed 7 months ago

Greatwallcorner commented 7 months ago

I found this in registry editor: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\VideoLAN\VLC refer: https://stackoverflow.com/questions/5698690/check-if-vlc-is-installed, first answer's comments Maybe Can add this registry key in uk.co.caprica.vlcj.factory.discovery.provider.WindowsInstallDirectoryProvider

caprica commented 7 months ago

What if both 64-bit and 32-bit versions of VLC are installed? What should vlcj's discovery do then?

Also, why would you install 32-bit VLC on 64-bit Windows?

Anyway, these "unusual" cases are why the discovery implementation is designed to be trivially extended. You could very easily write your own DiscoveryDirectoryProvider that looked for the registry key you mentioned, and give it the highest priority.

caprica commented 7 months ago

I'll close this I think, the suggestion is a fair suggestion, but for a bespoke case like this I would just reiterate that the intention is to make it easy for developers to extend the vlcj discovery mechanism themselves. Please check the Javadoc around "discovery" for more information how to do this.