web: set both moq-watch name/path attributes
This commit is contained in:
parent
6569cdc4bd
commit
305ea39828
2 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue