Reputation: 1
I have included the YouTube API in an app , I want to know the resolution of the video at any point of time when it is running in auto mode . What methods do I need to include?
Upvotes: 0
Views: 329
Reputation: 4950
You can get the resolution of the video by using fileDetails
, The fileDetails
object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.
The fileDetails object will only be returned if the processingDetails.fileAvailability property has a value of available.
Note: Only the owner can get those properties
Upvotes: 1