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

JavaFX MediaPlayer onEndOfMedia behaviour different from Javadoc

    XMLWordPrintable

Details

    • CSR
    • Status: Closed
    • P4
    • Resolution: Approved
    • jfx17
    • javafx
    • None
    • behavioral
    • minimal
    • Java API
    • JDK

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              almatvee Alexander Matveev
              webbuggrp Webbug Group
              Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: