multicast M-SEARCH message

431 views
Skip to first unread message

markmurak

unread,
May 19, 2011, 4:30:38 PM5/19/11
to Chromium Apps
Hi Group,

I am planning to develop App that accesses locally WiFi connected DLNA
devices.
Here is the question:
1. Can HTML5 App issue multicast message for device discovery?
address:239.255.255.250 port:1900 This is the UPnP discovery method
named "ssdp".
2. Can ChromeOS allow the packet go through devices?

Any help will be appreciated.


markmurak

Paul Kinlan

unread,
May 20, 2011, 4:01:59 AM5/20/11
to markmurak, Chromium Apps
Hi,

In a hosted app using CORS you can issue HTTP requests on any ip/port.  Packaged apps can whitelist cross-domain requests in the manifest.

I have not tried it, but it should be possible for you to issue XmlHttpRequests that have  M-SEARCH  as your method.  I am not overly sure of the specific semantics of UPnP discovery, but you can't set up a service to listen to incoming requests.

P


--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.




--
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5
t: +447730517944
tw: @Paul_Kinlan
LinkedIn: http://uk.linkedin.com/in/paulkinlan
Blog: http://paul.kinlan.me
Skype: paul.kinlan

markmurak

unread,
May 20, 2011, 7:53:09 PM5/20/11
to Chromium Apps
Hi,

Thank you very much for the quick response.

I have to study CORS and XmlHttpRequest to understand the whole
picture, but it seems this project has difficulty to move forward
since the Chrome app has to listen for UDP responses from the M-SEARCH
request.

Thanks,
markmurak

On May 20, 1:01 am, Paul Kinlan <paulkin...@google.com> wrote:
> Hi,
>
> In a hosted app using CORS you can issue HTTP requests on any ip/port.
>  Packaged apps can whitelist cross-domain requests in the manifest.
>
> I have not tried it, but it should be possible for you to issue
> XmlHttpRequests that have  M-SEARCH  as your method.  I am not overly sure
> of the specific semantics of UPnP discovery, but you can't set up a service
> to listen to incoming requests.
>
> P
>
>
>
>
>
> On Thu, May 19, 2011 at 9:30 PM, markmurak <markmu...@gmail.com> wrote:
> > Hi Group,
>
> > I am planning to develop App that accesses locally WiFi connected DLNA
> > devices.
> > Here is the question:
> >  1. Can HTML5 App issue multicast message for device discovery?
> > address:239.255.255.250 port:1900  This is the UPnP discovery method
> > named "ssdp".
> >  2. Can ChromeOS allow the packet go through devices?
>
> > Any help will be appreciated.
>
> > markmurak
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium Apps" group.
> > To post to this group, send email to chromium-a...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-apps+unsubscr...@chromium.org.
Reply all
Reply to author
Forward
0 new messages