mDNS 局域网通信
我看到文档中介绍使用搜索:
wx.startLocalServiceDiscovery({ // 当前手机所连的局域网下有一个 _http._tcp. 类型的服务
serviceType: '_http._tcp.',
success: console.log,
fail: console.log
})
我想问下 serviceType 目前只支持这一种吗?
不支持像DLNA 这样的 serviceType 吗
< serviceList > < service > < serviceType >urn:schemas-upnp-org:service:AVTransport:1</ serviceType > < serviceId >urn:upnp-org:serviceId:AVTransport</ serviceId > < SCPDURL >/AVTransport//scpd.xml</ SCPDURL > < controlURL >/AVTransport//control.xml</ controlURL > < eventSubURL >/AVTransport//event.xml</ eventSubURL > </ service > < service > < serviceType >urn:schemas-upnp-org:service:ConnectionManager:1</ serviceType > < serviceId >urn:upnp-org:serviceId:ConnectionManager</ serviceId > < SCPDURL >/ConnectionManager//scpd.xml</ SCPDURL > < controlURL >/ConnectionManager//control.xml</ controlURL > < eventSubURL >/ConnectionManager//event.xml</ eventSubURL > </ service > < service > < serviceType >urn:schemas-upnp-org:service:RenderingControl:1</ serviceType > < serviceId >urn:upnp-org:serviceId:RenderingControl</ serviceId > < SCPDURL >/RenderingControl//scpd.xml</ SCPDURL > < controlURL >/RenderingControl//control.xml</ controlURL > < eventSubURL >/RenderingControl//event.xml</ eventSubURL > </ service > </ serviceList > |