VideoStreamInfoExtension<T extends VideoStreamInfo> extension

Extensions for Iterables of VideoStreamInfo

on

Methods

getAllVideoQualities() Set<VideoQuality>
Gets all video qualities available in a collection of video streams.
getAllVideoQualitiesLabel() Set<String>
Gets video quality labels of all streams available in a collection of video streams. This could be longer than getAllVideoQualities since this gives also all the different framerate values.
sortByVideoQuality() List<T>
Gets the video streams sorted by highest video quality (then by framerate) in ascending order. This returns new list without editing the original list.
withHighestBitrate() → T
Gets the stream with best video quality.