Skip to content

Commit

Permalink
chore: Update nextjs MuxPlayer page to allow for setting width explic…
Browse files Browse the repository at this point in the history
…itly.
  • Loading branch information
cjpillsbury committed Nov 7, 2024
1 parent 5112543 commit 3f0156d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/nextjs-with-typescript/pages/MuxPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,14 @@ function MuxPlayerPage({ location }: Props) {
}}
values={['extra-small', 'small', 'large']}
/>
<NumberRenderer
value={stylesState.width}
name="width"
label="Explicit Width"
onChange={({ width }) => {
dispatchStyles(updateProps({ width }));
}}
/>
<BooleanRenderer value={state.audio} name="audio" onChange={genericOnChange} />
<EnumRenderer
value={state.theme}
Expand Down

0 comments on commit 3f0156d

Please sign in to comment.