【问题标题】:How to stop background music playing on android using Appcelerator (Titanium)如何使用 Appcelerator (Titanium) 停止在 android 上播放背景音乐
【发布时间】:2013-05-25 14:47:11
【问题描述】:

一旦我在 Android 中打开我的应用程序(我正在使用 Appcelerator Titanium),谁能帮助我知道如何停止在 Android 上播放背景音乐

【问题讨论】:

    标签: android titanium appcelerator background-music


    【解决方案1】:

    Titanium Mobile 未集成 Android 的 Audio Focus 功能 as indicated by the lack of Audio Focus-related method calls。因此,您无法使用框架本身请求永久音频焦点,这会停止其他活动应用的音频播放。

    你可以create a Titanium Module实现这个功能。


    您可能在为特定应用程序创建 Intent 方面取得了一些成功,例如,向默认音乐播放器 com.android.music.musicservicecommand 发送暂停 Intent。查看这些资源:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多