New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/expose control props #332
Feat/expose control props #332
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## main #332 +/- ##
==========================================
- Coverage 80.83% 80.25% -0.59%
==========================================
Files 38 38
Lines 4722 4800 +78
Branches 154 156 +2
==========================================
+ Hits 3817 3852 +35
- Misses 896 939 +43
Partials 9 9
|
packages/mux-player/src/template.ts
Outdated
@@ -80,6 +80,8 @@ export const content = (props: MuxTemplateProps) => html` | |||
default-hidden-captions="${props.defaultHiddenCaptions}" | |||
forward-seek-offset="${props.forwardSeekOffset}" | |||
backward-seek-offset="${props.backwardSeekOffset}" | |||
playbackrates="${props.playbackRates ?? false}" | |||
hide-duration="${props.hideDuration ?? false}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: This was another case of attributes vs. props from getProps
stepping on toes, where, even for a boolean, I have to handle this with nullish coalescing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thought
9475433
to
2388bdb
Compare
c34a929
to
8d6dd35
Compare
…types to use a generic component type.
…rops and attrs plus general readme cleanup.
…ttributeChangedCallback for time-display.
… to attribute for duration.
40dc14f
to
8e7024f
Compare
Adding props & attributes to mux player react to support configurable:
Also pre-reqs for this PR:
This is based on current goals for control customization.