Closed Bug 1222306 Opened 9 years ago Closed 9 years ago

[TV 2.5] Expose remote control service via mDNS

Categories

(Firefox OS Graveyard :: Gaia::TV::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.6+)

RESOLVED DUPLICATE of bug 1197749
blocking-b2g 2.6+

People

(Reporter: lchang, Assigned: etsai)

References

Details

(Whiteboard: [ft:conndevices])

Attachments

(1 file)

To provide a seamless experience, we would like to expose remote control service via mDNS.
Whiteboard: [ft:conndevices]
Blocks: TV_FxOS2.5
No longer blocks: conn_priority
Whiteboard: [ft:conndevices] → [ft:conndevices][partner-blocker][partner-cherry-pick]
feature-b2g: --- → 2.5+
We can use |nsIDNSServiceDiscovery.registerService()|[1] to broadcast the control page via mDNS. DNS-SD already defined a "http" service type for it [2]. Here is the pseudo code for it. let serviceInfo = Cc["@mozilla.org/toolkit/components/mdnsresponder/dns-info;1"].createInstance(Ci.nsIDNSServiceInfo); serviceInfo.serviceType = "_http._tcp"; serviceInfo.serviceName = Services.prefs.getCharPref("dom.presentation.device.name"); serviceInfo.port = ... //the port number of http server let attributes = Cc["@mozilla.org/hash-property-bag;1"].createInstance(Ci.nsIWritablePropertyBag2); attributes.setPropertyAsACString("path", "/index.html"); serviceInfo.attributes = attributes; let mdns = Cc["@mozilla.org/toolkit/components/mdnsresponder/dns-sd;1"].getService(Ci.nsIDNSServiceDiscovery); mdns.registerService(serviceInfo, some_listener); [1] https://dxr.mozilla.org/mozilla-central/source/netwerk/dns/mdns/nsIDNSServiceDiscovery.idl#201 [2] http://www.dns-sd.org/txtrecords.html#http
See Also: → 1228192
feature-b2g: 2.5+ → 2.6+
blocking-b2g: --- → 2.6?
feature-b2g: 2.6+ → ---
Whiteboard: [ft:conndevices][partner-blocker][partner-cherry-pick] → [ft:conndevices][partner-blocker]
blocking-b2g: 2.6? → 2.6+
Whiteboard: [ft:conndevices][partner-blocker] → [ft:conndevices]
Assignee: nobody → etsai
Status: NEW → RESOLVED
Closed: 9 years ago
Depends on: 1197749
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: