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

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

  •  09-07-2023
  •  | 
  •  

Question

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!

Was it helpful?

Solution

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];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top