Discussion: CustomMediaElement #262
cjpillsbury
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal -
CustomMediaElement
(plus decisions on where it lives)Our original goal was to use CustomVideoElement as the superclass of
mux-video
. For the short term, we ended up instead duplicating it with minor changes to meet our immediate goals formux-video
. Since we may eventually want to promote our changes back toCustomVideoElement
, we intentionally kept these changes narrow.However, given the very similar needs of
mux-audio
on a nearly identicalCustomAudioElement
, we may want to consider creating a more genericCustomMediaElement
.Things we should come to a decision on before Beta Release
Should we update https://github.com/muxinc/custom-video-element at all (this would include changes made for 0.1 release)?
Should we create a new superclass,
CustomMediaElement
?CustomVideoElement
If we create a new
CustomMediaElement
, do we still need aCustomVideoElement
andCustomAudioElement
CustomVideoElement
. However, this could be refactored to work differently such that these "intermediary" and almost identical class definitions would be unnecessary.Should mux-elements have a dependency on either an external
CustomVideoElement
& (a new)CustomAudioElement
orCustomMediaElement
(the alternative would be to have something defined in mux-elements instead)?mux-video
andmux-audio
would get any new features or bug fixes for free that may be identified from folks using it independently of mux-elements.CustomVideoElement
is not (currently) managed as a "mature, production-ready package" (with robust tests, robust semver management, both also directly related to any packages that depend on it, etc.)CustomMediaElement
orCustomVideoElement
that we would not want in a shared version of these custom elements. This is plausible in particular as we start adding more explicit support for app framework implementations of mux-elementsNOTES:
Beta Was this translation helpful? Give feedback.
All reactions