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

Improve docs for MediaPlayer.dispose and Status.DISPOSED

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • 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?

            almatvee Alexander Matveev
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: