且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

您如何在2017 Google Play开发者控制台中找到您的Google Cast应用ID(app_id)?

更新时间:2022-12-08 10:56:22

@ ali-naddaf是正确的,在Google Play开发者控制台上找不到强制转换所需的应用程序ID.而是通过访问 https://cast.google.com/publish/#/overview 并创建一个新的应用程序.默认值为样式化的媒体接收器.创建应用程序实例后,将获得应用程序ID:

@ali-naddaf is correct, the application Id required for casting is not found on the Google Play Developer console. It is instead obtained by visiting https://cast.google.com/publish/#/overview and creating a new application. The default is a styled media receiver. Once you have created your application instance, you are given your application Id:

Google Cast SDK控制台

然后,您可以在字符串xml文件中实现该应用程序ID,以设置您的转换选项:

You can then implement that application id in a strings xml file to set up your cast options:

CastOptions castOptions = new CastOptions.Builder()
    .setReceiverApplicationId(context.getString(R.string.app_id))
    .build();