Is there any way to change the quality of the video?

倖福魔咒の 提交于 2019-12-09 01:45:34

问题


I am looking at the android youtube API docs and the sample applications. I cannot find any API that describes loading a video and setting its quality (to low or high).

Is there a way to change the quality of a video?

Android-youtube-api


回答1:


I'm looking for the same thing ;-)

Unfortunately, there is no method in the Android YT API to do that...

There is a function in the Youtube IFrame API See: Playback Quality in IFrame Player

So the workaround is to use an IFrame associated with an Android WebView and then, control the video quality.




回答2:


To my understanding Youtube implemented a policy to control quality based on your bandwidth and possibly screen size. In the now deprecated older web based API it was possibly to list quality encodings and stream the desired version directly. But this is no longer an option.



来源:https://stackoverflow.com/questions/18547888/is-there-any-way-to-change-the-quality-of-the-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!