|
|
|
|
|
by crazygringo
4623 days ago
|
|
Sorry, you're wrong. I hate to be rude about it, but I'm really getting tired of people, who don't know any better, acting like feature detection is always the way to go. Feature detection simply doesn't work it many cases, and there's no alternative. Especially with new stuff like audio, sometimes function calls need to be called in different orders, have subtly different behaviors, etc., and user-agent sniffing is literally the only thing you can do. When I programmed an HTML5 music player, calling .load() before .play() on one platform was necessary, and on another it would crash the Android browser IIRC. No choice but to use user-agent sniffing -- I probably had 20 different things that depended not just on the browser, but on the browser version. I'd love if we could use just feature detection. Unfortunately, we have to program in the real world. |
|
Assume good faith.