fsplayer.api.PlaybackController Class
The PlaybackController class exposes the following methods:
| Constants |
| Methods |
|
Method |
Description |
|
play() |
Starts or resumes presentation playback. |
|
pause() |
Suspends presentation playback. |
|
gotoSlide(slideIndex, autoStart) |
Switches to the given slide of the presentation and starts its playback |
|
isPlaying(slideIndex, autoStart) |
Indicates whether the presentation is playing or not. |
|
gotoNextSlide(autoStart) |
Switches to the next presentation slide and starts its playback. Note: if the autoStart parameter was set to false, slide playback would not be started after switching. |
|
gotoPreviousSlide(autoStart) |
Switches to the previous presentation slide and starts its playback. Note: if the autoStart parameter was set to false, slide playback would not be started after switching. |
|
getCurrentSlideIndex() |
Returns current slide index. |
|
getCurrentSlidePlaybackPosition() |
Returns playback position within current slide. Note: playback position is a number between 0 and 1. |
|
gotoNextStep() |
Plays current slide from the beginning of the next animation step. Note: being called at the end of the slide this method plays presentation from the beginning of the next slide. |
|
gotoPreviousStep() |
Moves slide playback one step back. This method suspends slide playback at the end of the previous animation step. Note: being called on the start slide step this method causes playback switching to the end of the previous slide. |
|
getCurrentStepIndex() |
Returns current animation step index. |
|
setPausePlaybackHandler() |
Set onPausePlayback() method as handler for PAUSE_PLAYBACK event. |
|
onPausePlayback() |
Does nothing. This method can be overridden. |
|
setStartPlaybackHandler() |
Set onStartPlayback() method as handler for START_PLAYBACK event. |
|
onStartPlayback() |
Does nothing. This method can be overridden. |
|
setAnimationStepChangedHandler() |
Set onAnimationStepChanged() method as handler for ANIMATION_STEP_CHANGED event. |
|
onAnimationStepChanged(stepIndex) |
Does nothing. This method can be overridden. |
|
setSlidePositionChangedHandler() |
Set onSlidePositionChanged() method as handler for SLIDE_POSITION_CHANGED event. |
|
onSlidePositionChanged(position) |
Does nothing. This method can be overridden. |
|
setCurrentSlideIndexChangedHandler() |
Set onCurrentSlideIndexChanged() method as handler for CURRENT_SLIDE_INDEX_CHANGED event. |
|
onCurrentSlideIndexChanged(slideIndex) |
Does nothing. This method can be overridden. |
|
setSlideLoadingCompleteHandler() |
Set onSlideLoadingComplete() method as handler for SLIDE_LOADING_COMPLETE event. |
|
onSlideLoadingComplete(slideIndex) |
Does nothing. This method can be overridden. |
|
setPresentationPlaybackCompleteHandler() |
Set onPresentationPlaybackComplete() method as handler for PRESENTATION_PLAYBACK_COMPLETE event. |
|
onPresentationPlaybackComplete() |
Does nothing. This method can be overridden. |
|
enableAllEventHandlers() |
Enable all event handlers. |
|
removeAllEventHandlers() |
Removes all event handlers. |
|
setPlaybackHandler(event) |
Set playback handler for specified event. |
|
removePlaybackHandler(event) |
Set playback handler for specified event. |
See also
PlaybackControllerEvents Class
Player Class
JavaScript support in iSpring