Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLAudioStreamManagerDelegate Protocol Reference

Section Contents

Overview

Undocumented

-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

View on GitHub.com
Previous Section Next Section