YouTube provides streams in two different formats, progressive streams that provide video and audio in a single file, and adaptive streams that provide video and audio in separate files.
Currently YouTube clients only provide progressive streams in 360p resolution.
This PR adds an optional parameter to get_highest_resolution() and get_lowest_resolution(), which allows you to get adaptive stream.
Example:
If I want the highest quality adaptive video, I just use:
Added optional parameter to obtain streams #128
YouTube provides streams in two different formats, progressive streams that provide video and audio in a single file, and adaptive streams that provide video and audio in separate files.
Currently YouTube clients only provide progressive streams in 360p resolution.
This PR adds an optional parameter to
get_highest_resolution()
andget_lowest_resolution()
, which allows you to get adaptive stream.Example:
If I want the highest quality adaptive video, I just use:
Observe that if the
progressive
value is not passed, it will return the progressive stream: