HTML5 - how to detect? JavaScript

September 6, 2014 at 02:32:51
Specs: All OS's, 2Ghz/ 2Gb
Looking to find a simple way to determine if the users' browsers are HTML5 or "other".

I am detecting which browser (from a reasonably sized list)

I am using "new Audio()" and it will not auto load if a Tab/Pad or Phone is detected (Android & IOS) but want to cover the non- HTML5 situation with code & warnings.

maybe the "try" command?
TIA
Mr Red http://stroudvoices.co.uk - search page (non-Wordpress script) does not incorporate the above yet

Knowledge knows what it knows, intelligence knows when it doesn't.


See More: HTML5 - how to detect? JavaScript

Report •


#1
September 6, 2014 at 03:09:08
this page looks to do the job I am after, detecting audio support.
http://www.binarytides.com/using-ht...

Will report back

Knowledge knows what it knows, intelligence knows when it doesn't.


Report •

#2
September 8, 2014 at 11:05:32
I used the information on the link above and the link below works on iPhones. So result.

http://stroudvoices.co.uk/search18
Only one button plays (an audio explanation) until a search term finds a match & display button is clicked. Then the play buttons will work.

FWIW I have left the detection of various audio formats in the code
But as I read it, there is no cast-iron guarantee that the audio formats will actually play.
Curiously - IE does not appear to play WAV.

Knowledge knows what it knows, intelligence knows when it doesn't.


Report •

#3
September 9, 2014 at 15:49:46
[solved] [solved] [solved] [solved]

Knowledge knows what it knows, intelligence knows when it doesn't.


Report •
Related Solutions


Ask Question