简体   繁体   English

如何使用Adobe Air在静音模式下检测设备并与之交互-AS3

[英]How to detect and interact with a device in silent mode using Adobe air - AS3

I am developing a game with background sounds using as3 - adobe air. 我正在使用as3-Adobe Air开发具有背景声音的游戏。 I recently discovered that if the device is Silent, the music will keep playing, either on iOS or Android. 我最近发现,如果设备静音,则音乐将继续在iOS或Android上播放。 I need to know is there any way that : 我需要知道有什么办法:
- Detects at launch if originally the silent switch is clicked (Silent mode enabled) -在启动时检测是否最初单击了静音开关(启用了静音模式)
- Detects at any time if the silent switch is clicked -随时检测是否单击了静音开关

At any time, i need the app to be responsive to the user silence interaction. 在任何时候,我都需要该应用程序对用户静默交互做出响应。 How can i do this? 我怎样才能做到这一点? i've searched all over the internet but couldn't find a solution. 我已经在互联网上进行了搜索,但找不到解决方案。

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

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