0

Is there any way to automatically detect if a user can handle a higher video resolution?

Right now I'm setting the user playback quality to 'default' in onPlayerReady. I can check if there is a higher resolution available using getAvailableQualityLevels()-1 in the onPlayerStateChange but I don't know if changing the resolution will cause issues.

1 Answers1

0

It seems there is no direct way to do it. But as this previous post suggests, you can do it using two ways:

  1. Use the javascript method in this post.
  2. Use the buffered video size as a quality estimate

Over the suggested methods my suggestion is to make it a slow process more like a kalman filter. Hope it helps.

Community
  • 1
  • 1
PseudoAj
  • 5,234
  • 2
  • 17
  • 37