diff --git a/apps/web/app.js b/apps/web/app.js index 4dce7e5..483a3df 100644 --- a/apps/web/app.js +++ b/apps/web/app.js @@ -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. diff --git a/evolution/proposals/ECP-0075-moq-watch-0.2.0-live-stability.md b/evolution/proposals/ECP-0075-moq-watch-0.2.0-live-stability.md index 92248ec..e2d4311 100644 --- a/evolution/proposals/ECP-0075-moq-watch-0.2.0-live-stability.md +++ b/evolution/proposals/ECP-0075-moq-watch-0.2.0-live-stability.md @@ -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 `` so minor-version attribute differences do not break subscription. ## Rationale