Reputation: 375
I have an custom streaming audio player to play the songs from the server and liked to integrate the chromecast with this app, now it's working fine. but here how can i update and control the seek bar from the sender App that would be reflected in receiver App and how to maintain the session for my app while casting?, because i have to be reconnected with chromecast again on same page when i come from the other app and background mode while casting audio on TV.
Please guide me the life cycle for the chromecast for stream the audio on Tv and support in background mode.
Thanks in Advance
Upvotes: 1
Views: 954
Reputation: 4656
Take a look at the CastVideos sample app: https://github.com/googlecast/CastVideos-android
It uses the Cast Companion Library that manages the state across activities: https://github.com/googlecast/CastCompanionLibrary-android
Upvotes: 1