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

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

  •  09-07-2023
  •  | 
  •  

سؤال

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!

هل كانت مفيدة؟

المحلول

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];
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top