检测iOS设备是否可以播放高清视频
我了解到,第二代 iPod Touch 无法播放某些类型的视频(尤其是高清视频)即使其操作系统是最新的。我仍在尝试追踪我将使用的第三方流的视频设置,但我已经在两台 4.2.1 的第二代 Touch 上看到过这种情况,无法播放视频。
有没有办法从 Objective C 或 JavaScript 检测主机设备是否能够播放给定类型的视频?高清视频?
编辑:我修改了我的问题。我现在非常确定问题是高清(或者可能是宽高比)。问题是我不知道如何检测硬件版本是什么(第一代、第二代或第三代)。我可以检测操作系统版本,但这不是问题。
I've read that 2nd generation iPod Touches are unable to play some types of video (particularly HD) even if its OS is up-to-date. I'm still trying to track down the video settings of a third-party stream I will be using, but I've already seen this with two 2nd gen Touches with 4.2.1 unable to play video.
Is there a way to detect from Objective C or JavaScript whether the host device is able to play a given type of video? HD video?
EDIT: I've revised my question. I am pretty certain at this point that the problem is HD (or maybe aspect ratio). The problem is that I don't know how to detect what the hardware version is (1st, 2nd or 3rd gen). I can detect the OS version, but it's not the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Modernizr( http://www.modernizr.com/ ) 可能可以帮助你
Modernizr( http://www.modernizr.com/ ) might be able to help you with that