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

Media should support InputStream

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • fx2.0.2
    • javafx
    • None

      Currently, we can construct media only from a URL or path, but if for example I need to deencrypt an mp3 file and then play it, I have to extract it to a temporary location, losing important security and preformance, and then pass it to the Media's string constructor.
      See http://stackoverflow.com/questions/13539814/playing-mp3-files-in-javafx-from-input-stream. (Another person with the same exact need and problem).

      I suggest to include an InputStream constructor for media.

        1. ConnectionHolder.java
          3 kB
          Kirill Kirichenko
        2. MediaInputStream_v2.java
          2 kB
          Alexander Matveev
        3. MediaInputStream_v3.java
          5 kB
          Alexander Matveev
        4. MediaInputStream.java
          1 kB
          Alexander Matveev
        5. MediaInputStreamHelper.java
          5 kB
          Alexander Matveev

            almatvee Alexander Matveev
            duke J. Duke
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Imported: