I want to check whether system has sound card installed or not, and this i want to check in my website. So this whole process will run in background completely ünknown to user. As soon as they connect to our website this control will secretly check as the rest of the site loads. If the result of the control returns a results that they have speakers and the volume is turned on then it will trigger a sound.
This is for web based applicatiojn.
Please help me how do i check this? in any language asp, php, asp.net, java etc..
Thanks in advance.
Sorry, but you can't get details about the user's hardware from a web application. Web apps aren't allowed to access anything outside the browser itself, for security reasons. Why don't you just play the sound? If the person doesn't have speakers plugged in or the volume turned on they won't hear it, but it won't hurt them. Besides, every computer has a sound card nowadays (even if it's just built into the motherboard).
But i want to know how many users plays the game with sound and without sound.
Also if we play any song through internet, it detects first if sound card is installed, speaker is on etc... How they do this??
The web browser or media player does that automatically when you try to play a sound. But that function isn't accessible to any client side script, as browser scripts execute in a sandbox that isolates them from the user's system.
well,in your app....
use sockets, first do a check then send the results to a server or a hosting if necesary .... (with a php or asp script for receive and do something with the info ..)
if you need help with that, just tell me ...
Au Revoir !