简体   繁体   English

使用 URL 通过电视浏览器获取智能电视 UID,然后将 UID 传递给服务器处理并返回内容显示

[英]use URL to get smart TV UID via TV browser, then pass UID to server for processing and return content to display

not sure if this had been done before, but basically i had a project that requires me to display some custom content via URL onto a display device like a display screen using a mini pc.不确定这是否以前做过,但基本上我有一个项目需要我通过 URL 在显示设备上显示一些自定义内容,比如使用迷你电脑的显示屏。 we have a cms on our server and the device is on the client's site, the flow is to get a UID of the device, register and validate it in the cms, then display the content on the client's device.我们的服务器上有一个 cms,并且设备在客户端的站点上,流程是获取设备的 UID,在 cms 中注册并验证它,然后在客户端的设备上显示内容。

previous implementation was installing php and hosting onto the mini pc, run the URL on the mini pc browser and use php to retrieve the UID and pass it to the server to be registered and validated in the cms.之前的实现是安装 php 并托管到迷你电脑上,在迷你电脑浏览器上运行 URL 并使用 php 检索 UID 并将其注册并传递给服务器。 however this process is too troublesome and time consuming because of setting up php and installing hosting on the mini pc, especially if the client wants to have a lot of display devices.然而这个过程太麻烦和耗时,因为设置 php 并在迷你电脑上安装主机,特别是如果客户想要有很多显示设备。

so the new requirement is to just run a url on the device browser, and it will retrieve the device UID and pass to cms.所以新的要求是在设备浏览器上运行 url,它会检索设备 UID 并传递给 cms。 this is much easier and more scalable as future clients may use like smart tv instead of display screen with mini pc, so there's no need to install php and hosting( im not even sure if its possible to do that onto a smart tv).这更容易且更具可扩展性,因为未来的客户可能会使用智能电视而不是带有迷你电脑的显示屏,因此无需安装 php 和托管(我什至不确定是否可以在智能电视上做到这一点)。

however from my research so far there's no real solution to implement this flow, either because im not searching correctly for what i need, or it really is not possible and a workaround is needed, although my network engineer colleague insists that it can be done.然而,到目前为止,从我的研究来看,没有真正的解决方案来实现这个流程,要么是因为我没有正确搜索我需要的东西,要么真的不可能,需要一种解决方法,尽管我的网络工程师同事坚持认为可以做到。 and since there's plenty of smart tv brands, i'd probably have to build my own custom APIs (mentioned by my colleague) or something and hopefully its not too intensive/difficult.并且由于有很多智能电视品牌,我可能不得不构建自己的自定义 API(我的同事提到)或其他东西,希望它不会太密集/困难。

project is due in one month and im cracking my head, appreciate any help or suggestion provided.项目将在一个月内到期,我很头疼,感谢提供的任何帮助或建议。

ps: im building my cms using codeigniter 3 ps:我正在使用 codeigniter 3 构建我的 cms

If this is a Tizen based Smart TV then you can simply fetch UID using webapis <script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script> and then simply calling webapis.productinfo.getDuid() by this you will get the UID then you can pass it on to any function to verify it from CMS.如果这是基于 Tizen 的智能电视,那么您可以简单地使用 webapis <script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>获取 UID,然后简单地调用webapis.productinfo.getDuid()通过这个您将获得 UID,然后您可以将其传递给任何 function 以从 CMS 进行验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM