VideoPlayerDemo
VideoPlayerDemo copied to clipboard
position>=contentLength || localStream==null 这个判断是不是有问题
if(position>=contentLength || localStream==null){ return -1; }
这个是CacheMediaDataSource中readAt判断 当第一次加载视频的时候,initInputStream()中走打开网络流contentLength没有被赋值,默认为0,此时返回-1