Summary
Change Javadoc to describe actual onEndOfMedia behavior when cycle is played.
Problem
Our Javadoc states that onEndOfMedia will only be called when stop time is reached and cycle is not repeating, however by design we always calling onEndOfMedia when stop time is reached regardless if cycle will be repeated or not. We always had this behavior since APIs where implemented. So, issue is in Javadoc which needs to be corrected.
Solution
Update Javadoc to reflect actual behavior of onEndOfMedia property.
Specification
https://openjfx.io/javadoc/15/javafx.media/javafx/scene/media/MediaPlayer.html
Current Javadoc comment:
If the stop time is reached and the cycle is not to be repeated, then the event handler registered with the onEndOfMedia property is invoked.
Proposed Javadoc comment:
If the stop time is reached, then the event handler registered with the onEndOfMedia property is invoked regardless of whether the cycle is to be repeated or not.
- csr of
-
JDK-8268683 JavaFX MediaPlayer onEndOfMedia behaviour different from Javadoc
- Resolved