mardi 30 décembre 2014

HTML5 Audio element plays the source file even if there is no sound card installed

I want to check whether a sound card is installed in the system or not using JavaScript.


For that I used HTML5 Audio element and try to play an audio file, by uninstalling the sound card. In Firefox and IE11 it immediately pauses the file from playing and is throwing an error (expected result for me), where in Chrome its trying to play the file with out any sound(obvious as there is no sound card). I need the same behavior like IE and Firefox in Chrome too. Is there any way we can make it work in Chrome?


Or any other solution to detect the sound card using JavaScript?


Aucun commentaire:

Enregistrer un commentaire