3

As we know, some android devices can support flash and HTML5. However, not all android devices support HTML5. Can we have some program code like JavaScript to detect whether particular android devices support HTML5?

I'm mostly interested in capabilities concerning video playback.

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
user3056561
  • 79
  • 1
  • 8

1 Answers1

2

HTML5 is an ubrella for many different unrelated technologies. These can be individually supported (or not supported) by any browser. The way to go is feature detection to check if the needed technology is present.

vbence
  • 20,084
  • 9
  • 69
  • 118
  • Sorry, some users do not upgrade their android devices from flash to HTML5. If the video only support HTML5, these users would not view the video. – user3056561 Dec 06 '13 at 02:21
  • In case of *web video* the fallback is a given: If you start with a flash player and put your `video` tag *around* the `object` tag representing the flash player the browser will automatically decide which one to use. (If it is capable of HTML5 video then it will be used, the flash will be loaded otherwise). – vbence Dec 06 '13 at 08:09