三星智能电视唯一设备标识符 [英] Samsung smart tv unique device identifier

查看:326
本文介绍了三星智能电视唯一设备标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以编程方式从三星智能电视设备获取某种独特的设备标识符。

I'm trying to programmatically obtain some kind of unique device identifier from Samsung smart TV device.

我在文档中找到的最接近的是 GetDUID 函数在 SAMSUNG-INFOLINK-NNAVI 对象上,但它需要提供mac地址,这让我感到困惑的是这个函数的用途是什么。

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.

推荐答案

相应于 SamsungDForum 获取 DUID (设备唯一ID)是:

Accordingly to SamsungDForum the way to get the DUID ("Device Unique ID") is:

在index.html中添加:

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>

在Javascript中的某个地方

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.

编辑:请检查 @ IvanSolntsev 回答如果您正在寻找获取设备ESN(电子序列号)的方法。

edit: Please check @IvanSolntsev answer if you're looking for a way to get the device ESN (Electronic Serial Number).

edit2:更新了DUID官方文档链接。

edit2: Updated DUID official documentation link.

这篇关于三星智能电视唯一设备标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆