Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127771

More than 1 MediaPlayer instance not allowed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • fx2.1
    • None
    • javafx
    • None
    • Netbeans 7.1, Java 7 , Windows XP SP3

      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

            bpb Brian Burkhalter
            bockymurpjfx bockymurphy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: