bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

changing source of a sourcenode #58

Open gossi opened 7 years ago

gossi commented 7 years ago

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.

PTaylour commented 6 years ago

Sounds good to me. Thanks @gossi