在哪里可以找到APPLICATION_ID [英] Where can I find APPLICATION_ID

查看:398
本文介绍了在哪里可以找到APPLICATION_ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习适用于android的演员表api,但我被困在这一部分:

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();

在哪里可以找到这个APPLICATION_ID,它是什么?

Where can I find this APPLICATION_ID and what is it?

推荐答案

不幸的是,当执行 Google Cast时Android Sender Application教程,您应该执行网站上没有很好描述的多个步骤来开发Chromecast应用程序:

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

  1. 您必须注册(是,要支付5美元)的Google Cast SDK
  2. 此过程之后,建议您将设备序列号添加到 Google Cast SDK开发人员控制台,因为这需要15分钟的时间.您可以在 Google Cast注册页面
  3. 中找到有关此过程的更多详细信息.
  4. 在等待设备注册时,将您的应用添加到 Google Cast SDK开发者控制台上点击添加新应用.在下一步中选择样式化的媒体接收器,然后可以在应用程序名称
  5. 中添加任何内容
  6. 通过保存应用程序,您将获得YOUR_APPLICATION_ID
  7. 15分钟后(或准备添加设备时),请不要忘记执行 Google Cast注册页面
    • 在Chromecast设置应用中,选择您的Chromecast,然后选中在检查更新时发送此Chromecast的序列号"框.
    • 重新启动Cast设备:断开设备的电源或USB电缆,然后重新连接(或者您只需在Chromecast设置应用上单击重新启动"即可)
  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)

这篇关于在哪里可以找到APPLICATION_ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆