- From: Mercurial notifier <cvsmail@w3.org>
- Date: Wed, 27 Jun 2012 16:20:54 +0000
- To: public-dap-commits@w3.org
changeset: 130:ac5359e5c362
tag: tip
user: Claes Nilsson <claes1.nilsson@sonymobile.com>
date: Wed Jun 27 18:20:12 2012 +0200
files: wi-addendum-local-services/Overview.html
description:
Corrected example
diff -r f73be2915d48 -r ac5359e5c362 wi-addendum-local-services/Overview.html
--- a/wi-addendum-local-services/Overview.html Wed Jun 27 18:00:11 2012 +0200
+++ b/wi-addendum-local-services/Overview.html Wed Jun 27 18:20:12 2012 +0200
@@ -59,6 +59,9 @@
// company: "Your Company", companyURL: "http://example.com/" },
//],
+ //
+ edDraftURI: "http://w3c-test.org/dap/wi-addendum-local-services/",
+
// name of the WG
wg: "DAP/Web Apps Web Intents task force",
@@ -111,22 +114,14 @@
<pre class="example sh_javascript_dom">
// Create a new intent
- var intent = new Intent(
- "http://webintents.org/view",
- "video/mp4",
- { "src":videoCanvas.src, "img": videoCanvas.poster});
+var intent = new Intent( "http://webintents.org/view","video/mp4",{ "src":videoCanvas.src, "img": videoCanvas.poster});
- // Start intents picker
- navigator.startActivity(intent,
- // On Result
- function(intentData) {
- console.log("player.html: On Result" + intentData);
- },
- // On Failure
- function(intentData) {
- console.log("player.html: On Failure" + intentData);
- }
- );
+// Start intents picker
+navigator.startActivity(intent,
+ // On Result
+ function(intentData) {console.log("player.html: On Result" + intentData);},
+ // On Failure
+ function(intentData) {console.log("player.html: On Failure" + intentData);});
</pre>
<p>
The example below briefly describes the steps taken when a Service on a local network, e.g. UPnP or mDNS, device is discovered and selected by
Received on Wednesday, 27 June 2012 16:20:58 UTC