更新时间: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:
然后,您可以在字符串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();