Improve docs for MediaPlayer.dispose and Status.DISPOSED

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: javafx

      MediaPlayer DISPOSED is new in 8, but the interaction with other states is not well documented, and could/should be improved.

      For example, it is not mentioned in the state table at the top of the docs, and whereas the docs contain special mention for UNKNOWN and HALTED, there is no mention of DISPOSED.

      Of particular interest, the question I was trying to find an answer to, is ... "is it safe to call .dispose() at any time?" or alternatively, "what is the best/safest way to ensure that a MediaPlayer is no longer playing and the resources have been disposed of." Also, is it safe to call .dispose() on a MediaPlayer that has already been disposed?

            Assignee:
            Alexander Matveev
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: