问题描述
或者只有在 iOS 上使用官方 YouTube 应用才能获得高质量?
我试图使用下一个 iOS 库在我的应用中播放 YouTube,但它总是选择 medium
质量并且无法更改
更新
在真实设备(iPhone 6s)上测试 - 同样的问题,只有官方 YouTube 应用允许设置正常质量.
Chrome 浏览器也不允许更改质量
更新 2
var quality = player.getAvailableQualityLevels();
- 它返回 medium, auto
以获得全高清视频
没有解决方案.
Apple 在任何地方都用自己的播放器替换了 YouTube 播放器.他们将质量限制为 360p.虽然他们删除了广告.优质仅在 Google 的 YouTube 官方应用中提供
Or good quality is only possible with official YouTube app on iOS?
I was trying to use the next iOS libraries to play YouTube in my app but it always chooses medium
quality and it can't be changed
https://github.com/youtube/youtube-ios-player-helper
https://github.com/gilesvangruisen/Swift-YouTube-Player
YouTube IFrame API methods don't change anything:
player.setPlaybackQuality(suggestedQuality:String):Void
loadVideoById({'videoId': 'bHQqvYy5KYo', 'suggestedQuality': 'large'});
Safari browser from iPhone Simulator XR (iOS 12.2):
I'm trying to change quality for a video which definitely has full hd quality but 360p as maximum is only available when I test in Safari app:
Update
Tested on real device (iPhone 6s) - the same problem, only official YouTube app allows to set normal quality.
Chrome Browser also doesn't allow to change quality
Update 2
var qualities = player.getAvailableQualityLevels();
- it returns medium, auto
for full hd videos
There is no solution.
Apple replaces YouTube player with their own everywhere. They limit quality to 360p. Though they remove ads. Good quality is only available in YouTube official app from Google
这篇关于我们可以使用 Safari 浏览器或 WKWebView 获得正常质量的 YouTube 视频吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!