StopTimeControl

StopTimeControl allows a user to set the media time at which Player should stop. Get StopTimeControl of the player and set the desired stop time in microseconds with the setStopTime() method of StopTimeControl

// Get the player whose stop time should be set...
Player player = ...;
// Get the StopTimeControl of the Player
StopTimeControl control = (StopTimeControl) player.getControl("StopTimeControl");
if (control!=null)
{
    // Set stop time to one second
    control.setStopTime(1000000);
}