diff --git a/examples/nextjs-with-typescript/pages/MuxPlayer.tsx b/examples/nextjs-with-typescript/pages/MuxPlayer.tsx index a132588c7..b7068d348 100644 --- a/examples/nextjs-with-typescript/pages/MuxPlayer.tsx +++ b/examples/nextjs-with-typescript/pages/MuxPlayer.tsx @@ -124,6 +124,7 @@ const DEFAULT_INITIAL_STATE: Partial = Object.freeze({ streamType: undefined, storyboardSrc: undefined, theme: undefined, + proudlyDisplayMuxBadge: undefined, }); const SMALL_BREAKPOINT = 700; @@ -329,6 +330,7 @@ function MuxPlayerPage({ location }: Props) { defaultDuration={state.defaultDuration} playbackRate={state.playbackRate} playbackRates={state.playbackRates} + proudlyDisplayMuxBadge={state.proudlyDisplayMuxBadge} onPlay={(evt: Event) => { onPlay(evt); // dispatch(updateProps({ paused: false })); @@ -471,6 +473,7 @@ function MuxPlayerPage({ location }: Props) { /> + = Object.freeze({ tokens: undefined, playbackId: undefined, streamType: undefined, + proudlyDisplayMuxBadge: undefined, }); const reducer = (state: Partial<{ [k: string]: any }>, action): Partial<{ [k: string]: any }> => { @@ -348,6 +349,7 @@ function MuxPlayerPage({ location }: Props) { audio={state.audio} primaryColor={state.primaryColor} secondaryColor={state.secondaryColor} + proudlyDisplayMuxBadge={state.proudlyDisplayMuxBadge} defaultShowRemainingTime={state.defaultShowRemainingTime} defaultHiddenCaptions={state.defaultHiddenCaptions} /** @TODO This doesn't appear to work? (CJP) */ diff --git a/examples/vanilla-ts-esm/public/mux-player.html b/examples/vanilla-ts-esm/public/mux-player.html index 1d48dbc22..d96f20408 100644 --- a/examples/vanilla-ts-esm/public/mux-player.html +++ b/examples/vanilla-ts-esm/public/mux-player.html @@ -65,6 +65,12 @@

Live

title="My amazing video" > + + Browse Elements diff --git a/packages/mux-player-react/REFERENCE.md b/packages/mux-player-react/REFERENCE.md index 9a18b22b3..3f4da7e61 100644 --- a/packages/mux-player-react/REFERENCE.md +++ b/packages/mux-player-react/REFERENCE.md @@ -53,6 +53,7 @@ | `castCustomData` | `object` (JSON-serializable) | [Custom Data](https://developers.google.com/cast/docs/reference/web_sender/chrome.cast.media.MediaInfo#customData) to send to your Google cast receiver on initial load. If none is provided, various Mux key/value pairs will be sent. | Mux-specific object | | `playerInitTime` | `number` (timestamp) | Overrides the default [player initialization time](https://docs.mux.com/guides/make-your-data-actionable-with-metadata#optional-configurable-metadata), used by Mux Data for time-based [quality-of-experience (QOE) metrics](https://docs.mux.com/guides/understand-metric-definitions). It will be inferred from instantiation time by default. | Varies | | `ref` | [React `ref`](https://reactjs.org/docs/refs-and-the-dom.html) | A [React `ref`](https://reactjs.org/docs/refs-and-the-dom.html) to the underlying [`MuxPlayerElement`](../mux-player/REFERENCE.md) web component | `undefined` | +| `proudlyDisplayMuxBadge`| `boolean` | Controls whether to show the Mux badge in the player UI | `false` | + +