Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

全屏的时候会透明 #2

Closed
Xiaocai9527 opened this issue Nov 7, 2016 · 12 comments
Closed

全屏的时候会透明 #2

Xiaocai9527 opened this issue Nov 7, 2016 · 12 comments

Comments

@Xiaocai9527
Copy link

那怎么我只看得到熊猫的啊现在。能不能同时看三个,斗鱼,熊猫,战旗,虎牙啥的

@452MJ
Copy link
Owner

452MJ commented Nov 7, 2016

可以的,只能看熊猫是因为我写死了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);
                    }
                });
    }

https://github.com/452MJ/C9MJ/blob/master/app/src/main/java/com/c9mj/platform/live/mvp/presenter/impl/LiveListPresenterImpl.java

具体效果你可以下载Max+的App,我是抓他们的包来分析API的。所有直播平台都有,游戏类型只有5个

@452MJ
Copy link
Owner

452MJ commented Nov 7, 2016

改为getLiveList(offset, limit, game_type, "")就是全平台了

@452MJ
Copy link
Owner

452MJ commented Nov 7, 2016

全屏透明的话,我还未开发完全,后面再慢慢测试调试

@Xiaocai9527
Copy link
Author

上班只能看一会儿,下好了准备回家看看,嘿嘿😁。

@452MJ
Copy link
Owner

452MJ commented Nov 7, 2016

还有些小问题的,就是我还没弄常亮。过段时间会变暗,最近在开发另外的模块

@452MJ
Copy link
Owner

452MJ commented Nov 7, 2016

加上屏幕常亮跟全平台直播了,之前看斗鱼的话会报403,现在不知道会不会了

@Xiaocai9527
Copy link
Author

嗯,常亮的代码是在LivePlayActivity类里吗,找半天没找到啊。话说我自己发的檀木别人看不到的吧?

@452MJ
Copy link
Owner

452MJ commented Nov 8, 2016

常亮在onResume()跟onPause()里面,弹幕都是离线本地添加而已,没有发送数据包到服务器的。

@Xiaocai9527
Copy link
Author

直播页面的indicator在0位置的时候,左滑会滑倒首页,这个有点懵逼....禁掉会不会好点

@452MJ
Copy link
Owner

452MJ commented Nov 8, 2016

看个人习惯吧,因为 我也是做个Demo练手而已,没考虑那么多。你自己改改吧

@Xiaocai9527
Copy link
Author

看了你其他项目,刚毕业就这么牛逼,强了

@452MJ
Copy link
Owner

452MJ commented Nov 8, 2016

那些小demo就别说了,难度不大。现在才做个像样的而已。谢谢赞赏+_+

@452MJ 452MJ closed this as completed Dec 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants