web: set both moq-watch name/path attributes

This commit is contained in:
every.channel 2026-02-24 22:44:05 -08:00
parent 6569cdc4bd
commit 305ea39828
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -158,6 +158,8 @@ function mountPlayer(relayUrl, name) {
const watch = document.createElement("moq-watch");
watch.setAttribute("url", relayUrl);
// Support both @moq/watch attribute variants across minor versions.
watch.setAttribute("name", name);
watch.setAttribute("path", name);
// A canvas enables video rendering. Without it, only audio is played.

View file

@ -7,6 +7,7 @@ Production web watchers currently load `@moq/watch@0.1.1`. Under live OTA relay
## Decision
Update the web watcher module import set to `@moq/watch@0.2.0` across all CDN fallbacks (`esm.sh`, `jsdelivr`, `unpkg`).
Set both `name` and `path` attributes on `<moq-watch>` so minor-version attribute differences do not break subscription.
## Rationale