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

缓存完成的判断逻辑应该是有点问题的 #299

Open
xl20071926 opened this issue Jun 19, 2020 · 1 comment
Open

缓存完成的判断逻辑应该是有点问题的 #299

xl20071926 opened this issue Jun 19, 2020 · 1 comment

Comments

@xl20071926
Copy link

JPVideoPlayerCacheFile 里面的isCompleted 判断有问题,测试一下视频已经播放几遍了,本地缓存应该已经完成了,但是获取的isCompleted 还是NO,看了下isCompleted 是根据 internalFragmentRanges 判断的,internalFragmentRanges 这一块的处理逻辑目前没有看的太明白,能否指点一下么,非常感谢。
WechatIMG178

@xl20071926
Copy link
Author

WechatIMG179
找到问题点,这个数组同时存数据的时候造成的数据乱了,加个锁就好了

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

1 participant