Sevillajs: Una tarde con Firefox OS

1,492 views
1,403 views

Published on

Charla introductoria de FirefoxOS para SevillaJS

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,492
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
15
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Sevillajs: Una tarde con Firefox OS

  1. 1. Una tarde con ... FIREFOX OSThursday, 20 December 12
  2. 2. GRACIAS!Thursday, 20 December 12
  3. 3. Hola! Soy Francisco JordanoThursday, 20 December 12
  4. 4. Thursday, 20 December 12
  5. 5. La Web es la PlataformaThursday, 20 December 12
  6. 6. El proyecto Boot to Gecko (B2G) fue concebido para llevar la Web como plataforma a dispositivos mobiles.Thursday, 20 December 12
  7. 7. Vamos a cocinar nuestro SOThursday, 20 December 12
  8. 8. Gaia UI based on open web technologies Gecko Magic engine + new APIs Gonk Solid linux kernel + drivers ...Thursday, 20 December 12
  9. 9. GONKThursday, 20 December 12
  10. 10. GECKOThursday, 20 December 12
  11. 11. Web APIS ... Web APIS everywhereThursday, 20 December 12
  12. 12. Web APIS Extending the capabilities of the web. Mobi le Co nnect ion Contacts y Telephon Settings s Payment Browser We bS MS Pow ns er M Permissio ana gem FM ent Ra s dio Web ActivitieThursday, 20 December 12
  13. 13. https://wiki.mozilla.org/WebAPIThursday, 20 December 12
  14. 14. WEBTELEPHONYThursday, 20 December 12
  15. 15. // Telephony object var tel = navigator.mozTelephony; // Check if the phone is muted (read/write property) console.log(tel.muted); // Check if the speaker is enabled (read/write property) console.log(tel.speakerEnabled);Thursday, 20 December 12
  16. 16. // Place a call var cal = tel.dial(“123456789”);Thursday, 20 December 12
  17. 17. WEBSMSThursday, 20 December 12
  18. 18. // SMS object var sms = navigator.mozSMS; // Send a message sms.send("123456789", "Hello world!");Thursday, 20 December 12
  19. 19. // Recieve a message sms.onreceived = function (event) { // Read message console.log(event.message); };Thursday, 20 December 12
  20. 20. BATTERY STATUS APIThursday, 20 December 12
  21. 21. var battery = navigator.mozBattery if (battery) { var batteryLevel = Math.round(battery.level * 100) + "%", charging = (battery.charging)? "" : "not ", chargingTime = parseInt(battery.chargingTime / 60, 10, dischargingTime = parseInt(battery.dischargingTime / 60, 10); // Set events battery.addEventListener("levelchange", setStatus, false); battery.addEventListener("chargingchange", setStatus, false); battery.addEventListener("chargingtimechange", setStatus, false); battery.addEventListener("dischargingtimechange", setStatus, false); }Thursday, 20 December 12
  22. 22. CONTACTS APIThursday, 20 December 12
  23. 23. var contact = new mozContact(); contact.init({name: "Tom"}); var request = navigator.mozContacts.save(contact); request.onsuccess = function() { console.log("Success"); }; request.onerror = function() { console.log("Error") };Thursday, 20 December 12
  24. 24. NETWORK INFORMATION APIThursday, 20 December 12
  25. 25. var connection = window.navigator.mozConnection, online = connection.bandwidth > 0, metered = connectrion.metered;Thursday, 20 December 12
  26. 26. GAIAThursday, 20 December 12
  27. 27. Thursday, 20 December 12
  28. 28. Hora de aventuras!Thursday, 20 December 12
  29. 29. Aplicaciones para Firefox OS ... perdón ... aplicaciones para la Web!Thursday, 20 December 12
  30. 30. Open Web Apps API { "version": "1.0", "name": "MozillaBall", "description": "Exciting Open Web development action!", "icons": { "16": "/img/icon-16.png", "48": "/img/icon-48.png", "128": "/img/icon-128.png" }, "developer": { "name": "Mozilla Labs", "url": "http://mozillalabs.com" }, "installs_allowed_from": ["*"], "appcache_path": "/cache.manifest", "locales": { "es": { "description": "¡Acción abierta emocionante del desarrollo del Web!", "developer": { "url": "http://es.mozillalabs.com/" } }, "it": { "description": "Azione aperta emozionante di sviluppo di fotoricettore!", "developer": { "url": "http://it.mozillalabs.com/" } } }, "default_locale": "en" }Thursday, 20 December 12
  31. 31. Con las manos en la masa Nightly B2G R2D2B2GThursday, 20 December 12
  32. 32. A colaborar se ha dicho! https://github.com/mozilla-b2g/gaia irc.mozilla.org #b2g, #gaia, #webapi https://lists.mozilla.org/listinfo/dev-gaiaThursday, 20 December 12
  33. 33. Muchas gracias! twitter://mepartoconmigo github://arcturusThursday, 20 December 12

×