Several issues in custom-video-element are fixed in custom-media-element and adds a few new features.
fixes the bug of attributes not being available in an eagerly upgraded custom video element
the handling of attributes / properties is different than before in that it doesn't set properties by default in the attribute callback causing a potential endless loop if the override property was not gated e.g. if (this.loop == value) return;
the observed attributes are limited to a static list that can be added on by the extending class.
events can be attached before the custom media element is upgraded
properties can be set before the custom media element is upgraded
Custom media element is the successor of https://github.com/muxinc/custom-video-element. It adds a way to easily extend the
<audio>
element in addition to the<video>
element.Several issues in custom-video-element are fixed in custom-media-element and adds a few new features.
if (this.loop == value) return;
video
oraudio
for internal stylingcastable-video
)