简体   繁体   English

尝试从 Cordova 插件调用 SSDP 函数

[英]Trying to call SSDP functions from Cordova plugin

I am trying to test SSDP implementation the exists in the following Cordova plugin: https://github.com/fraunhoferfokus/cordova-plugin-hbbtv/tree/master/src/android/ssdp我正在尝试测试以下 Cordova 插件中存在的 SSDP 实现: https : //github.com/fraunhoferfokus/cordova-plugin-hbbtv/tree/master/src/android/ssdp

I have built an SSDP service on my laptop using Node.js which I successfully discovered on another laptop.我使用 Node.js 在我的笔记本电脑上构建了一个 SSDP 服务,我在另一台笔记本电脑上成功发现了它。 Now I need to discover that service on my Android mobile and I "have to" use this Cordova plugin because I need to test it but its documentation only about Hbbtv, so I am not sure how to call its SSDP functions in my Cordova js Webview do I need to add something to the JavaScript API file.现在我需要在我的 Android 手机上发现该服务,我“必须”使用这个 Cordova 插件,因为我需要测试它,但它的文档只关于 Hbbtv,所以我不确定如何在我的 Cordova js Webview 中调用它的 SSDP 函数我需要在 JavaScript API 文件中添加一些东西吗?

Can someone show me?有人可以给我看吗?

In case someone was facing the same problem I was, here is what I did to solve it.如果有人面临与我相同的问题,这就是我为解决它所做的。

Basically, I called DiscoveredTerminal() from HbbTV.js and it gave me the number of discovered devices.基本上,我从HbbTV.js调用了DiscoveredTerminal() ,它给了我发现的设备数量。

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

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