简体   繁体   English

在Titanium Mobile iOS中处于非活动状态时继续播放音乐

[英]Continue Playing Music Whilst Inactive in Titanium Mobile iOS

I have a Titanium Mobile project for iOS devices and would like to make the music continue playing whilst the application is inactive, and if possible whilst the device is locked. 我有一个适用于iOS设备的Titanium Mobile项目,希望在应用程序处于非活动状态时(如果可能)在设备锁定时继续播放音乐。

The audio files are within the application only, not in the iTunes library. 音频文件仅在应用程序内,而不在iTunes资料库中。

You'll have to set the background modes in the .plist file that is generated as part of the XCode project. 您必须在XCode项目中生成的.plist文件中设置背景模式。

See this link http://www.codeproject.com/Articles/124159/Hour-21-Building-Background-Aware-Applications 请参阅此链接http://www.codeproject.com/Articles/124159/Hour-21-Building-Background-Aware-Applications

and look for the section called Adding the Background Modes Key 并查找名为“添加背景模式键”的部分

Background audio playing must be a fundamentally important part of your app's functionality to use this, otherwise it will be rejected when you apply to submit it to the app store. 要使用此功能,后台音频播放必须是应用程序功能的根本上重要的一部分,否则当您申请将其提交到应用程序商店时,它将被拒绝。

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

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