如何检测 Sony Bravia 互联网浏览器?
我想编写索尼 Bravia 电视互联网浏览器的检测器。我知道它是 Opera 浏览器,但我不知道到底有什么属性可以检测它?有人知道 Opera 版本是什么吗?或者我怎么知道它是 Sony TV 浏览器? 多谢
I'd like to write detector of Sony Bravia TV internet browser. I knew it's Opera browser but I don't know exactly what's properties to detect it ? Anyone know what's Opera version or how can I know it's Sony TV browser ?
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检测方法取决于您何时在服务器端执行此操作(在这种情况下,您必须查看电视中的浏览器发送的额外标头)或在客户端 JavaScript 上执行此操作,在这种情况下,您必须查看
navigator.userAgent
属性。至于额外的标头,我能找到的唯一信息是这个示例标头:
正如您在上面看到的,tv 使用额外的 X-AV-Physical-Unit-Info 和 X-AV-Client-info 标头来标识
自己检测电视浏览器,我发现这个帖子(指的是 google tv,但仍然...),其中您可以在两台设备(包括 Sony Bravia)上看到 navigator.userAgent 属性的内容。
Detection method depends on whenever you're doing it on a server side (in which case you have to look at the extra headers that browser in tv send) or on a client side javascript, in which case you have to look at the
navigator.userAgent
property.As to extra headers, the only information I could find is this example headers:
As you can see above, tv identifies itself with extra X-AV-Physical-Unit-Info and X-AV-Client-info headers
As to client-side detection of tv browser, I found this post (refering to google tv but still...) in which you can see the content of a navigator.userAgent property on two devices, including Sony Bravia.