Change Javadoc to describe actual onEndOfMedia behavior when cycle is played.
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.
Update Javadoc to reflect actual behavior of onEndOfMedia property.
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.