简体   繁体   English

适用于ios应用程序的外部Media Player支持

[英]External Media Player suppport for ios application

The developer documentation says that the about the new api, that apps can receive and respond to events sent by external media players using Media Player APIs by using the MPPlayableContentManager class, to control the interactions between the app and the external media player. 开发人员文档说,关于新API,应用程序可以使用MPPlayableContentManager类通过Media Player API接收和响应外部媒体播放器发送的事件,以控制应用程序与外部媒体播放器之间的交互。 Here does the reference external media players points to another app's Movie player? 参考外部媒体播放器在这里指向另一个应用程序的电影播放器​​吗?

When an app starts, it loads a data source, either from the device or from a server, that contains the available media items and provides this information to the media player. 应用启动时,它将从设备或服务器加载数据源,该数据源包含可用的媒体项目,并将此信息提供给媒体播放器。 The media player reads and displays this information to the user. 媒体播放器读取此信息并将其显示给用户。 This can be done with out the new api right? 可以不用新的api来完成吗? what advantages does the new additions make? 新增加的产品有什么优势?

The media player interacts with the app by sending events that the app has registered for. 媒体播放器通过发送应用程序已注册的事件来与应用程序进行交互。 The app responds to an event and changes its behaviour based on the event received. 该应用程序响应事件并根据收到的事件更改其行为。

The MpPlayableContentManager class is for use in CarPlay apps - From the Apple class reference MpPlayableContentManager类用于CarPlay应用中-来自Apple类参考

Important : This class is only used for CarPlay. 重要说明 :此类仅用于CarPlay。 Using it requires a special entitlement issued by Apple. 使用它需要Apple发行的特殊权利。 Apps without the correct entitlement will not appear on the CarPlay home screen. 没有正确授权的应用程序不会出现在CarPlay主屏幕上。 See http://www.apple.com/ios/carplay/ for more information. 有关更多信息,请参见http://www.apple.com/ios/carplay/

This class provides an API that allows an app to expose its content to the CarPlay interface. 此类提供了一个API,该API允许应用将内容公开给CarPlay接口。 The "Music" app will register its content, the Podcasts app can register podcast content and so on. “音乐”应用程序将注册其内容,播客应用程序可注册播客内容等。

Say you create an app that has recordings of the world's greatest sports car engines and you want the driver to be able to pick an engine sound - If Apple grants you a CarPlay entitlement then you app can register its media content and it will appear in the CarPlay interface along with everything else. 假设您创建了一个应用程序,该应用程序记录了世界上最伟大的跑车引擎,并且希望驾驶员能够选择引擎声音-如果Apple授予您CarPlay权利,则您的应用程序可以注册其媒体内容,并且它将出现在CarPlay界面以及其他所有功能。

The MPPlayableContentManager class allows your app to provide your content details and receive commands for playback of the content MPPlayableContentManager类允许您的应用提供您的内容详细信息并接收用于播放内容的命令

This API replaces (and expands) the functionality that was available to car manufacturers who integrated with iDevices via the 30pin/Lighting/USB cable - as now other apps can add their content to the list (if the entitlement is granted) 此API替代(并扩展了)通过30pin / Lighting / USB电缆与iDevices集成的汽车制造商可用的功能-因为现在其他应用程序可以将其内容添加到列表中(如果已授予权利)

The existing remote control APIs allow you to receive play/pause/skip events but not to provide a list of content for the user 'browse' on the remote system 现有的远程控制API允许您接收播放/暂停/跳过事件,但不能为远程系统上的用户“浏览”提供内容列表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM