Use cases, gaps, ideas from the Web&TV Home Network TF
Giuseppe Pascale, Opera
3... 2... 1...
They run Opera a Browser
They run a Browser
and
They are connected to the home network
...ah, and BTW: what is a multi-screen experience?
Once I find the video I want to watch...
I just sit back and relax
Application downloaded via broadband, broadcast or other means
Application discovers other devices in the home network
Application communicates with discovered devices (after user authorization)
// Search for a service if(navigator.getNetworkServices) navigator.getNetworkServices('urn:schemas-upnp-org:service:ContentDirectory:1', browseContent, error); // Browse content on another device function browseContent(services) { //create a SOAP message var xml = createSoapMessage(services[0].type,"Browse"); //Send a SOAP message to get the list of content (and process the service response) var xhr = new XMLHttpRequest(); xhr.onreadystatechange=function(){//handler code goes here} xhr.open("POST", services[0].url, true); xhr.setRequestHeader('HOST',host); xhr.setRequestHeader('Content-type','text/xml'); xhr.setRequestHeader('Content-length',msg.length); xhr.setRequestHeader('SOAPAction',services[0].type+'#'+"Browse"); xhr.send(msg); // NOTE: services[0].url and its sub-resources have been // whitelisted for cross-site XHR use in this // current browsing context. }
Thanks for listening!
http://people.opera.com/giuseppep/hntf-usecases-gaps/