sarbagyastha / youtube_player

A flutter plugin to play Youtube Videos without API Key in range of Quality(144p, 240p,360p,480p,720p and 1080p).
MIT License
120 stars 45 forks source link

Could you add 144p resolution support? #27

Closed alexjuniodev closed 5 years ago

alexjuniodev commented 5 years ago

I think you should change only

enum YoutubeQuality { LOWEST, LOW, MEDIUM, HIGH, HD, FHD }

AND

  String qualityMapping(YoutubeQuality quality) {
    switch (quality) {
      case YoutubeQuality.LOWEST:
        return '144p';
      case YoutubeQuality.LOW:
        return '240p';
      case YoutubeQuality.MEDIUM:
        return '360p';
      case YoutubeQuality.HIGH:
        return '480p';
      case YoutubeQuality.HD:
        return '720p';
      case YoutubeQuality.FHD:
        return '1080p';
      default:
        return "Invalid Quality";
    }
  }
sarbagyastha commented 5 years ago

@alexjuniodev, Version 3.2.2 adds supports for 144p playback. 🍻