小编Lil*_*ley的帖子

Google-cast v3 自定义命名空间

我现在正在使用新的 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 它在示例应用程序中工作正常?谢谢!

android google-cast chromecast

6
推荐指数
1
解决办法
618
查看次数

标签 统计

android ×1

chromecast ×1

google-cast ×1