Reputation: 1294
Is there any way to tell when a video has been fully encoded at its highest definition via the API?
As far as I can tell, the YouTube API provides the 'state' of a video (processing, restricted, deleted, rejected and failed). However, I can't tell if the API also provides the encoding qualities of the video (240p, 360p, 720i, etc...).
Does anyone know how to get this information?
Upvotes: 4
Views: 3021
Reputation: 12985
Taken directly from the docs:
player.getPlaybackQuality():String
This function retrieves the actual video quality of the current video. It returns
undefined
if there is no current video. Possible return values arehighres
,hd1080
,hd720
,large
,medium
andsmall
.
Upvotes: 2