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

Media should support InputStream

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: fx2.0.2
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              almatvee Alexander Matveev
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Imported: