Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-22 Thread natalia Vikhtinskaya
Thank you very much for the help. As I understand I use correct code. I don't use different pages for video and flash. I did two blocks on the page. div id=video style=display:none video id=video width=100% height=100% poster=screenshot.png controls=controls preload=none source

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-22 Thread James Merrill
Do not sniff for user agents! What will your code do when someone uses the next iPhone? Or if they have opera installed on their amazon fire? You can not predict what user agent strings will look like in the future, and are bound to serve up the wrong content to the wrong people. This problem has

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-22 Thread natalia Vikhtinskaya
Thank you for this information. What if I need if support flash{ //code for flash } else { //code for video } How to solve that? 2014-07-22 17:34 GMT+04:00 James Merrill jmerri...@gmail.com: Do not sniff for user agents! What will your code do when someone uses the next iPhone? Or if they

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-22 Thread Karl DeSaulniers
Well, it may not be the best solution, but technically my code is not sniffing the userAgent the way your implying, it's sniffing for a device name in the userAgent string. Doesn't matter what version of iPhone you have because the name iPhone will always be in the userAgent string for a web