tvConnect_android1.0 SDK开发android版,提供用户接入我们SDK,能够把图片快速的投屏到电视,大屏看图片,用户不需要开发电视版应用及可实现电视看图片。
编译环境:android studio 2.2.2
........
<!-- 加入应用需要的权限 -->
<!-- 网络相关 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
.......
<!-- 添加二维码扫描activity(可以调用用户自己的扫描界面) -->
<activity
android:name="com.liyueyun.talklib.ui.activity.CaptureActivity"
android:screenOrientation="portrait" />
TalkManage.getInstance().initTalk(this, "用户的UserId(可传空字符串)","用户的UserId(可传空字符串,默认显示陌生人)","用户头像Url(可传空字符串)", "AppKey(必填)","AppSecret(必填)",null});
//组建投频消息 String message = TalkManage.getInstance().galleryMsg("投屏类型","文件地址","文件名字"); //推送消息到tv TalkManage.getInstance().pushMessageTv(message,"电视的UserId(扫描获得)",null);
http://console.yun2win.com/docs/android/Y2W_tvConnect/index.html
官方网站 : http://www.yun2win.com
安卓 : https://github.com/yun2win/yun2win-sdk-android
iOS : https://github.com/yun2win/yun2win-sdk-iOS
Web : https://github.com/yun2win/yun2win-sdk-web
Server : https://github.com/yun2win/yun2win-sdk-server
tvConnect-android is available under the MIT license. See the LICENSE file for more info.