feat: playback bar component, save system improvements, demo and roadmap updates

This commit is contained in:
2026-06-09 14:21:41 +08:00
parent ca71b6d52e
commit 660fa9347c
9 changed files with 222 additions and 16 deletions

View File

@@ -155,6 +155,15 @@ export class VideoManager {
this.active.currentTime = time
}
setPlaybackRate(rate: number) {
if (this.elA) this.elA.playbackRate = rate
if (this.elB) this.elB.playbackRate = rate
}
getPlaybackRate(): number {
return this.active?.playbackRate ?? 1
}
setMuted(muted: boolean) {
if (this.elA) this.elA.muted = muted
if (this.elB) this.elB.muted = muted