我想在网络上搜索我的媒体播放器。我认为它是使用 SSDP m-search 完成的吗?
此外,当我打开设备时,它会广播其可用性吗?我该如何收听该广播,以及如何发送移动搜索查询?
最佳答案
I want to search for my media player on the network. Am I right in thinking it is done using SSDP m-search?
是的。
Also, when I switch the device on, will it broadcast its availability?
是的
How do I go about listening for that broadcast, and how do I send the m-search query?
您需要绑定(bind)到 UDP 多播组 239.255.255.250:1900
。 M-SEARCH
查询被发送到同一地址。
关于upnp - 使用 SSDP 搜索 UPnP 设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5904323/