我现在正在使用新的 v3 Google Cast API 为 Android 重构我的发件人应用程序。我遇到的问题是当我添加
List<String> namespaces = new ArrayList<>();
namespaces.add("urn:x-cast:lalalalla");
...
return new CastOptions.Builder()
.setSupportedNamespaces(namespaces)
Run Code Online (Sandbox Code Playgroud)
Android 应用程序不再显示 chromecast 图标(我猜它不再发现 chromecast 设备)。我对命名空间做错了什么,因为没有 .setSupportedNamespaces 它在示例应用程序中工作正常?谢谢!