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

Incorrect number of tracks in Media object

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.0
    • None
    • javafx
    • Windows Vista 32-bit. JavaFX 1.1 pre-release

      The following code creates a Media object that refers to the Buck Bunny movie from the JavaFX samples. I expected that it would report an audio track and a video track. In fact, it just reports an audio track.

      import javafx.scene.media.Media;

      var mediaURL = "http://sun.edgeboss.net/download/sun/media/1460825906/"
       "1460825906_2956241001_big-buck-bunny-640x360.flv";

      var tracks = bind media.tracks on replace {
          for (track in tracks) {
              println("Track #{indexof track}, type: {track.getClass().getName()}");
          }
      };
      var media = Media {
                      source: mediaURL
                  };

            almatvee Alexander Matveev
            ktopleyjfx Kim Topley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: