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.