当前位置:   article > 正文

深入理解Google Cast(二)开发一个支持Google Cast的sender APP_castbuttonfactory

castbuttonfactory

前言
0.Activities需要继承自ActionBarActivity或FragmentAcitivy
0. cast button需要在所有Actvity中存在,允许用户随时连接,随时断开.

初始化CastContext

首先实现OptionsProvider接口来获得CastOptions,再用CastOptions初始化CastContext
receiver application ID:用于过滤Cast Devices搜索结果并且在Cast会话开始时启动receiver application.
When you develop your own Cast-enabled app, you have to register as a Cast developer and then obtain an application ID for your app.

import com.google.android.gms.cast.framework.CastOptions
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/538025
    推荐阅读
    相关标签
      

    闽ICP备14008679号