Instance Method

play()

Plays the audio resource.

Declaration

func play()

Discussion

The controller plays from the beginning of the resource, or from the point at which it was paused if you previously called the pause() method during playback.

See Also

Starting and Stopping Audio Playback

func pause()

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

func stop()

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

var isPlaying: Bool

A Boolean that indicates whether playback is currently active.