A DESCRIPTION OF THE PROBLEM :
In the Javadoc of MediaPlayer, description part, it says
"If the stop time of the cycle is reached and the cycle is to be played again, the event handler registered with the onRepeat property is invoked. 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."
However, the onEndOfMedia property is invoked after each cycle, no matter the cycle is to be repeated or not.
Please edit the doc or the code to make sure they match with each other.
In the Javadoc of MediaPlayer, description part, it says
"If the stop time of the cycle is reached and the cycle is to be played again, the event handler registered with the onRepeat property is invoked. 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."
However, the onEndOfMedia property is invoked after each cycle, no matter the cycle is to be repeated or not.
Please edit the doc or the code to make sure they match with each other.
- csr for
-
JDK-8269640 JavaFX MediaPlayer onEndOfMedia behaviour different from Javadoc
- Closed