Skip to content

Commit

Permalink
fix: cache data (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyuhen authored Apr 9, 2019
1 parent e2693ad commit 0b5e874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/griffith-mp4/src/mse/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ export default class MSE {

seek = time => {
FragmentFetch.clear()

const [start, end] = this.mp4Probe.getFragmentPosition(time)
this.mseUpdating = true

// 对于已经请求的数据不再重复请求
// No need to repeat request video data
const timeRange = this.mp4Probe.timeRange || []
if (this.hasBufferedCache(timeRange[1])) {
if (this.hasBufferedCache(this.video.currentTime)) {
return
}

Expand Down

0 comments on commit 0b5e874

Please sign in to comment.