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

position>=contentLength || localStream==null 这个判断是不是有问题 #21

Open
GordonChicago opened this issue Dec 8, 2020 · 0 comments

Comments

@GordonChicago
Copy link

if(position>=contentLength || localStream==null){
return -1;
}

这个是CacheMediaDataSource中readAt判断
当第一次加载视频的时候,initInputStream()中走打开网络流contentLength没有被赋值,默认为0,此时返回-1

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