Apple Carplay - 如何创建可播放容器?
Apple Carplay - how to create a playable container?
根据 MPContentItem.playable
的 Apple 文档:
When set to YES, the designated content item is able to be played.
Containers and individual content items can set this property to YES.
For example, a playlist with multiple songs in it. The playlist is a
container that can be played, or the user could choose a song from
inside of the playlist.
https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620158-playable?language=objc
但是,当我将容器设置为可播放时,它就不再是容器了。当我点击它时,它会播放,所以我怎么能看到子项目的列表呢?当它播放时,它会转到现在正在播放的屏幕,然后回击会将我带回我点击它的位置(即顶级列表),所以我永远无法进入二级列表。
那么文档是错误的,还是实际上可以创建一个可玩的容器?
我使用 CarPlay 有一段时间了。我很确定文档是错误的。您无法创建可玩容器。
根据 MPContentItem.playable
的 Apple 文档:
When set to YES, the designated content item is able to be played. Containers and individual content items can set this property to YES. For example, a playlist with multiple songs in it. The playlist is a container that can be played, or the user could choose a song from inside of the playlist.
https://developer.apple.com/documentation/mediaplayer/mpcontentitem/1620158-playable?language=objc
但是,当我将容器设置为可播放时,它就不再是容器了。当我点击它时,它会播放,所以我怎么能看到子项目的列表呢?当它播放时,它会转到现在正在播放的屏幕,然后回击会将我带回我点击它的位置(即顶级列表),所以我永远无法进入二级列表。
那么文档是错误的,还是实际上可以创建一个可玩的容器?
我使用 CarPlay 有一段时间了。我很确定文档是错误的。您无法创建可玩容器。