Home > Mobile >  Does anyone know how to get the apple phone is playing songs?
Does anyone know how to get the apple phone is playing songs?

Time:09-29

I want to get the iPhone is playing songs of the relevant information (such as song, singer, album etc. Several of the most important information), as long as the iPhone is play songs, no matter what users are using the software (shrimp, netease cloud music or services),
IOS masters know?

CodePudding user response:

Brothers, I'm in android, you had gone out, what good method

CodePudding user response:

Hey hey, have a voice recognition, may,

CodePudding user response:

With bluetooth, bluetooth has this agreement

CodePudding user response:

Apple's system is android more strictly, don't want to this requirement

CodePudding user response:

Tell you, yes, but I don't know how to do it, because I found a online music spectrum of ios application

CodePudding user response:

Use this to take reading
 NSDictionary * playingInfo=[MPNowPlayingInfoCenter defaultCenter]. NowPlayingInfo; 

Need to import system libraries:
# import & lt; MediaPlayer/MediaPlayer. H>

Able to read before you read is the premise of setting the track information, if just play, but is not set to nowPlayingInfoCenter, can't get

CodePudding user response:

https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleMediaService_Reference/Specification/Specification.html#//apple_ref/doc/uid/TP40014716-CH1-SW8
Learn about apple's AMS service
  •  Tags:  
  • iOS
  • Related