Skip to content

Missing libvlc library on Jvm #52

Open

Description

@JacobCube

There seems to be missing libvlc library on win64. I suppose this library relies on vlc but what if the device does not have it? It should probably be included in the library, so that this cannot happen.

java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc':
The specified module could not be found.

The specified module could not be found.

The specified module could not be found.

Native library (win32-x86-64/libvlc.dll) not found in resource path (C:\Users\jacob\.gradle\.tmp\gradle-javaexec-classpath8763683288146524301.jar)

Activity

  1. JacobCube commented on Jan 14, 2025

    @JacobCube
    Author

    At the very least, there should be a callback of some sorts instead of a crash. This way, I need to implement the libvlc in order to add the same check before I display the player.

  2. Micoder-dev commented on Feb 1, 2025

    @Micoder-dev

    yes, same issue

  3. ctn-mobile-innovation commented on Feb 20, 2025

    @ctn-mobile-innovation
    Collaborator

    We’ve added a "VlcNotFound" error in the "onError" event. You can now handle this case in your implementation. @Micoder-dev @JacobCube

  4. JacobCube commented on Feb 20, 2025

    @JacobCube
    Author

    @ctn-mobile-innovation good progress, thanks!

  5. mahozad commented on Jun 9, 2025

    @mahozad

    To embed VLC (plugin files), you can use the new Gradle plugin called vlc-setup which is for Compose Multiplatform desktop targets. it automatically prepare and embed VLC plugin files in the app so there is no need to install VLC or libvlc on the system. It requires the developer to add some code in their build and do some modifications in their media player.
    See the open-source Cutcon project on GitHub for a real-world example desktop app.

    Can also solve #35.

  6. CMingTseng commented on Oct 16, 2025

    @CMingTseng

    To embed VLC (plugin files), you can use the new Gradle plugin called vlc-setup which is for Compose Multiplatform desktop targets. it automatically prepare and embed VLC plugin files in the app so there is no need to install VLC or libvlc on the system. It requires the developer to add some code in their build and do some modifications in their media player. See the open-source Cutcon project on GitHub for a real-world example desktop app.

    Can also solve #35.

    Dear Sir

    can use this

    https://github.com/CMingTseng/JVM_Android_MediaPlayer

    THX

  7. CMingTseng commented on Oct 16, 2025

    @CMingTseng

    There seems to be missing libvlc library on win64. I suppose this library relies on vlc but what if the device does not have it? It should probably be included in the library, so that this cannot happen.

    java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc':
    The specified module could not be found.
    
    The specified module could not be found.
    
    The specified module could not be found.
    
    Native library (win32-x86-64/libvlc.dll) not found in resource path (C:\Users\jacob\.gradle\.tmp\gradle-javaexec-classpath8763683288146524301.jar)
    

    Dear Sir

    can use this

    https://github.com/CMingTseng/JVM_Android_MediaPlayer

    THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions