fsplayer.api.IPresentationPlaybackController Interface
The IPresentationPlaybackController interface provides methods for presentation playback and navigation control. This interface can be obtained by calling the getPlaybackController() method on IPlayer interface.
| Methods |
|
Method |
Description |
|
addListener(listener:IPlaybackListener):Void |
Adds an external listener object implementing the IPlaybackListener interface; the passed object will be notified about presentation playback events |
|
removeListener(listener:IPlaybackListener):Void |
Removes previously added listener object. The passed object won't receive notifications from the player any more |
|
isPlaying():Boolean |
Returns a Boolean value indicating whether the presentation is playing or not |
|
getCurrentSlideDuration():Number |
Returns current slide duration in seconds |
|
play():Void |
Resumes presentation playback |
|
pause():Void |
Suspends presentation playback |
|
gotoNextSlide([autoStart:Boolean = true]):Void |
Switches to the next presentation slide and
starts its playback. |
|
gotoPreviousSlide([autoStart:Boolean = true]):Void |
Switches to the previous presentation slide and starts its playback. |
|
gotoLastViewedSlide([autoStart:Boolean = true]):Void |
Switches to the previously
viewed slide and starts its playback. |
|
getCurrentSlideIndex():Number |
Returns a zero-based index of currently playing slide |
|
gotoSlide(slideIndex:Number, [autoStart:Boolean = true]):Void |
Switches to the given slide of the presentation and starts its
playback |
|
getCurrentSlidePlaybackPosition():Number |
Returns playback position within current slide. |
|
pauseCurrentSlideAt(position:Number):Void |
Suspends currently playing slide at the given position |
|
playCurrentSlideFrom(position:Number):Void |
Restarts current slide from the given position. |
|
seek(position:Number):Void |
Seeks the current slide to the given position. After this operation
slide playback gets suspended until the endSeek()
method or other playback control method is called |
|
endSeek([resumePlayback:Boolean = undefined]):Void |
Exits from seeking mode and restores playback. |
|
getCurrentStepIndex():Number |
Returns current animation step index |
|
gotoNextStep():Void |
Plays current slide from the beginning of the next
animation step. |
|
gotoPreviousStep():Void |
Moves slide playback one step back. This method
suspends slide playback at the end of the previous
animation step. |
|
setAnimationStepPause(pause:Number):Void |
This method allows setting a pause between animation steps. If an undefined value is passed as pause value, animation steps will not be played automatically |
|
playFromStep(stepIndex:Number):Void |
Plays current slide from the beginning of the specified animation step |
|
pauseAtStepStart(stepIndex:Number):Void |
Suspends current slide at the beginning of the specified animation step |
|
pauseAtStepEnd(stepIndex:Number):Void |
Suspends current slide at the end of specified animations step |
|
enableAutomaticSlideSwitching(enableSwitching:Boolean):Void |
Enables or disables automatic switching to the next slide. |
|
getAutomaticSlideSwitching():Boolean |
Returns true if automatic slide switching has been enabled, false
otherwise. |
|
getCurrentVisibleSlideIndex():Number |
Returns index of currently playing slide within visible slides.
|
|
gotoVisibleSlide(visibleSlideIndex:Number, [autoStart:Boolean = true]):Void |
Switches to the given index within visible slides and starts its
playback |
|
gotoFirstSlide([autoStart:Boolean = true]):Void |
Switches to the first presentation slide and
starts its playback. |
|
gotoLastSlide([autoStart:Boolean = true]):Void |
Switches to the last presentation slide and
starts its playback. |
|
getNextSlideIndex():Number |
Returns next slide index or an undifined value in case if current slide is the latest one |
|
getPreviousSlideIndex():Number |
Returns previous slide index or an undifined value in case if current slide is the first one |
|
isNamedSlideShowPlaying():Boolean |
Returns Boolean value that indicates whether some named slide show is playing |
See also
IPlaybackListener Interface
IPlayer Interface
Flash Presentation ActionScript API Reference