|Modifier and Type||Field and Description|
static final long RESET
getStopTimeif no stop-time is set.
Long.MAX_VALUE is assigned to
void setStopTime(long stopTime)
Playerto stop. The
Playerwill stop when its media time reaches the stop-time. A
STOPPED_AT_TIMEevent will be delivered through the
Player is guaranteed
to stop within one second past the preset stop-time
stop-time <= current-media-time <= stop-time + 1 sec.);
unless the current media time is already passed the preset stop time
when the stop time is set.
If the current media time is already past the stop time set,
Player will stop immediately. A
STOPPED_AT_TIME event will be delivered.
Player stops due to the stop-time set,
the previously set stop-time will be cleared automatically.
Alternatively, the stop time can be explicitly removed by
setting it to:
You can always call
setStopTime on a stopped
To avoid a potential race condition, it is illegal to
setStopTime on a started
Player if a
media stop-time has already been set.
stopTime- The time in microseconds at which you want the
Playerto stop, in media time.
java.lang.IllegalStateException- Thrown if
setStopTimeis called on a started
Playerand the media stop-time has already been set.
setStopTime. Returns the constant
RESETif no stop time is set. This is the default.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.