VideoContext icon indicating copy to clipboard operation
VideoContext copied to clipboard

changing source of a sourcenode

Open gossi opened this issue 6 years ago • 1 comments

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.

gossi avatar Jul 29 '17 11:07 gossi

Sounds good to me. Thanks @gossi

PTaylour avatar Mar 05 '18 10:03 PTaylour