the chromecast's guide to the galaxy
DESCRIPTION
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!TRANSCRIPT
The Chromecast’s
Guide to the Galaxy
Hem fet això:
Som uns experts.
The expert: http://youtu.be/BKorP55Aqvg
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
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?
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
Arquitectura overview
https://developers.google.com/cast/
https://developers.google.com/cast/
callbacks
Arquitectura overview
Cast.castAPI.*
https://developers.google.com/cast/
callbacks
Arquitectura overview
Cast.castAPI.*
String receiverID url
https://developers.google.com/cast/
callbacks
Arquitectura overview
Cast.castAPI.*
url String receiverID
https://developers.google.com/cast/
callbacks
Arquitectura overview
Cast.castAPI.*
url String receiverID
Les Receiver Apps
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
https://developers.google.com/cast/docs/receiver_apps
Receiver Apps
https://cast.google.com/publish/
Receiver Apps
https://cast.google.com/publish/
Receiver Apps
https://cast.google.com/publish/
Receiver Apps Default Media Receiver
Receiver Apps Styled Media Receiver
https://cast.google.com/publish/
Receiver Apps Custom Receiver
https://cast.google.com/publish/
Receiver Apps Custom Receiver
SSL
https://cast.google.com/publish/
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>
Receiver Apps Custom Receiver Cast Receiver SDK
https://developers.google.com/cast/docs/custom_receiver
Receiver Apps Custom Receiver Cast Receiver SDK
https://developers.google.com/cast/docs/custom_receiver
Les Sender Apps
Sender Apps
https://developers.google.com/cast/docs/sender_apps
la documentació està verdeta fa una setmana era diferent
… era pitjor { }
Sender Apps
https://developers.google.com/cast/docs/sender_apps
la documentació està verdeta fa una setmana era diferent
… ara és millor! { }
Sender Apps
https://developers.google.com/cast/docs/sender_apps
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
Sender Apps Exemples
Un exemple val més que 1.000 diapos, així que … anem a veure codi
* Apps Exemples a tutiplén
https://github.com/googlecast
ojo, s’actualitzen dia a dia { }