Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
goudalf
Newbie

mDNS resolution on the Roku

Hello,

I'm experimenting with the Roku SDK, and one of the needs I have for my experiments is to have my Roku app being able to find some other devices on my network using mDNS.

I've already tried to use a .local hostname in my code, trying to reach a device which responds to mDNS queries for its .local name but it looks like the resolver of the Roku platform doesn't support that.

So, alternatively, I tried to find some class/method in the SDK which would allow me to perform some kind of mDNS queries.

In the BrightScript documentation, I've found a class called "roNetworkDiscovery" which is supposed to be able to perform mDNS service lookup, not hostname, but I could also manage with that.

However when I try to do CreateObject("roNetworkDiscovery") I am getting the error:

BRIGHTSCRIPT: ERROR: Runtime: unknown classname "roNetworkDiscovery"
 
I'm not sure what I am doing wrong. Any idea ?
 
Thanks
 
Tags (1)
0 Kudos
1 REPLY 1
renojim
Community Streaming Expert

Re: mDNS resolution on the Roku

You probably found that in BrightSign documentation.  While they use BrightScript like Roku devices, they don't both support the same components.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!