Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

列表播放后进入详情页播放失败 #213

Closed
silence17 opened this issue Nov 18, 2018 · 14 comments
Closed

列表播放后进入详情页播放失败 #213

silence17 opened this issue Nov 18, 2018 · 14 comments

Comments

@silence17
Copy link

看您的Demo,MainListActivity 列表进入到播放详情MainListInfoCustomActivity是自动播放。
我们项目需要进入详情的时候不自动播放,我把播放的代码注释了如下:
if (exoPlayerManager == null) {
exoPlayerManager = new VideoPlayerManager
.Builder(VideoPlayerManager.TYPE_PLAY_USER, playerView)
.setPosition(videoBean.getCurrentPosition())
.create();

        for (String key : videoBean.getMap().keySet()) {
            // TODO: 2018/3/1 可以切换不同分辨率
            exoPlayerManager.setPlayUri(videoBean.getMap().get(key));
        }
        // 隐藏控制布局
        exoPlayerManager.showControllerView();

// exoPlayerManager.startPlayer();
} else {
VideoPlayerManager.getInstance().switchTargetViewNew(playerView);
exoPlayerManager.setPosition(videoBean.getCurrentPosition());
// exoPlayerManager.setStartOrPause(true);
}
但运行后点击列表播放视频再进入详情页,点击播放按钮就没有反应不能播放了。麻烦帮忙看一下

@yangchaojiang
Copy link
Owner

上午不再,去练车哦

@yangchaojiang
Copy link
Owner

我看看哈。这种的列表进入详情自动播放的

@yangchaojiang
Copy link
Owner

谢谢你反馈问题,已经修复

@silence17
Copy link
Author

好的,我试一下

@yangchaojiang
Copy link
Owner

我还没有提交尼

@silence17
Copy link
Author

请问您计划什么时候提交,我们项目里需要修改这个bug

@yangchaojiang
Copy link
Owner

你们为什么不自动播放哦

@silence17
Copy link
Author

我是商品详情页轮播图的第一页是视频,滑动到其他页是图片。
当点击图片查看大图左右滑动还能滑动到视频页,再次滑到视频的时候,产品要求视频不能自动播放。

@yangchaojiang
Copy link
Owner

哦哦哦

@yangchaojiang
Copy link
Owner

版本2.3.13

@yangchaojiang
Copy link
Owner

您好 ,问题解决了吗

@silence17
Copy link
Author

不好意思刚看到,没问题了

@yangchaojiang
Copy link
Owner

那我关闭了哦

@silence17
Copy link
Author

嗯呢,没问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants