Media should support InputStream

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: fx2.0.2
    • Component/s: 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

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

              Created:
              Updated:
              Imported: