17 Commits
Author SHA1 Message Date
Jordan Eldredge c85e44c96b Add setTracks instance method (#1380)
* Add setTracks instance method

setTracksToPlay always starts playing the first track, so embedders who want
to swap the source without autoplaying had to dispose() and create a new
instance. setTracks replaces the playlist, stops any current playback, and
loads the first track (like initialTracks) without playing it.

* Add changelog entry and cite version in docs
2026-10-15 10:06:33 -07:00
Jordan Eldredge 37523b3e2e Add onMediaError instance method (#1379)
* Add onMediaError instance method

When a track fails to load or decode, Webamp logs the error and continues as
if the track had ended, so embedders could not tell an unplayable file from
the end of a track.

ElementSource now emits an "error" event with the MediaError code, which
Media re-emits and the media middleware dispatches as MEDIA_ERROR. The new
webamp.onMediaError(cb) subscribes to it. The existing behavior of treating
the error as the end of the track is unchanged.

* Fix lint and type errors in onMediaError test

* Add changelog entry and cite version in docs
2026-10-15 09:51:40 -07:00
Jordan EldredgeandClaude Opus 4.6 6c3dd2a793 Update docs, examples, and version for v2.3.0
- Bump package.json and Webamp.VERSION to 2.3.0
- Move changelog Unreleased items into 2.3.0 section
- Update "unreleased" references in docs to v2.3.0
- Switch all examples from renderWhenReady to renderInto
- Update multipleMilkdropPresets to use stable @^2 instead of @next
- Update lazy example to webamp@^2.3.0
- Update release skill with version bump and changelog steps

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-06-15 20:42:10 -07:00
Jordan EldredgeandClaude Opus 4.6 a0c018ac0f Fix incorrect method name in renderInto docs example
The code example for renderInto was calling renderWhenReady instead.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-06-15 10:32:05 -07:00
Jordan Eldredge 2fe3235d51 Remove contained example and clarify position requirements 2026-01-01 15:44:11 -08:00
Lorenzo StancoandJordan Eldredge 162025f8a0 Webamp optionally fully contained into a DOM element (#1338)
* Webamp optionally fully contained into a DOM element

* Fix spelling

* Reenable updating search index for uploads

* Replace contained flag on renderWhenReady with a new method. Add docs

---------

Co-authored-by: Jordan Eldredge <[email protected]>
2025-12-31 14:59:14 -08:00
Jordan Eldredge a4dec85406 Document butterchurn entrypoint 2025-07-14 17:57:20 -07:00
Jordan Eldredge b02fc7a5c6 Update docs 2025-07-12 23:44:21 -07:00
Jordan Eldredge eb0898fe4e Add getPlayerMediaStatus instance method 2025-06-29 22:44:49 -07:00
Jordan Eldredge ce483b8df5 Fix typos of Winamp when I meant Webamp 2025-06-29 14:22:19 -07:00
Jordan Eldredge 2be1e38bce Spelling typo fixes 2025-06-27 21:48:38 -07:00
Jordan Eldredge f4daf821c8 Add methods to toggle repeat and shuffle 2025-06-25 15:22:20 -07:00
Jordan Eldredge b5dc838b8a Build media session support into the NPM module 2025-06-20 08:43:04 -07:00
Jordan Eldredge 8b218e8e67 Remove onCurrentTrackDidChange 2025-06-19 13:52:51 -07:00
Jordan Eldredge 62c5af1dfb Add and document new instance methods 2025-06-19 13:44:37 -07:00
Jordan Eldredge 23c34434f3 Milkdrop docs 2025-06-19 12:02:18 -07:00
Jordan Eldredge dc59239a83 Organize and add more docs 2025-06-19 00:12:35 -07:00