admin管理员组文章数量:1291083
I'm trying to programmatically obtain some kind of unique device identifier from Samsung smart TV device.
The closest thing i found in documentation is GetDUID
function on SAMSUNG-INFOLINK-NNAVI
object, but it requires to provide mac address which confuses me as to what purpose of this function really is.
My question: how to obtain for example device serial number or other information that uniquely identifies it.
I'm trying to programmatically obtain some kind of unique device identifier from Samsung smart TV device.
The closest thing i found in documentation is GetDUID
function on SAMSUNG-INFOLINK-NNAVI
object, but it requires to provide mac address which confuses me as to what purpose of this function really is.
My question: how to obtain for example device serial number or other information that uniquely identifies it.
Share Improve this question asked Aug 20, 2012 at 13:38 WojtekTWojtekT 4,77526 silver badges37 bronze badges 1- Wow. This on the one hand is a very good question, on the other hand, borders the too localized. – Madara's Ghost Commented Aug 22, 2012 at 13:43
2 Answers
Reset to default 7 +100Accordingly to SamsungDForum the way to get the DUID ("Device Unique ID") is:
In index.html add:
<object id='pluginNetwork' border=0 classid='clsid:SAMSUNG-INFOLINK-NETWORK'></object>
<object id='pluginObjectNNavi' border=0 classid='clsid:SAMSUNG-INFOLINK-NNAVI'></object>
And somewhere in your Javascriptː
var networkPlugin = document.getElementById('pluginNetwork');
var nnaviPlugin = document.getElementById('pluginObjectNNavi');
var deviceId = nnaviPlugin.GetDUID(networkPlugin.GetHWaddr());
I know that you've seen this, but I honestly don't think that there's other solution.
edit: Please check @IvanSolntsev answer if you're looking for a way to get the device ESN (Electronic Serial Number).
edit2: Updated DUID official documentation link.
You could use GetESN function
in html:
<object id='pluginExternal' border=0 classid='clsid:SAMSUNG-INFOLINK-EXTERNALWIDGETINTERFACE'></object>
in javascript:
var ExternalWidgetInterface = document.getElementById('pluginExternal');
var sn = ExternalWidgetInterface.GetESN("NFLX");
本文标签: javascriptSamsung smart tv unique device identifierStack Overflow
版权声明:本文标题:javascript - Samsung smart tv unique device identifier - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741502795a2382143.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论