media-element-playout 12.2.0 — player-mode ergonomics
@waveform-playlist/media-element-playout@12.2.0 — player-mode ergonomics
Three additive, non-breaking affordances for single-track players (podcast/audiobook readers, <daw-player>):
resume()— play from the current position (plainplay()with no offset resets to 0)setSource()/load()— in-place.srcswap that reuses the element (preserving the once-per-element Web Audio source node / effects routing); silent, whileaddTrack()keeps its "Only one track is supported" warning as the misuse signal- Typed
on()/off()event emitter (MediaElementTrackEvents:loadedmetadata/play/pause/error/ended/timeupdate), forwarded by the playout across source swaps; legacysetOnXCallbacksetters retained
Notable: load() re-applies the configured playbackRate after the swap — the HTML media-element load algorithm resets it to 1.0.