VideoContext
VideoContext copied to clipboard
changing source of a sourcenode
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:
class VideoNode {
set src() {}
}
and then to process the input accordingly.
Sounds good to me. Thanks @gossi