JeffMony / JeffVideoCache

Better than AndroidVideoCache, it supports M3U8 and MP4
Apache License 2.0
290 stars 65 forks source link

Mp4CacheTask.getRequestRange() 逻辑困惑 #18

Open IHaveALittleMouse opened 2 years ago

IHaveALittleMouse commented 2 years ago

当 mVideoRangeMap 为空时,为什么从 0 开始缓存,而不是从 position 开始缓存

public VideoRange getRequestRange(long position) {
  if (mVideoRangeMap.size() == 0) {
      return new VideoRange(0, mTotalSize);
  }
  ...
}