检查用户的Flash播放器有音频功能。 (Capabilities.hasAudio) [英] Check if users flash player has audio capabilities. (Capabilities.hasAudio)

查看:142
本文介绍了检查用户的Flash播放器有音频功能。 (Capabilities.hasAudio)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时可以检查用户是否有声卡?我发现Capabilities.hasAudio,但不知道如果是这样的价值,我应该关注一下。

Is it possible to check if the user has a 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.

推荐答案

该文档是不清楚这一点,但我认为,在Capabilities类的属性告诉你什么的的播放的是能力,不一定是系统。例如,桌面播放器将总是返回true hasAudio,无论系统是否真正能播放音频或没有。

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.

不幸的是,我不认为有什么办法确定实际的系统的音频能力。如果禁用声卡为例,hasAudio仍然会返回true AFAIK。

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.

这篇关于检查用户的Flash播放器有音频功能。 (Capabilities.hasAudio)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆