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

video deactive逻辑小bug #33

Open
mccccccmike opened this issue Aug 15, 2017 · 1 comment
Open

video deactive逻辑小bug #33

mccccccmike opened this issue Aug 15, 2017 · 1 comment
Labels

Comments

@mccccccmike
Copy link

你好,当recyclerview一个item播放视频时,此时滑动recyclerview,小bug是当video item符合deactive条件,并且recyclerview处于idle状态才会deactive 这个video item。不会在video item符合deactive条件,并且处于滑动状态deactive这个video item。
第二个问题是,缺少mediaplayer状态管理机制,我自己简单的实现了一下,activity/fragment生命周期与texturevideoview的mediaplayer关联起来,这样,当video item播放视频时,启动一个activity,此时video item 的mediaplayer会随着新activity的启动销毁,返回时,video item 无法播放视频。希望,我再完善一下可以pull request。
第一个问题,我还在研究,希望可以共同研究一下。
水平有限,有不对的地方,请多指教。

@waynell
Copy link
Owner

waynell commented Oct 16, 2017

关于第一个问题,当初这么做是为了在滑动时不会频繁active video,所以做了在滑动静止时才检测当前可以被active的item @mccccccmike

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

No branches or pull requests

2 participants