Reputation: 13367
Is there any way to detect if computer has speakers plugged in? It would be nice if that would be possible with JavaScript, but if not, then my best bet would be Java.
But, yeah, I haven't worked with Java at all, any useful resources on this?
Thanks in advance!
So the answer for this is "impossible" and I shouldn't even bother looking for a solution?
Upvotes: 0
Views: 1319
Reputation: 1944
Every piece of software I've seen that needs to determine such a thing provides a way for the user to play a "test sound" and give the application some appropriate feedback. That seems to be the most practical solution.
Upvotes: 6
Reputation: 887415
The computer itself is not, in general, aware of this.
Some audio drivers are, but they don't expose the information.
Upvotes: 3