Client
Server
Reference / @open-music-sdk/browser / tMusicKit
Defined in: integrations/browser/src/connect.ts:8
Apple's script, as the helper uses it: the global it defines, MusicKit.
configure(options):
| tMusicKitInstance
| Promise<tMusicKitInstance>;Defined in: integrations/browser/src/connect.ts:18
Apple's own: configures the script for one app, with the developer token its requests carry. Called once per page by the first helper, and again after a configuration that failed.
The developer token, and the app as the script is told of it.
string
| tMusicKitInstance | Promise<tMusicKitInstance>
The configured instance, or a promise of it, as the script's version gives it.
Whatever Apple's script throws or rejects with when it refuses the token or the app; the helper hands it on as it came, through ready and connect().