EroticDevelopment / GuideMe

An interactive story viewer
MIT License
9 stars 4 forks source link

Updates to MediaPlayer initialization #40

Closed EroticDevelopment closed 2 years ago

EroticDevelopment commented 2 years ago

This adds a LocalDirectoryDiscoveryStrategy class that allows vljc to search the local lib directory for libvlc in addition to the OS default locations. Additionally, I've removed SwtEmbeddedMediaPlayer in favor of the built-in EmbeddedMediaPlayer since it now seems possible to bind it to a SWT Video Surface.

I opted to have VLC search the local lib directory before looking for a Windows install for a couple reasons:

  1. If a user has an old version of VLC installed it could break GuideMe, and the version distributed with the release has been tested to work correctly.
  2. If a user doesn't want to use the distributed version for any reason, and instead wants to use their installed version, it's as simple as deleting libvlc from the lib folder or using the Slim release which uses the OS-installed VLC and Java by default.