如何获取 Roku 的设备地理位置?
How to get Roku's device geolocation?
我需要传送有地理位置限制的内容,所以我需要确切地知道设备的物理位置。
根据文档,有两种方法 GetCurrentLocale() 和
GetCountryCode(),但是文档中提到 none 这个方法实际上可以用来获取物理位置..
GetCurrentLocale - Returns a string representing the current locale based on the user's language setting ...
GetCountryCode - This does not necessarily match the physical location of the device ...
所以我的问题是使用这些方法中的任何一种来应用地理定位限制是否安全?
不,您无法 "exactly what's the physical location" 了解 Roku。它没有 GPS,也不基于 WiFi SSID 进行位置近似(这将是隐私禁忌)。
您找到的 API return 代码基于播放器设置并且不可靠,因为我可以在新设置期间重置我的播放器并更改国家/地区。视频服务所做的是通过 IP 地址进行地理定位,有多种外部服务可以提供帮助。
我需要传送有地理位置限制的内容,所以我需要确切地知道设备的物理位置。
根据文档,有两种方法 GetCurrentLocale() 和 GetCountryCode(),但是文档中提到 none 这个方法实际上可以用来获取物理位置..
GetCurrentLocale - Returns a string representing the current locale based on the user's language setting ...
GetCountryCode - This does not necessarily match the physical location of the device ...
所以我的问题是使用这些方法中的任何一种来应用地理定位限制是否安全?
不,您无法 "exactly what's the physical location" 了解 Roku。它没有 GPS,也不基于 WiFi SSID 进行位置近似(这将是隐私禁忌)。
您找到的 API return 代码基于播放器设置并且不可靠,因为我可以在新设置期间重置我的播放器并更改国家/地区。视频服务所做的是通过 IP 地址进行地理定位,有多种外部服务可以提供帮助。