Is there any way to change the quality of the vide

2019-02-16 01:53发布

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

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-02-16 01:59

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.

查看更多
太酷不给撩
3楼-- · 2019-02-16 02:07

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.

查看更多
登录 后发表回答