微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Android MediaRouteButton 已禁用

如何解决Android MediaRouteButton 已禁用

我知道有类似/相关的帖子,但没有得到有效的答案。

我正在开发具有 Google Chromecast 功能的应用。 演员工作得很好,直到我添加了迷你控制器片段,这使 MediaRouteButton 被禁用。

我目前正在关注 Google 的 this tutorial

这是迷你控制器片段布局。

<fragment
    android:id="@+id/cast_mini_controller"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    app:castShowImageThumbnail="true"
    android:visibility="gone"
    class="com.google.android.gms.cast.framework.media.widget.MiniControllerFragment" />

感谢任何想法/帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。