html - Is it possible to use javascript to detect if a screen reader is running on a users machine? -


i want detect whether screen reader running on user's machine avoid sound clashing audio tag in html. if so, please provide details on how done.

you should not try special if detect screenreader running. if right 1 group of screenreader users, may wrong group. it's best concentrate on writing clean html5 in first place.

note not screenreader users use text-to-speech; many use braille output. additionally, other types of accessibility tools - such content highlighters , voice input apps - use same techniques , apis (eg. dom, msaa) screenreaders do, technique "detects screenreader" detect these - cannot assume means user blind , using speech.

as things stand, audio tag not universally accessible, different browsers have different levels of accessibility support - see html5 accessibility , scroll down audio more details of current support. i've seen pages add html5-based controls plus javascript after audio tag can provide own ui ensure keyboard or screenreader users can play/stop audio needed. (eventually, when browsers catch up, should not needed.)

as far general accessibility goes, wcag 2.0 (web content accessibility guidelines) recommends audio plays automatically more 3 seconds should have accessible means pause or stop audio. (i'd go further , recommend against using automatic audio - when using tabbed browsing, it's impossible determine tab audio coming from.)


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -