問題タブ [apple-music]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - Detecting When An Apple Music Song Has Finished Playing
I'm writing an app that needs to enact an action when a song has finished playing. I'm using MPMusicPlayerController.applicationQueuePlayer() as my music player to play the user's apple music. I was wondering if there was a way I could detect when a users song has finished playing or when the queue has finished (either would be helpful)
ios - Apple Music ユーザートークンを取得しようとしています
これがユーザートークンを取得するための私のコードです
しかし、私はuserTokenをnilとエラーとして取得しています
"Error Domain=SKErrorDomain Code=7 "(null)" UserInfo={NSUnderlyingError=0x1c08437b0 {Error Domain=SSErrorDomain Code=109 "(null)" UserInfo={NSUnderlyingError=0x1c08437e0 {Error Domain=SSErrorDomain Code=109 "接続できませんiTunes Store" UserInfo={NSLocalizedDescription=iTunes Store に接続できません。SSErrorHTTPStatusCodeKey=401}}}}}"
私が間違っていることは何ですか?助けてください