The chromecast's guide to the galaxy

4,542 views

Published on

Chromecast is a big change for mobile developers’ lifes. For the first time, it will be easy for you to connect to a second screen and share more devices at the same time. I willl introduce you to the Cast SDK but don't panic and don't forget the towel!

Published in: Software, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,542
On SlideShare
0
From Embeds
0
Number of Embeds
2,790
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

The chromecast's guide to the galaxy

  1. 1. The Chromecast’s Guide to the Galaxy
  2. 2. Hem fet això:
  3. 3. Som uns experts. The expert: http://youtu.be/BKorP55Aqvg
  4. 4. Chromecast expectativa És una cosa amb Android M’hi podré connectar des del mòbil i enviar media Serà com la tele SmartTV de l’Esteve
  5. 5. Chromecast preguntes Haurem de programar un nou APK? Té .APK’s a dintre? Es podràn baixar apps de Google Play? Funcionarà amb tots els mòbils?
  6. 6. Chromecast realitat És un Chrome preparat per a reproduïr streams No sap d’APK’s Sap de webs Sap parlar amb Android, iOS i Chrome sobre desktop Només funciona sobre WIFI
  7. 7. Arquitectura overview https://developers.google.com/cast/
  8. 8. https://developers.google.com/cast/ callbacks Arquitectura overview Cast.castAPI.*
  9. 9. https://developers.google.com/cast/ callbacks Arquitectura overview Cast.castAPI.* String receiverID url
  10. 10. https://developers.google.com/cast/ callbacks Arquitectura overview Cast.castAPI.* url String receiverID
  11. 11. https://developers.google.com/cast/ callbacks Arquitectura overview Cast.castAPI.* url String receiverID
  12. 12. Les Receiver Apps
  13. 13. https://developers.google.com/cast/docs/receiver_apps Receiver Apps Styled Media Receiver This is a pre-built receiver application that provides a media player UI for audio and video content. It provides a default UI for the receiver application, but you can customize several elements in the UI with a CSS file. Custom Receiver This is a custom built HTML5 app that you must host to handle the display of your app content on the TV. You may need to create a Custom Receiver if your app wants to display content other than audio/video media or if the Styled Media Receiver does not support the media types your app requires. Default Media Receiver else
  14. 14. https://developers.google.com/cast/docs/receiver_apps Receiver Apps
  15. 15. https://cast.google.com/publish/ Receiver Apps
  16. 16. https://cast.google.com/publish/ Receiver Apps
  17. 17. https://cast.google.com/publish/ Receiver Apps Default Media Receiver
  18. 18. Receiver Apps Styled Media Receiver https://cast.google.com/publish/
  19. 19. Receiver Apps Custom Receiver https://cast.google.com/publish/
  20. 20. Receiver Apps Custom Receiver SSL https://cast.google.com/publish/
  21. 21. Receiver Apps Custom Receiver Cast Receiver SDK https://developers.google.com/cast/docs/custom_receiver //www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js <html> <head> <title>Example minimum receiver</title> <script src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script> </head> <body> <video id='media'/> <script> window.onload = function() { window.mediaElement = document.getElementById('media'); window.mediaManager = new cast.receiver.MediaManager(window.mediaElement); window.castReceiverManager = cast.receiver.CastReceiverManager.getInstance(); window.castReceiverManager.start(); } </script> </body> </html>
  22. 22. Receiver Apps Custom Receiver Cast Receiver SDK https://developers.google.com/cast/docs/custom_receiver
  23. 23. Receiver Apps Custom Receiver Cast Receiver SDK https://developers.google.com/cast/docs/custom_receiver
  24. 24. Les Sender Apps
  25. 25. Sender Apps https://developers.google.com/cast/docs/sender_apps la documentació està verdeta fa una setmana era diferent … era pitjor { }
  26. 26. Sender Apps https://developers.google.com/cast/docs/sender_apps la documentació està verdeta fa una setmana era diferent … ara és millor! { }
  27. 27. Sender Apps https://developers.google.com/cast/docs/sender_apps
  28. 28. Sender Apps Exemples amb Streams https://developers.google.com/cast/docs/sender_apps Si tens ActionBarCompat, utilitza la Cast Companion Library https://github.com/googlecast/CastVideos-android Si heredes de FragmentActivity, utilitza el Cast Button https://github.com/googlecast/MediaRouter-Cast-Button-android Else... t’ho piques tu. Ànims! Aquí tens la documentació: http://developer.android.com/guide/topics/media/mediarouter.html
  29. 29. Sender Apps Exemples Un exemple val més que 1.000 diapos, així que … anem a veure codi
  30. 30. * Apps Exemples a tutiplén https://github.com/googlecast ojo, s’actualitzen dia a dia{ }
  31. 31. Se finí És el moment dels dubtes i les cerveses Roc Boronat roc@fewlaps.com @rocboronat

×