Web components are implemented using custom elements which are just plain JS classes that extend the HTMLElement class, so you would access the property the same way you would access a property in a normal JS class.
element.srcObject is very useful for <video> elements when the srcObject is a direct stream feed from the camera. I don’t even know how I would go about passing that as a string attribute.
politelemon|1 year ago
throwitaway1123|1 year ago
jaffathecake|1 year ago
runarberg|1 year ago
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaEl...