mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
refactor(mediabunny): [PKG-MB-04] isolate typed playback and readiness coordination
This commit is contained in:
1 parent
9af253a5a9
commit
5d0b128483
29 files changed
+2841
-726
No files matched your search
@@ -87,7 +87,8 @@ export default class VideoShim {
|
||||
}
|
||||
|
||||
set currentTime(t: unknown) {
|
||||
this.engine.seek(Number(t) || 0)
|
||||
// The coordinator reports active failures; the synchronous setter must observe rejection.
|
||||
void Promise.resolve(this.engine.seek(Number(t) || 0)).catch(() => {})
|
||||
}
|
||||
|
||||
get duration() {
|
||||
|
||||
Reference in new issue
Block a user