Closed PixelDoted closed 2 years ago
Let's see if @omegaui can help you with this . If not i will have a look . Just yesterday i updated XR3Player to Java 18 which is using java-stream-player so i will test it too why that may happen . Probably the exported jar is missing something . You can have a look on XR3Player pom file to see how i create the final jar file.
@goxr3plus @PixelDoted
When I came across this issue, I took a look at META-INF's services files of each jar dependency of java-stream-player and found out that some files have the same name and in preparing the fat jar they were overwriting each other therefore causing the UnsupportedAudi...... Exception.
Thus, running from the IDE was preventing the overwrite as all dependencies were loaded dynamically.
So for me, dynamically loading the dependencies fixed the issue.
I got it working by using the <build>...</build>
from XR3Player's POM file
Thanks for the help!
@omegaui Hm looks like I will decompile all the dependencies and fix their package names so they don't override that's weird.
I got it working by using the
<build>...</build>
from XR3Player's POM fileThanks for the help!
Happy to hear :) XR3Player uses all the functionality of Stream Player so any complex operation you may want to do I have done already so feel free to ask :)
java-stream-player version: 10.0.2
I can play MP3's in VSCode
but not in an exported jar
when I try to play an mp3 it outputs
I found this issue (#73)
saying they were missing dependencies, but didn't say what dependencies
I also tried the demo code but it still didn't work when exported to a jar