Web intents addendum

  • View
    1.372

  • Download
    4

Embed Size (px)

DESCRIPTION

33HTML5

Transcript

  • 1. Web Intents Addendum Local ServicesWeb Intents Naoyuki Sato

2. : : : WebWeb DLNA IEEE1394(FireWire) AV 2 November 20, 2012 Copyright 2012, Sony Corporation 3. Web Platform Web ServiceMovie Music PhotoPower Training Home theater Web BrowserHome Network ServiceHome energy 3November 20, 2012 Copyright 2012, Sony Corporation 4. Web Intents Addendum - Local ServicesW3CWeb Intents 4 November 20, 2012 Copyright 2012, Sony Corporation 5. Android Intents Web Page()PlayNative appPickerNative app Android Intents 5 November 20, 2012 Copyright 2012, Sony Corporation 6. Web IntentsWebWeb Service Picker Web ServiceHome Network Service My Printer Home Network Service Web Intents Web6 November 20, 2012 Copyright 2012, Sony Corporation 7. Web IntentsHome Network Service Web Intents Web Intents + Local ServiceUpload7 November 20, 2012 Copyright 2012, Sony Corporation 8. Web ServiceWeb ServiceTravel PhotoMy Memories Service Online Web Pick w/ var intent = new Intent();intent.action =Home network Service"http://webintents.org/pick";intent.type = "image/*";window.navigator.startActivity( intent, function(intentData) {Web 8 November 20, 2012 Copyright 2012, Sony Corporation 9. 9 November 20, 2012 Copyright 2012, Sony Corporation 10. Web Home network Service Web Service HTML HTML JavaScript JavaScriptCSSCSS*web intentsshim SSDPmDNSSSDP HTTP Client Service Discovery HTTP ServerService Discovery HTTP Server Service(HTML)Service(HTML) Service 10November 20, 2012Copyright 2012, Sony Corporation 11. Web Intents WebA B Web WebCPick W/ WebInstall Home Network () A B C Local Service Discovery!SSDP / mDNS Home Network Device()11 November 20, 2012 Copyright 2012, Sony Corporation 12. Local Service Discovery Web Intents Addendum - Local Services 2Local Service Discovery SSDP mDNS + DNS-SD12 November 20, 2012 Copyright 2012, Sony Corporation 13. - SSDP SSDP - Simple Service Discovery Protocol Home Network()Service DLNA(UPnP)Discovery UDP UPnP Device Architecture 1.013 November 20, 2012 Copyright 2012, Sony Corporation 14. SSDP Notification Type Notification Sub TypeNOTIFY / ssdp:alive NOTIFY * HTTP/1.1 HTTPU NT: urn:schemas-webintents-org:service:WebIntent:1 HTTP over UDPLOCATION: http:/192.168.1.3:57735/NTS : ssdp:alive HTTP Header Content-Length: 0NOTIFY / ssdp:byebye HTTP Method NOTIFY * HTTP/1.1 NOTIFY : NT: urn:schemas-webintents-org:service:WebIntent:1 NTS: ssdp:byebye M-SEARCH : Content-Length: 0M-SEARCH NOTIFYM-SEARCH * HTTP/1.1M-SEARCH ST: urn:schemas-webintents-org:service:WebIntent:1MAN: "ssdp:discover"HOST: 239.255.255.250:1900 Search TargetMX: 1014 November 20, 2012 Copyright 2012, Sony Corporation 15. Share w/ A Web PC B C 1 Multicast address 239:255:255:250 Web Intents Port number : 190015 November 20, 2012Copyright 2012, Sony Corporation 16. SSDP Web Intents ActionWeb Intents (Option)1SSDP NOTIFY * HTTP/1.1NT: urn:schemas-webintents-org:service:WebIntent:1LOCATION: http:/192.168.1.3:57735/NTS : ssdp:aliveaction.webintents.org: http://webintents.org/pickregistration.webintents.org: /registration.htmlContent-Length: 0 UDP Multicast Web Intents registration (HTTP)registration.html : 16 November 20, 2012 Copyright 2012, Sony Corporation 17. Share w/ A WebPC B C 1 Web Intents Multicast address 239:255:255:250 Port number : 1900 2 Unicast 17 November 20, 2012Copyright 2012, Sony Corporation 18. SSDP 1 SSDP Web M-SEARCH * HTTP/1.1 ST: urn:schemas-webintents-org:service:WebIntent:1 MAN: "ssdp:discover" HOST: 239.255.255.250:1900 MX: 10UDP MulticastUDP Unicast 2SSDP HTTP/1.1 200 OK Cache-Control: max-age=1800 EXT: Location: http://192.168.11.3:5735/ ST: urn:schemas-webintents-org:service:WebIntents:1 USN: uuid:TestDevice::urn:schemas-webintents-org:service:WebIntents:1 action.webintents.org: http://webintents.org/pick registration.webintents.org:/registration.html : Copyright 2012, Sony Corporation18 November 20, 2012 19. mDNS + DNS-SD mDNS : Multicast DNS Multicast(UDP)Home network()DNS(Domain Name System) Multicast Address: 224.0.0.251 Port Number: 5353 DNS-SD : DNS Service Discovery DNSSRV, TXT, PTRService TXTweb intents Bonjour(AirPlay)19 November 20, 2012 Copyright 2012, Sony Corporation 20. mDNS + DNS-SD Service PTR 1 mDNS + DNS-SD Web Queries _webIntents._tcp.local: type PTR, class IN, "QM" question UDP Multicast(224.0.0.251:5353)UDP Unicast 2mDNS + DNS-SD Answers _webintents._tcp.local: type PTR, class IN, DSCWebService._webintents._tcp.localname servicedomain : 20 November 20, 2012Copyright 2012, Sony Corporation 21. mDNS + DNS-SD InstanceSRVAIP 1 mDNS + DNS-SD Web Queries DSCWebService._webIntents._tcp.local: type SRV, Class IN, QM questionUDP Multicast(224.0.0.251:5353)UDP Unicast 2mDNS + DNS-SD Answers DSCWebService._webintents._tcp.local: type PTR, class IN, cache flush, priority 0, weight 0, port 3639, DSCamera.local Additional Records DSCamera.local: Type A, class IN, cache flush, addr 192.168.1.47 : namedomain21 November 20, 2012Copyright 2012, Sony Corporation 22. mDNS + DNS-SD TXTWeb Intents 1 mDNS + DNS-SD Web Queries DSCWebService._webIntents._tcp.local: type TXT, class IN, cache flush UDP Multicast(224.0.0.251:5353)UDP Unicast 2mDNS + DNS-SD Answers Type: TXT (Text String) Text: location= http://192.168.1.47:4004/registration.html Text: action= http://webintents.org/pick Web Intents Action : Web Intents registration (Option) (HTTP)22 November 20, 2012Copyright 2012, Sony Corporation 23. TTL(Time to Live) 1 0IP v4 headerVers Type-of-IHLTotal length ion ServiceIdentificationFlag Fragment offset SSDP Time-to-live Protocol Header checksumSource address Destination address Options(+ padding) Data(variable)23 November 20, 2012 Copyright 2012, Sony Corporation 24. Web Intents Web A B CHome Network () Web 24 November 20, 2012 Copyright 2012, Sony Corporation 25. Web IntentsWebWeb Picker)A Share w/ B WebInstall C A B CHome Network () Local DiscoverySSDP or mDNS + DNS-SD Web25 November 20, 2012 Copyright 2012, Sony Corporation 26. Web IntentsWebServiceA B C Home Network ()HTML Service Web DLNA(SOAP)REST REST26 November 20, 2012 Copyright 2012, Sony Corporation 27. Web IntentsWeb A B CHome Network () Web 27 November 20, 2012 Copyright 2012, Sony Corporation 28. hidden - UI Web Pageregistration.htmlHigh level APIHome Network ()APIUIHTML Web messaging-UIHTML page- PageHigh level API 28 November 20, 2012 Copyright 2012, Sony Corporation 29. Web serviceLocal Service WebLocal Service ServiceUIServiceProtocol Service DiscoverySSDPmDNS+DNS-SD Web Intents RegistrationAction(Option) Discovery29 June 13, 2012 Copyright 2012, Sony Corporation 30. Web Web A Web B Web CWeb Home Network30 June 13, 2012Copyright 2012, Sony Corporation 31. 31 June 13, 2012 Copyright 2012, Sony Corporation