Testing for Flash/iPhone/iPad

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
   I have a site that plays audio samples, iPhones and iPads don't
support Flash so I'd like to fall back to the <audio> element.

   Ideally I'd like to test for Flash and use an HTML5 player (audio
element with a playlist).


   Is there a good way to test for Flash?

   How about testing for iPhones and iPads? Something in the User Agent?
How does an iPad identify?

   How to detect HTML5 audio support? I just ran across this:

http://www.modernizr.com /

That has a tester for audio.

   I like that HTML5 has fairly wide support now. Although it appears FF
on a Mac does not support audio. And, I believe, anything less than IE9.

   I wish the players were a just a little less primitive.


Re: Testing for Flash/iPhone/iPad

On Mon, 30 Jan 2012 20:40:11 -0500, j wrote in alt.www.webmaster:

Quoted text here. Click to load it

There are too many devices/user-agents to check for. It's considered
best to simply use one player that handles both for fallback.

I refuse to let common sense cloud my judgment.

Re: Testing for Flash/iPhone/iPad

On Mon, 30 Jan 2012 17:46:13 -0800, idle wrote in alt.www.webmaster:

Quoted text here. Click to load it

Scuuze me. I read video instead of just audio ;) Long day.

that's my story and i'm sticking to it.

Re: Testing for Flash/iPhone/iPad

On Monday, January 30, 2012 8:40:11 PM UTC-5, j wrote:
Quoted text here. Click to load it

For the most part, I check for screen resolution with Javascript, then load a
mobile-specific CSS file when the resolution is less than 700. This will still
catch users with a screen resolution of 640x480, but for me this number is

Then, still using Javascript, I set a cookie. This is just a mock-up for here,
but it's something like:

// Begin
function setCookie(c_name, value, expiredays) {
  var exdate = new Date();

  exdate.setDate(exdate.getDate() + expiredays);
  document.cookie = c_name + "=" + escape(value) + "; path=/" + ((expiredays ==
null) ? "" : "; expires=" + exdate.toGMTString());

var browser_type = "<?php echo $_COOKIE['browser_type']; ?>";

if ((!browser_type) &&
    (screen.width < 700)) {
      browser_type = "mobile";
      setCookie('browser_type', 'mobile', 365);
// End

This way, you can test for either the Javascript variable or cookie

Quoted text here. Click to load it

You and me both, brother. Dealing with mobile devices has been my biggest pain

Re: Testing for Flash/iPhone/iPad

Can any one tell me how flash effects page rank negate.



Re: Testing for Flash/iPhone/iPad

On Thu, 9 Feb 2012 08:40:15 -0800 (PST), painter put finger to keyboard and

Quoted text here. Click to load it

Assuming that is a question, and assuming that it's intended to be some
kind of query about how using Flash on your own site affects its page rank
at Google, the answer is that it doesn't affect it at all because page rank
is based on other sites liking to yours rather than the content of your
own. However, excessive or poor use of Flash will reduce your site's
visibility in Google as Google doesn't index Flash.

Quoted text here. Click to load it

Apropos nothing much in particular, why is it that the "Protected by
Copyscape" widget only ever seems to be used on sites that nobody in their
right mind would ever want to copy?

Blog: http://mark.goodge.co.uk
Stuff: http://www.good-stuff.co.uk

Re: Testing for Flash/iPhone/iPad

Mark Goodge wrote:

Quoted text here. Click to load it

Eww. There are even <MARQUEE>s on the page!  Small blue /italics/ are
hard to read.  Press Control-Plus just once and the whole design falls
apart, too.  You're right. Who would copy it?

   -Sometimes, blunt is best

Re: Testing for Flash/iPhone/iPad

"Mark Goodge"

Quoted text here. Click to load it

Archaic practice.  These days EVERYTHING is under copyright the moment it is
fixed in any media.  Only those that are registered are fully (as in you pay
big $$) protected.

Our work product has code inside that 'phone home' and gets a demand letter
from our IPR attorney.

Re: Testing for Flash/iPhone/iPad

On 2012-02-09, painter wrote:
Quoted text here. Click to load it

   I'd first worry about the 104 HTML errors and a page that looks
   like this: <http://b.cfaj.ca/lakewoodpainters.jpg

   Chris F.A. Johnson                          <http://cfajohnson.com
   Author:                                     =======================
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

Site Timeline