Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLAudioStreamManagerDelegate

SDLAudioStreamManagerDelegate Protocol Reference

Section Contents

Overview

Delegate for the AudioStreamManager

-audioStreamManager:fileDidFinishPlaying:successfully:

Called when a file from the SDLAudioStreamManager finishes playing

Objective-C

- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
      fileDidFinishPlaying:(nonnull NSURL *)fileURL
              successfully:(BOOL)successfully;

Swift

func audioStreamManager(_ audioManager: SDLAudioStreamManager, fileDidFinishPlaying fileURL: URL, successfully: Bool)

Parameters

audioManager

A reference to the audio stream manager

fileURL

The URL that finished playing

successfully

Whether or not it was played successfully

-audioStreamManager:errorDidOccurForFile:error:

Called when a file from the SDLAudioStreamManager could not play

Objective-C

- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
      errorDidOccurForFile:(nonnull NSURL *)fileURL
                     error:(nonnull NSError *)error;

Swift

func audioStreamManager(_ audioManager: SDLAudioStreamManager, errorDidOccurForFile fileURL: URL, error: Error)

Parameters

audioManager

A reference to the audio stream manager

fileURL

The URL that failed

error

The error that occurred

-audioStreamManager:dataBufferDidFinishPlayingSuccessfully:

Called when a data buffer from the SDLAudioStreamManager finishes playing

Objective-C

- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
    dataBufferDidFinishPlayingSuccessfully:(BOOL)successfully;

Swift

optional func audioStreamManager(_ audioManager: SDLAudioStreamManager, dataBufferDidFinishPlayingSuccessfully successfully: Bool)

Parameters

audioManager

A reference to the audio stream manager

successfully

Whether or not the data buffer played successfully

-audioStreamManager:errorDidOccurForDataBuffer:

Called when a data buffer from the SDLAudioStreamManager could not play

Objective-C

- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
    errorDidOccurForDataBuffer:(nonnull NSError *)error;

Swift

optional func audioStreamManager(_ audioManager: SDLAudioStreamManager, errorDidOccurForDataBuffer error: Error)

Parameters

audioManager

A reference to the audio stream manager

error

The error that occurred

View on GitHub.com
Previous Section Next Section