Seek bar chromecast

1.2k views Asked by At

I am making chromecast sender app in android. I checked youtube app, where user cast any vedio, then vedio play on TV screen but never on android device. Only seek bar moves as vedio play further. How can i implement such a work around in my app.

So far what i have done is, my vedio is playing on youtube vedio player(while casting). I cant overlay any widget on youtube vedio player(so that vedio part hides and only seekbar is visible) since it doesn't allow(it pause the vedio if i do so).

So how to implement such UI functionality in my app. Please help.

1

There are 1 answers

1
Andy On BEST ANSWER

Your sender app should not have content playing at all while casting. You need to set up a listener on your sender to check for the progress of your media. You should refer to the GitHub samples and use those as a base. For Android, you will also need the Cast Companion Library, which should help take care of a lot of the more mundane tasks and components.