0

I am redoing a 10 year old website which sells land plots.

I am thinking of a rather large image-banner (scenic foto) which would occupy most of the screen.

Now, depending on the internet speed of the client:

A. is there a way of measuring his particular internet bandwidth (using php or something, I do not know)?

B. if the image loading speed/internet bandwidth is good, could one replace the image with a short video, which would have the same first take exactly the same as the image, i.e. depending on the internet connection either an image only would be displayed, or the image would be replaced by a video...

Any suggestions?

2
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Commented Jul 4 at 2:45
  • For (A) You need to download a test file of 1mb and check the time before download starts and time after download ends. Formula is dl_speed = (time_end - time_start)... For (B) You can use Javascript to define a video object and image object. after knowing which one must be added to the page, you first give the image/video a src to load, then add it to page using appendChild. Try something and ask a new question about that attempt if it gives problems. Commented Jul 6 at 17:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.