Permlink Replies: 18 - Pages: 2 [ Previous | 1 2 ] - Last Post: 30 Mar 20, 16:39 Last Post By: JeffTucker
karlmistelberger

Posts: 178
Registered: 5-Dec-2013
Re: Keep it simple
Posted: 14 Apr 19, 20:18   in response to: MarkusD in response to: MarkusD
  Click to reply to this thread Reply
MarkusD wrote:
jGromit wrote:
MarkusD wrote:
How does YouTube detect the users bandwidth to play a video with the resolution which fits best? Is that technique they use a secret?

When you figure out how they're doing it, let us know. But are you sure it's bandwidth they're detecting, and not just screen size?

Good question. I just "downgraded" my 1920x1200 tablet to 800x600 and watched a YT video, the automatic quality showed up in 480p, watching the video with my 40" screen/4K it showed up in 720p, but not in the highest quality 1080p. So, yes, YT seems to be not that clever to detect screen size or even bandwidth.

Tried https://www.youtube.com/watch?v=mjjbq_U2kgw using Firefox and enabled "statistics for nerds". Connection speed is monitored continually and current resolution adopts accordingly within a few seconds until optimal resolution is reached. Your observations may differ.
JeffTucker

Posts: 8,237
Registered: 31-Jan-2006
Re: Keep it simple
Posted: 14 Apr 19, 20:27   in response to: RobM in response to: RobM
  Click to reply to this thread Reply
RobM wrote:
Why not, they don’t all have divine status/knowledge, they’re just very opinionated. ;)

Speak for yourself.
JeffTucker

Posts: 8,237
Registered: 31-Jan-2006
Re: Keep it simple
Posted: 14 Apr 19, 20:38   in response to: karlmistelberger in response to: karlmistelberger
  Click to reply to this thread Reply
karlmistelberger wrote:
Tried https://www.youtube.com/watch?v=mjjbq_U2kgw using Firefox and enabled "statistics for nerds". Connection speed is monitored continually and current resolution adopts accordingly within a few seconds until optimal resolution is reached. Your observations may differ.

That brings up another factor to consider. I suspect that whatever YT is doing, they're doing it server-side. jAlbum albums can't do that - they're all purely client-side.

Even if you could do something client-side with Javascript, it could be only a quick snapshot upon page loading. Once it had determined that your connection speed was X, and had decided to cough up the mydog-small.jpg instead of the mydog-large.jpg file, it would then be too late to do anything about it later. You wouldn't want it repeatedly testing your connection speed and redrawing the page with different versions of the images until things settled down. Finally, connection speed is generally not linear, so that initial snapshot could be wildly wrong (in fact, almost certainly would be wrong).
JeffTucker

Posts: 8,237
Registered: 31-Jan-2006
Re: Keep it simple
Posted: 30 Mar 20, 16:39   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
jGromit wrote:
Over the years, I've noticed a tendency among some album creators to, shall we say, "over engineer" their presentations. They want to load up the album with every bell and whistle available.

Still some users who haven't gotten this message. ;)

Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums