Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个应用程序,即使在后台,它也可以在特定时间停止或播放来自 iPod 或其他音频的音乐。可能吗?
我知道使用本地通知可以在 30 秒内播放音频,但我需要更多时间。有像 TuneIn Radio 这样的应用程序可以做到这一点。
非常感谢您!
除非是您的应用在后台播放音乐,否则我认为这是不可能的。最困难的部分是您无法在后台运行应用程序,除非它是播放声音、跟踪用户位置或 voip 客户端。
您可以使用本地通知,但警报声音限制为 30 秒,并且您只能在应用启动时停止任何音频会话。
'重量转换器'
试图掌握使用存根的窍门,但我无法获得正确的格式,我有什么问题?我知道在这种情况下我已经在代码中使用了该方法,但我正在尝试学习如何正确执行存根。
测试:
describe "Convert Pounds to Kilo