我正在尝试接收有关iOS应用程序中当前播放轨道的信息。这在iPhone未连接到配件时工作得很好。如果我将它连接到我的汽车(OpelAstra,iPhone插孔),以下代码将停止工作asdescribedinthedocumentation:IfyoucreateaniPodmusicplayerandtheuserplaysanitemfromanotherlibraryusingHomeSharing,thevalueofthispropertyisnil.代码://nilwhileconnectedtoanaccessoryMPMediaItem*nowPlayingMediaIt
我正在尝试接收有关iOS应用程序中当前播放轨道的信息。这在iPhone未连接到配件时工作得很好。如果我将它连接到我的汽车(OpelAstra,iPhone插孔),以下代码将停止工作asdescribedinthedocumentation:IfyoucreateaniPodmusicplayerandtheuserplaysanitemfromanotherlibraryusingHomeSharing,thevalueofthispropertyisnil.代码://nilwhileconnectedtoanaccessoryMPMediaItem*nowPlayingMediaIt