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

一个小问题 #46

Closed
junchenChow opened this issue Jan 18, 2017 · 6 comments
Closed

一个小问题 #46

junchenChow opened this issue Jan 18, 2017 · 6 comments

Comments

@junchenChow
Copy link

junchenChow commented Jan 18, 2017

在recyclerview中的demo 播放完毕之后点击上锁之后会出现一些问题 作者可以看看demo~

@CarGuo
Copy link
Owner

CarGuo commented Jan 18, 2017

没发现呢,是哪个recyclerView?

@junchenChow
Copy link
Author

recyclerview2 的问题稍微严重一点 退出全屏还是之前那个奇怪的样子 就是视频真正播放完毕了之后 你再去点击上锁 然后再解锁 这个时候 ui就出问题了 可能是touch事件有地方没判断好 怎么点都是之前上锁的样子

@junchenChow
Copy link
Author

junchenChow commented Jan 18, 2017

还有一个小问题 应该是我自己的问题 我继承了StandardGSYVideoPlayer 重载了一下布局 里面的控件没有删改 没有改源码 。
其他的都是好的 就是底部的seekbar 拖动不了 打了下断点mHadPlay始终都是false然后就进行不下去了, 只能把mHadPlay 改成mCurrentState ==CURRENT_STATE_PLAYING才行。
是不是我调用的姿势不对 求指教。
gsy1

gsy2

@CarGuo
Copy link
Owner

CarGuo commented Jan 19, 2017

原来是那个锁定触摸,我理解成那个锁屏幕了,这个我改一下。至于继承后seekbar拖动不了,这个只能说那个seekbar的id是不是一致的,seekbar上面是不是还有东西阻挡了触摸,或者你重新增加了什么逻辑,这个我还真不好说,现在是在seekbar拖动后的回调的stopdrag里面做逻辑的。

@junchenChow
Copy link
Author

junchenChow commented Jan 19, 2017

seekbar的相关的都没有改 id我改了肯定就报错了 布局里面的排列也是没怎么动过 上面盖着什么那肯定也不是 我可以拖动seekbar 但是拖动完之后就回到原点了 那肯定就是没有seek成功 我就是在stopDrag里面打的断点发现mHadPlay一直都是false 逻辑也没有改 就是单纯的继承了重载了一下布局。

@CarGuo
Copy link
Owner

CarGuo commented Jan 19, 2017

mHadPlay在初始化和release的时候是false,在onPrepared的时候是true,全屏的时候会把这个状态也附值给全屏播放器。

@CarGuo CarGuo closed this as completed Feb 7, 2017
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