Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Developing for Chromecast
Kurt Mbanje : DStv Digital Media
+KurtMbanje
@ckurtm
Google Cast & Google Cast SDK
• Technology to cast to mobile devices
& compatible audio speakers
• Google Cast SDK support...
Cast compatible devices
and more..
Cast Components
• Sender apps
• Receiver apps
Applications running on a mobile device or laptop
(HTML, JavaScript , CSS) a...
Sender App Lifecycle
Receiver Applications
• Default Media Receiver
Does not require application id
• Styled Media Receiver
Requires applicatio...
Receiver Applications
• Default Media Receiver
Does not require application id
• Styled Media Receiver
Requires applicatio...
Receiver Applications
• Default Media Receiver
Does not require application id
• Styled Media Receiver
Requires applicatio...
Receiver App Lifecycle
Cast SDK Requirements
• Part of play services revision 4.2+
• Support libraries 19.0.1+
• Required dependencies :
• androi...
Cast Companion Library
https://github.com/googlecast/CastCompanionLibrary-android
Cast Companion Library
• Custom cast menu
• Easy device discovery
• Lock screen controls
• Samples on GitHub
• Ready to go...
Implementation (Video Playback)
• Initialize
• Add cast button
• Connect to cast device
• Listen for events
• Send Message...
Initialize
Add Cast Button
Connect to Cast Device
Playback media
Local File Browser Sample
Thank You
Upcoming SlideShare
Loading in …5
×

Developing for Chromecast on Android

490 views

Published on

A presentation I did on developing for Chromecast using the Cast Companion Library

Published in: Mobile
  • Be the first to comment

  • Be the first to like this

Developing for Chromecast on Android

  1. 1. Developing for Chromecast Kurt Mbanje : DStv Digital Media +KurtMbanje @ckurtm
  2. 2. Google Cast & Google Cast SDK • Technology to cast to mobile devices & compatible audio speakers • Google Cast SDK supports Android , Chrome and IOS
  3. 3. Cast compatible devices and more..
  4. 4. Cast Components • Sender apps • Receiver apps Applications running on a mobile device or laptop (HTML, JavaScript , CSS) app running on a Chromecast or other compatible device.
  5. 5. Sender App Lifecycle
  6. 6. Receiver Applications • Default Media Receiver Does not require application id • Styled Media Receiver Requires application id • Custom Media Receiver Requires application id CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID Can be styled with CSS files
  7. 7. Receiver Applications • Default Media Receiver Does not require application id • Styled Media Receiver Requires application id • Custom Media Receiver Requires application id CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID Can be styled with CSS files
  8. 8. Receiver Applications • Default Media Receiver Does not require application id • Styled Media Receiver Requires application id • Custom Media Receiver Requires application id , DRM Content, Data centric apps CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID Can be styled with CSS files
  9. 9. Receiver App Lifecycle
  10. 10. Cast SDK Requirements • Part of play services revision 4.2+ • Support libraries 19.0.1+ • Required dependencies : • android-support-v7-appcompat • android-support-v7-mediarouter • google-play-services_lib • android:MinSdkVersion=“9”
  11. 11. Cast Companion Library https://github.com/googlecast/CastCompanionLibrary-android
  12. 12. Cast Companion Library • Custom cast menu • Easy device discovery • Lock screen controls • Samples on GitHub • Ready to go mini- controller • Cast widgets • Player control activity • Reconnection logic • Media tracks • Data channel wrappers https://github.com/googlecast/CastCompanionLibrary-android
  13. 13. Implementation (Video Playback) • Initialize • Add cast button • Connect to cast device • Listen for events • Send Messages • Disconnect from device • Add dependency
  14. 14. Initialize
  15. 15. Add Cast Button
  16. 16. Connect to Cast Device
  17. 17. Playback media
  18. 18. Local File Browser Sample
  19. 19. Thank You

×