I have an issue with a Swing/JavaFX application where I'm using the mediaPlayer to play a video. The application works just fine when it is run in eclipse but as soon as I package it and upload it to a webserver the video gets played without a problem but the onEndOfMedia Runnable doesn't get triggered anymore.
mediaPlayer.setOnEndOfMedia(new Runnable() {
public void run() {
System.out.println("End of Media!");
// do something
}
});
No error gets thrown and therefore I can not investigate further. This issue is a blocker for our project.
mediaPlayer.setOnEndOfMedia(new Runnable() {
public void run() {
System.out.println("End of Media!");
// do something
}
});
No error gets thrown and therefore I can not investigate further. This issue is a blocker for our project.