Skip to main content

Set Youtube Video Quality With Speecific Size In Android Application

Append the following parameter to the Youtube-URL:

                           240p: &vq=small
                          360p: &vq=medium
                          480p: &vq=large
                          720p: &vq=hd720

For instance:
                      src="http://www.youtube.com/watch?v=oDOXeO9fAg4"

                      becomes:

                      src="http://www.youtube.com/watch?v=oDOXeO9fAg4&vq=large"

Comments

Popular posts from this blog

Create Shared Prefrence Via XML In Android

Download Source Code : Click Here Output:

Sandeep Maheshwari on zee news

Network Security Exception in Android Retrofit Cleartext HTTP traffic not permitted

Create One directory in res/xml Create file in xml directory Past give below code : < network-security-config > < base-config cleartextTrafficPermitted= "true" /> < domain-config > < domain includeSubdomains= "true" >www.xyz.com</ domain >> < trust-anchors > < certificates src= "system" /> </ trust-anchors > </ domain-config > </ network-security-config > Add one Line into AndroidMenifest.xm File in application tag : android :networkSecurityConfig= "@xml/yourfilename" android :usesCleartextTraffic= "true"