Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find APPLICATION_ID

I'm learning cast api for android and I'm stuck at this part:

mMediaRouteSelector = new MediaRouteSelector.Builder()
  .addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID"))
  .build();

Where can I find this APPLICATION_ID and what is it?

like image 333
Lucas Bertollo Avatar asked Jan 10 '23 14:01

Lucas Bertollo


1 Answers

Unfortunately, when doing Google Cast Android Sender Application tutorial, you should do multiple steps not described well on site to develop Chromecast applications:

  1. You must sign up (yes, pay 5$) for Google Cast SDK
  2. After this process, I suggest you to add your device serial number in Google Cast SDK Developer Console since it's 15 minute long process. More details about this process you can find on Google Cast Registration page
  3. While waiting for device registration, add your application on Google Cast SDK Developer Console by clicking on Add new Application. Choose Styled Media Receiver in next step, and you can put anything in Application Name
  4. By saving application, you'll get YOUR_APPLICATION_ID
  5. After 15 minutes (or when adding device is ready), don't forget to do step 6. and 7. from Google Cast Registration page
    • In the Chromecast setup app, select your Chromecast and check the box, Send this Chromecast's serial number when checking for updates.
    • Restart your Cast device: disconnect the power or USB cable from the device, then reconnect it (or you can simply click reboot on Chromecast setup app)
like image 169
Tomo Avatar answered Jan 21 '23 13:01

Tomo