correct approach to accessing the const keys in SPTAudioStreamingController for trackMetadata dictionary?

StackOverflow https://stackoverflow.com/questions/23303899

  •  09-07-2023
  •  | 
  •  

Frage

What's the correct approach to accessing the const keys in SPTAudioStreamingController for trackMetadata dictionary?

In my .m file, I've tried:

#import <Spotify/SPTAudioStreamingController.h>

So that I can do something like:

[trackMetadata objectForKey: SPAudioStreamingMetadataTrackURI]

But, no dice, I get "Use of undeclared identifier 'SPAudioStreamingMetadataTrackURI'"

Thanks!

War es hilfreich?

Lösung

If you look in the header file you're importing, you'll see that you're missing a "T" at the start:

[trackMetadata objectForKey:SPTAudioStreamingMetadataTrackURI];
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top