Contents

pause

Pauses playback at the current time.

Declaration

void pause();

Discussion

This ensures that wantsToPlay is false, meaning that if loading activity completes, playback will not begin spuriously.

If the Player is already not playing, then, aside from maintaining the wantsToPlay value, this does nothing.

To resume playback, call the play or toggle method.

See Also

Instance Methods