To change the src for a node, I used node.element.src = newSrc; which of course works, however doesn't align with the given ctx.video(src); API. In video() src can be different types, while node.element.src is explicitely a string with a url. Should be more dev friendly to offer:
To change the
src
for a node, I usednode.element.src = newSrc;
which of course works, however doesn't align with the givenctx.video(src);
API. Invideo()
src can be different types, whilenode.element.src
is explicitely a string with a url. Should be more dev friendly to offer:and then to process the input accordingly.