developing for chromecast on android

Post on 12-Apr-2017

201 Views

Category:

Mobile

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Developing for ChromecastKurt Mbanje : DStv Digital Media+KurtMbanje@ckurtm

Google Cast & Google Cast SDK

• Technology to cast to mobile devices & compatible audio speakers

• Google Cast SDK supports Android , Chrome and IOS

Cast compatible devices

and more..

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.

Sender App Lifecycle

Receiver Applications• Default Media Receiver

Does not require application id

• Styled Media ReceiverRequires application id

• Custom Media ReceiverRequires application id

CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID

Can be styled with CSS files

Receiver Applications• Default Media Receiver

Does not require application id

• Styled Media ReceiverRequires application id

• Custom Media ReceiverRequires application id

CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID

Can be styled with CSS files

Receiver Applications• Default Media Receiver

Does not require application id

• Styled Media ReceiverRequires application id

• Custom Media ReceiverRequires application id , DRM Content, Data centric apps

CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID

Can be styled with CSS files

Receiver App Lifecycle

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”

Cast Companion Libraryhttps://github.com/googlecast/CastCompanionLibrary-android

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

Implementation (Video Playback)

• Initialize

• Add cast button

• Connect to cast device

• Listen for events

• Send Messages

• Disconnect from device

• Add dependency

Initialize

Add Cast Button

Connect to Cast Device

Playback media

Local File Browser Sample

Thank You

top related