Skip to content

Commit

Permalink
Only use 'isUrl' resoults, the others could be more complicated DASH/…
Browse files Browse the repository at this point in the history
…streaming contents
  • Loading branch information
gzsombor committed Aug 12, 2023
1 parent e3563d6 commit 816908e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private VideoStreamWithResolution pick(Collection<VideoStream> streams) {
VideoStreamWithResolution best = null;
for (VideoStream stream : streams) {
VideoStreamWithResolution videoStream = new VideoStreamWithResolution(stream);
if (isAllowed(videoStream.resolution) && isAllowedVideoFormat(videoStream.videoStream.getFormat())) {
if (isAllowed(videoStream.resolution) && isAllowedVideoFormat(videoStream.videoStream.getFormat()) && stream.isUrl()) {
switch (videoQuality) {
case BEST_QUALITY:
if (videoStream.isBetterQualityThan(best)) {
Expand Down

0 comments on commit 816908e

Please sign in to comment.