Java RunTime 2.0.1 used to run multiple media player instances, but since 2.0.2 any more than one instance always returns status of UNKNOWN
To clarify,
I recently upgraded the JavaFX runtime to 2.0.2 so the following never happened in 2.0.1...
if I create more than one instance of a MediaPlayer object and pass in a media object, (either URI type file:// or http://), and then try to play the media, the Status of all but one of the MediaPlayers returns Status.UNKNOWN.
for example:
final ArrayList<MediaPlayer> theTracks = new ArrayList<>(0);
theTracks.add(new MediaPlayer(new Media("file:///C:/wamp/www/FYP_D07114915_SERVER/ServerAudioTracks/kevuser/Sessions/TESTSESSION/10.mp3")));
theTracks.add(new MediaPlayer(new Media("file:///C:/wamp/www/FYP_D07114915_SERVER/ServerAudioTracks/kevuser/Sessions/TESTSESSION/9.mp3")));
theTracks.add(new MediaPlayer(new Media("file:///C:/wamp/www/FYP_D07114915_SERVER/ServerAudioTracks/kevuser/Sessions/TESTSESSION/5.mp3")));
All these URLs passed were valid....
See the attached java file for details
To clarify,
I recently upgraded the JavaFX runtime to 2.0.2 so the following never happened in 2.0.1...
if I create more than one instance of a MediaPlayer object and pass in a media object, (either URI type file:// or http://), and then try to play the media, the Status of all but one of the MediaPlayers returns Status.UNKNOWN.
for example:
final ArrayList<MediaPlayer> theTracks = new ArrayList<>(0);
theTracks.add(new MediaPlayer(new Media("file:///C:/wamp/www/FYP_D07114915_SERVER/ServerAudioTracks/kevuser/Sessions/TESTSESSION/10.mp3")));
theTracks.add(new MediaPlayer(new Media("file:///C:/wamp/www/FYP_D07114915_SERVER/ServerAudioTracks/kevuser/Sessions/TESTSESSION/9.mp3")));
theTracks.add(new MediaPlayer(new Media("file:///C:/wamp/www/FYP_D07114915_SERVER/ServerAudioTracks/kevuser/Sessions/TESTSESSION/5.mp3")));
All these URLs passed were valid....
See the attached java file for details