Skip to main content

restore 恢复保存的播放状态

restore

类型: MethodDeclaration

所属类: SingleAudioPlayer

定义位置: audio.ts

描述

恢复保存的播放状态

返回值

类型: void

源代码

位置: 第 216 行

public restore(): void {
const cache = this.cache
if (cache !== null) {
const audio = this.audio
audio.src = Loader.getBlobOrRawUrl(cache.guid)
audio.guid = cache.guid
audio.currentTime = cache.offset
this.cache = null
}
}

文档生成时间:2025/7/7 12:07:06