dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: detect system hardware

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    50
    Is there any way to detect system hardware (specifically a soundcard or the ability to play sound) in flash? If not, what about using javascript?

    I have a movie that is very dependent on audio, but I want to automatically use subtitles if audio is not available.

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    The Great Northwest
    Posts
    380
    System.capabilities.hasAudio

    Availability


    Flash Player 6.

    Usage


    System.capabilities.hasAudio
    Description


    Property; a Boolean value that indicates whether or not the player has audio capabilities. The default value is true. The server string is A.

    Code:
    if(System.capabilities.hasAudio == false){
       //use subtitles
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center