Instance Method


Stops playback of the audio resource and discards the location in the audio stream.


func stop()


If you call the stop() method, the next time you call play(), playback starts at the beginning of the stream.

See Also

Starting and Stopping Audio Playback

func play()

Plays the audio resource.

func pause()

Pauses playback of the audio resource while maintaining the position in the audio stream.

var isPlaying: Bool

A Boolean that indicates whether playback is currently active.