分片加载 +1
This commit is contained in:
parent
6cd1bece7d
commit
515492ccab
@ -171,7 +171,7 @@ export default class MusicList {
|
|||||||
await new Promise(resolve => setTimeout(resolve, 100))
|
await new Promise(resolve => setTimeout(resolve, 100))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
console.log('播放器加载分片:', item.name, `${index}/${chunkNumber}`)
|
console.log('播放器加载分片:', item.name, `${index+1}/${chunkNumber}`)
|
||||||
const chunk = item.arrayBufferChunks[index] // 顺序取出一个arrayBuffer分片
|
const chunk = item.arrayBufferChunks[index] // 顺序取出一个arrayBuffer分片
|
||||||
sourceBuffer.appendBuffer(chunk) // 添加到sourceBuffer
|
sourceBuffer.appendBuffer(chunk) // 添加到sourceBuffer
|
||||||
index++
|
index++
|
||||||
|
Loading…
Reference in New Issue
Block a user