【发布时间】:2013-11-16 07:28:41
【问题描述】:
通过User-Agent 标头检测设备是否为 SmartTV 设备的任何常见方法/模式?
可能在搜索TV 什么的?
请告知任何其他值得检测的电视相关平台?
UPD:根据这个http://user-agent-string.info/?Fuas=Mozilla%2F5.0+%28SmartHub%3B+SMART-TV%3B+U%3B+Linux%2FSmartTV%29+AppleWebKit%2F531.2%2B+%28KHTML%2C+like+Gecko%29+WebBrowser%2F1.0+SmartTV+Safari%2F531.2%2B&test=8066&action=analyze SMART-TV 是它的签名,但是...
【问题讨论】:
-
你试过什么?
-
@LiamSorsby,目前,根据user-agent-string.info/list-of-ua/device-detail?device=Smart+TV,我正在使用这个
smart-tv|smarttv|googletv|appletv|hbbtv|pov_tv|netcast.tv -
您尝试使用哪种语言检测用户代理?你用了什么代码?
-
@LiamSorsby,我使用的是
php,但这绝对没关系,恕我直言。 -
看看这个 git gist.github.com/jewelsjacobs/5503790
标签: user-agent browser-detection smart-tv