Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8268683: JavaFX MediaPlayer onEndOfMedia behaviour different from Javadoc #552

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -112,10 +112,11 @@
* duration of media playback is then the product of the cycle duration and the
* number of times the cycle is played. If the stop time of the cycle is reached
* and the cycle is to be played again, the event handler registered with the
* {@link #onRepeatProperty onRepeat} property is invoked. If the stop time is reached and
* the cycle is <i>not</i> to be repeated, then the event handler registered
* with the {@link #onEndOfMediaProperty onEndOfMedia} property is invoked. A zero-relative index of
* which cycle is presently being played is maintained by {@link #currentCountProperty currentCount}.
* {@link #onRepeatProperty onRepeat} property is invoked. If the stop time is
* reached, then the event handler registered with the {@link #onEndOfMediaProperty onEndOfMedia}
* property is invoked regardless of whether the cycle is to be repeated or not.
* A zero-relative index of which cycle is presently being played is maintained
* by {@link #currentCountProperty currentCount}.
* </p>
*
* <p>The operation of a <code>MediaPlayer</code> is inherently asynchronous.