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