Contents

play()

Plays the audio resource.

Declaration

@MainActor @preconcurrency 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. The controller ignores calls to play() when audio is already playing.

See Also

Starting and stopping audio playback