问题
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