Where can I find APPLICATION_ID

你。 提交于 2019-12-06 04:22:56

问题


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?


回答1:


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)



回答2:


I think you need to register your application on the dashboard here.

After registration, you would be given a APPLICATION ID for your application, which you can then use for development.

Excerpt from the documentation :

Before you can develop and test apps on your own Google Cast device, you need to acquire an app ID for your API calls and register your Google Cast device (such as a Chromecast) as a development device. For details, read the Registration guide.



来源:https://stackoverflow.com/questions/26454203/where-can-i-find-application-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!