VideoPlayerDemo icon indicating copy to clipboard operation
VideoPlayerDemo copied to clipboard

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

Open GordonChicago opened this issue 4 years ago • 0 comments

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

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

GordonChicago avatar Dec 08 '20 11:12 GordonChicago