stop()
Stops playback and undoes the setup the system requires for playback.
Declaration
func stop()Discussion
Calling this method undoes the resource allocation the system performs in prepareToPlay() or play(). It doesn’t reset the player’s currentTime value to 0, so playback resumes from where it stops.