Instance Property

isPlaying

A Boolean that indicates whether playback is currently active.

Declaration

var isPlaying: Bool { get }

Discussion

You may experience a small delay between when you call the play() method and when the isPlaying property reports true.

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.

func stop()

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