Link to home
Start Free TrialLog in
Avatar of REA_ANDREW
REA_ANDREWFlag for United Kingdom of Great Britain and Northern Ireland

asked on

YouTube embedded videos loading slowly

Hi,

We allow people on one of our sites to post their embedded you tube videos thus displaying them on a site.  One the homepgae where we display various peoples videos, so displaying ten at once, we have found that our server is really taking a long time to load these.

Is this our server why the you tube videos take an age to load?  This has been commented by people with fast broadband speeds, so it is the server and not a client issue. If we find the same video on you tube it is fine.

Andrew
Avatar of cmhunty
cmhunty

How are the users displaying videos on your site? Are they just using the links given to them by YouTube? Is your server actually hosting anything? If not, the delay is more likely to be on the YouTube or client side.

Chris
Avatar of REA_ANDREW

ASKER

They simply paste in the object code provided by YouTube next to each video.  We store this in the database and simply render it at runtime.

Andrew
SOLUTION
Avatar of cmhunty
cmhunty

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm no expert, but ... doesn't each instance sets up a new application thread to shockwave. I think shockwave uses tunneling to establish the video stream. As each successive instance starts, that instance begins "stepping" on prior instance's packette requests which cause a re-send. As the quantity of re-sends escalate, the need to re-send escalates, too. Thus a snowball effect is manifested when your page tries to show multiple. Each instance is competing for the same resource, and STEPPING on each other, and the more they step on the more they resend. Geometrical degradation.

Try fewer video's on the same page. You may find a sweet spot where the tradeoff isn't so apparent. Good Luck!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cheers for your time guys!

Appreciate it.

volking: Excellent explanation!!!

Andrew