javascript - Youtube Api Auto Change Video Quality -


is there way automatically detect if user can handle higher video resolution?

right i'm setting user playback quality 'default' in onplayerready. can check if there higher resolution available using getavailablequalitylevels()-1 in onplayerstatechange don't know if changing resolution cause issues.

it seems there no direct way it. previous post suggests, can using 2 ways:

  1. use javascript method in post.
  2. use buffered video size quality estimate

over suggested methods suggestion make slow process more kalman filter. hope helps.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -