-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
How can the player be stopped? #15
Comments
You can call java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java Lines 598 to 612 in 8bb2ad1
|
From what I could see, that stopped the playing, but the main application did not exit, because there was still a thread running. I made some tests with stop() in my new main(). The playback stopped, but the application didn't exit if I didn't call System.exit(). |
Hm then it's the ExecutorService of Stream Player that doesn't exit immediately probably :) |
I just realized that this issue is the same as #1 . |
I can't find how to stop the player. When I run Main.main(), it continues to sound after main() exits. The only way I have found is to call System.exit().
How can the player thread be stopped and/or joined?
The text was updated successfully, but these errors were encountered: