我有一个闹钟应用程序,可以播放 .mp3 闹钟并使用一个 .wav 进行本地通知。
作为更新,我刚刚花费了大量的代码来设置和升级系统,将分配的 MP3 转换为 Wav,因此用户即使在本地通知中也会听到任何选定的警报。
现在我完成了一切,事实证明我需要从主包中提取本地 notif .wavs,但您无法写入主包。
我在开玩笑……
据我所知,这是一个失败的原因,但也许有些人有解决办法。或者 anione 认为值得与苹果接触吗?
PS升级系统是一个很好的作品,后台经过多重处理,对未来的升级来说很强大,在iphone 4上转换24个mp3需要8秒....太悲伤了....
I have an alarm app that plays .mp3 alarms and uses one .wav for local notifications.
As an update I just spent laying down a massive amount of code setting up and upgrade system that convers the allocated MP3s into Wavs,, so the user will hear any of the chosen alarms even in local notifs.
Now that I finished EVERYTHING it turns out I need to pull local notif .wavs from the main bundle, but you cant write to the main bundle.
Joke's on me....
From what I've found this is a lost cause but maybe some has a work around. Or does anione thing its worth making contact with apple?
P.S. Upgrade system is a nice pice of work, background multi treated, robust for future upgrades, takes 8 seconds to convert 24 mp3s on iphone 4.... So sad....
发布评论
评论(1)
您无法在 UILocalNotifications 中播放应用程序生成的音频(例外:越狱设备),因为正如您已经声明的那样,不允许写入主包。在开始项目之前你应该知道这一点。
You cannot play app-generated audio in UILocalNotifications (exception: jailbroken devices) because writing to the main bundle is not permitted as you already stated. You should have known that before starting the project.