Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if users flash player has audio capabilities. (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.

like image 790
Mattias Avatar asked Dec 22 '10 16:12

Mattias


1 Answers

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.

like image 133
Marcus Stade Avatar answered Sep 21 '22 14:09

Marcus Stade