An object that stores a reference to an audio file and provides metadata information about that file.
- watchOS 2.0–6.0Deprecated
You create assets when you want to play audio from your watchOS app. Use the audio file asset object to store the location of the file and any Now Playing information you want displayed while the audio is playing.
Audio assets must refer to files on the local file system. If you have audio files that are stored on a server, you must download them to the user’s Apple Watch before attempting to play them using an audio file asset object.
It is recommended that you encode audio files using 32 kbps stereo AAC. You may use other bit rates, or the LPCM encoding, as preferred for your content.
To play an audio file asset, wrap it in a
WKAudio object. The player item object stores information about the playback status of the asset and works with a
WKAudio object to coordinate playback. If you want to queue several audio files for playback, you manage those items using a