开发者

Check if users flash player has audio capabilities. (Capabilities.hasAudio)

Is it possible to check if the user has a 开发者_JAVA百科sound card? I found Capabilities.hasAudio but dont know if that is the value I should look at.

trace(Capabilities.hasAudio)

"Specifies whether the system has audio capabilities. This property is always true.


The docs are unclear on this, but I think that the properties in the Capabilities class tells you what the capabilities of the player is, not necessarily the system. For instance, the desktop players will always return true for hasAudio, regardless of whether the system actually can play audio or not.

Unfortunately, I don't think there's any way of determining the audio capabilities of the actual system. If you disable your sound card for instance, hasAudio will still return true AFAIK.


Sound.play() will return null if there is no device present.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜