全屏的时候会透明
Closed this issue · 12 comments
Xiaocai9527 commented
那怎么我只看得到熊猫的啊现在。能不能同时看三个,斗鱼,熊猫,战旗,虎牙啥的
452MJ commented
可以的,只能看熊猫是因为我写死了live_type = panda
public void getLiveList(int offset, int limit, String game_type) {
RetrofitHelper.getLiveHelper().create(LiveAPI.class)
.getLiveList(offset, limit, game_type, "panda")
.compose(RetrofitHelper.<List<LiveListItemBean>>handleLiveResult())
.subscribe(new HttpSubscriber<List<LiveListItemBean>>() {
@Override
public void _onNext(List<LiveListItemBean> roomBeanList) {
view.updateRecyclerView(roomBeanList);
}
@Override
public void _onError(String message) {
view.showError(message);
}
});
}
具体效果你可以下载Max+的App,我是抓他们的包来分析API的。所有直播平台都有,游戏类型只有5个
452MJ commented
改为getLiveList(offset, limit, game_type, "")就是全平台了
452MJ commented
全屏透明的话,我还未开发完全,后面再慢慢测试调试
Xiaocai9527 commented
上班只能看一会儿,下好了准备回家看看,嘿嘿😁。
452MJ commented
还有些小问题的,就是我还没弄常亮。过段时间会变暗,最近在开发另外的模块
452MJ commented
加上屏幕常亮跟全平台直播了,之前看斗鱼的话会报403,现在不知道会不会了
Xiaocai9527 commented
嗯,常亮的代码是在LivePlayActivity类里吗,找半天没找到啊。话说我自己发的檀木别人看不到的吧?
452MJ commented
常亮在onResume()跟onPause()里面,弹幕都是离线本地添加而已,没有发送数据包到服务器的。
Xiaocai9527 commented
直播页面的indicator在0位置的时候,左滑会滑倒首页,这个有点懵逼....禁掉会不会好点
452MJ commented
看个人习惯吧,因为 我也是做个Demo练手而已,没考虑那么多。你自己改改吧
Xiaocai9527 commented
看了你其他项目,刚毕业就这么牛逼,强了
452MJ commented
那些小demo就别说了,难度不大。现在才做个像样的而已。谢谢赞赏+_+