Change Video quality in player

  1. Locate Player Activity: Open the Player activity.java file in your project.

  2. Find YouTube Extractor Method: Look for the method where the YouTubeExtractor is used. This method typically handles the extraction of YouTube video URLs.

  3. Edit YouTube Extractor Method: Within the YouTubeExtractor method, locate the section where the extraction is complete and the video URLs are obtained.

  4. Set Desired Quality: Instead of using the default quality (itag 18), specify the desired quality level. In this case, set the itag variable to 22 for higher quality.

Screenshots :  https://prnt.sc/KR3-Y1I4O7kl

Did you find this article useful?