Skip to content

Commit

Permalink
chore: Update MuxPlayer nextjs page to support preferPlayback field.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpillsbury committed Sep 9, 2024
1 parent f6f99b3 commit 2aaf75a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/nextjs-with-typescript/pages/MuxPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function MuxPlayerPage({ location }: Props) {
hotkeys={state.hotkeys}
// onPlayerReady={() => console.log("ready!")}
preferCmcd={state.preferCmcd}
preferPlayback={state.preferPlayback}
debug={state.debug}
noVolumePref={state.noVolumePref}
disableTracking={state.disableTracking}
Expand Down Expand Up @@ -506,6 +507,12 @@ function MuxPlayerPage({ location }: Props) {
onChange={genericOnChange}
values={['query', 'header', 'none']}
/>
<EnumRenderer
value={state.preferPlayback}
name="preferPlayback"
onChange={genericOnChange}
values={['mse', 'native']}
/>
<BooleanRenderer value={state.loop} name="loop" onChange={genericOnChange} />
<EnumRenderer
value={state.crossOrigin}
Expand Down

0 comments on commit 2aaf75a

Please sign in to comment.