SPTAudioStreamingPlaybackDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | SPTAudioStreamingController.h |
Tasks
-
– audioStreaming:didReceivePlaybackEvent: -
– audioStreaming:didChangePosition: -
– audioStreaming:didChangePlaybackStatus: -
– audioStreaming:didSeekToPosition: -
– audioStreaming:didChangeVolume: -
– audioStreaming:didChangeShuffleStatus: -
– audioStreaming:didChangeRepeatStatus: -
– audioStreaming:didChangeMetadata: -
– audioStreaming:didStartPlayingTrack: -
– audioStreaming:didStopPlayingTrack: -
– audioStreamingDidSkipToNextTrack: -
– audioStreamingDidSkipToPreviousTrack: -
– audioStreamingDidBecomeActivePlaybackDevice: -
– audioStreamingDidBecomeInactivePlaybackDevice: -
– audioStreamingDidLosePermissionForPlayback: -
– audioStreamingDidPopQueue:
Instance Methods
audioStreaming:didChangeMetadata:
Called when metadata for current, previous, or next track is changed. * * This event occurs when playback starts or changes to a different context, * when a track switch occurs, etc. This is an informational event that does * not require action, but should be used to keep the UI display updated with * the latest metadata information. *
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didChangeMetadata:(SPTPlaybackMetadata *)metadataParameters
- audioStreaming
The object that sent the message.
- metadata
for previous, current, and next tracks
Declared In
SPTAudioStreamingController.haudioStreaming:didChangePlaybackStatus:
Called when playback status changes.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didChangePlaybackStatus:(BOOL)isPlayingParameters
- audioStreaming
The object that sent the message.
- isPlaying
Set to
YESif the object is playing audio,NOif it is paused.
Declared In
SPTAudioStreamingController.haudioStreaming:didChangePosition:
Called when playback has progressed
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didChangePosition:(NSTimeInterval)positionParameters
- audioStreaming
The object that sent the message.
- position
The new playback location in sec.
Declared In
SPTAudioStreamingController.haudioStreaming:didChangeRepeatStatus:
Called when repeat status changes.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didChangeRepeatStatus:(SPTRepeatMode)repeateModeParameters
- audioStreaming
The object that sent the message.
- repeateMode
Set to
SPTRepeatOff,SPTRepeatContextorSPTRepeatOne.
Declared In
SPTAudioStreamingController.haudioStreaming:didChangeShuffleStatus:
Called when shuffle status changes.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didChangeShuffleStatus:(BOOL)enabledParameters
- audioStreaming
The object that sent the message.
- enabled
Set to
YESif the object requests shuffled playback, otherwiseNO.
Declared In
SPTAudioStreamingController.haudioStreaming:didChangeVolume:
Called when playback volume changes.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didChangeVolume:(SPTVolume)volumeParameters
- audioStreaming
The object that sent the message.
- volume
The new volume.
Declared In
SPTAudioStreamingController.haudioStreaming:didReceivePlaybackEvent:
Called for each received low-level event
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didReceivePlaybackEvent:(SpPlaybackEvent)eventParameters
- audioStreaming
The object that sent the message.
- event
The event code
Declared In
SPTAudioStreamingController.haudioStreaming:didSeekToPosition:
Called when playback is seeked “unaturally” to a new location.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didSeekToPosition:(NSTimeInterval)positionParameters
- audioStreaming
The object that sent the message.
- position
The new playback location in sec.
Declared In
SPTAudioStreamingController.haudioStreaming:didStartPlayingTrack:
Called when the streaming controller begins playing a new track.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didStartPlayingTrack:(NSString *)trackUriParameters
- audioStreaming
The object that sent the message.
- trackUri
The Spotify URI of the track that started to play.
Declared In
SPTAudioStreamingController.haudioStreaming:didStopPlayingTrack:
Called before the streaming controller begins playing another track.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didStopPlayingTrack:(NSString *)trackUriParameters
- audioStreaming
The object that sent the message.
- trackUri
The Spotify URI of the track that stopped.
Declared In
SPTAudioStreamingController.haudioStreamingDidBecomeActivePlaybackDevice:
Called when the audio streaming object becomes the active playback device on the user’s account.
- (void)audioStreamingDidBecomeActivePlaybackDevice:(SPTAudioStreamingController *)audioStreamingParameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.haudioStreamingDidBecomeInactivePlaybackDevice:
Called when the audio streaming object becomes an inactive playback device on the user’s account.
- (void)audioStreamingDidBecomeInactivePlaybackDevice:(SPTAudioStreamingController *)audioStreamingParameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.haudioStreamingDidLosePermissionForPlayback:
Called when the streaming controller lost permission to play audio.
- (void)audioStreamingDidLosePermissionForPlayback:(SPTAudioStreamingController *)audioStreamingParameters
- audioStreaming
The object that sent the message.
Discussion
This typically happens when the user plays audio from their account on another device.
Declared In
SPTAudioStreamingController.haudioStreamingDidPopQueue:
Called when the streaming controller popped a new item from the playqueue.
- (void)audioStreamingDidPopQueue:(SPTAudioStreamingController *)audioStreamingParameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.haudioStreamingDidSkipToNextTrack:
Called when the audio streaming object requests playback skips to the next track.
- (void)audioStreamingDidSkipToNextTrack:(SPTAudioStreamingController *)audioStreamingParameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.haudioStreamingDidSkipToPreviousTrack:
Called when the audio streaming object requests playback skips to the previous track.
- (void)audioStreamingDidSkipToPreviousTrack:(SPTAudioStreamingController *)audioStreamingParameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.h