init(playerItem:)
Creates and returns a player initialized with the specified player item.
Declaration
convenience init(playerItem item: WKAudioFilePlayerItem)Parameters
- item:
The player item containing the audio asset to play. This parameter must not be
nil.
Return Value
An initialized player object.