Jump to content

[SOLVED] Can php detect connection speed and thereafter swap out elements?


webmaster1

Recommended Posts

No code to post, lads, yet. Just looking for a yay or nay at this stage:

 

Can a php script be written to make a judgement call on whether or not to display a flash animation or *jpeg based on a threshold like a visitors connection speed?

 

i.e. I only want to play flash for visitors who have a sufficient internet connection

 

 

 

 

Link to comment
Share on other sites

I suppose you could do this all inside of flash. Using AS3 it would be easy to detect how long something is taking to load, if it takes longer than X seconds you can cancel the loading and just load the image you want to display inside of Flash.

Link to comment
Share on other sites

I suppose you could do this all inside of flash. Using AS3 it would be easy to detect how long something is taking to load, if it takes longer than X seconds you can cancel the loading and just load the image you want to display inside of Flash.

 

So, first run flash detection outside of flash, if flash player then play flash and then check for load time inside AS3? Aw, I haven't adjusted to AS3 yet. I'm still trying to dodge it because I don't understand how actionscript is inserted on the timeline. No excuse though.

 

Would your solution be on par with a php approach in terms of load time. I need to cater for poor rural connections.

Link to comment
Share on other sites

Not exactly, there's really no need to test for flash compatibility because it's so widely supported these days with over 99% of users having support. Although, if you want to I suppose you could, I just don't think it's really necessary.

 

As for a PHP method the only thing that I can think of would be extremely inefficient and not practical to impose on all visitors.

Link to comment
Share on other sites

Not exactly, there's really no need to test for flash compatibility because it's so widely supported these days with over 99% of users having support. Although, if you want to I suppose you could, I just don't think it's really necessary.

 

As for a PHP method the only thing that I can think of would be extremely inefficient and not practical to impose on all visitors.

 

Understood and greatly appreciated. I'm off to finally tackle AS3 then. Cheers!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.