Samsung smart tv unique device identifier

十年热恋 提交于 2019-12-03 15:24:36
Rui Posse

Accordingly 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.

Ivan Solntsev

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");
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!