diff --git a/examples/nextjs-with-typescript/pages/MuxPlayer.tsx b/examples/nextjs-with-typescript/pages/MuxPlayer.tsx index e64e8f58..0f348863 100644 --- a/examples/nextjs-with-typescript/pages/MuxPlayer.tsx +++ b/examples/nextjs-with-typescript/pages/MuxPlayer.tsx @@ -129,6 +129,7 @@ const DEFAULT_INITIAL_STATE: Partial = Object.freeze({ proudlyDisplayMuxBadge: undefined, disablePseudoEnded: undefined, capRenditionToPlayerSize: undefined, + maxReconnectRetries: undefined, }); const SMALL_BREAKPOINT = 700; @@ -285,6 +286,7 @@ function MuxPlayerPage({ location }: Props) { // }} maxAutoResolution="720p" capRenditionToPlayerSize={state.capRenditionToPlayerSize} + maxReconnectRetries={state.maxReconnectRetries} title={state.title} videoTitle={state.videoTitle} startTime={state.startTime} @@ -662,6 +664,14 @@ function MuxPlayerPage({ location }: Props) { name="capRenditionToPlayerSize" onChange={genericOnChange} /> + diff --git a/packages/mux-player-astro/src/types.ts b/packages/mux-player-astro/src/types.ts index 10a12d3c..2e088aa4 100644 --- a/packages/mux-player-astro/src/types.ts +++ b/packages/mux-player-astro/src/types.ts @@ -89,6 +89,7 @@ export type MuxPlayerProps = { initialBandwidthEstimateKbps?: number; initialEstimateSegments?: number; minPreloadSegments?: number; + maxReconnectRetries?: number; storyboardSrc?: string; preferCmcd?: ValueOf | undefined; } & astroHTML.JSX.HTMLAttributes; diff --git a/packages/mux-player-react/src/types.ts b/packages/mux-player-react/src/types.ts index 575b40da..f9515235 100644 --- a/packages/mux-player-react/src/types.ts +++ b/packages/mux-player-react/src/types.ts @@ -122,6 +122,7 @@ export type MuxPlayerProps = { themeProps?: { [k: string]: any }; fullscreenElement?: string; capRenditionToPlayerSize?: boolean; + maxReconnectRetries?: number; onAbort?: GenericEventListener; onCanPlay?: GenericEventListener; onCanPlayThrough?: GenericEventListener; diff --git a/packages/mux-video-react/src/index.tsx b/packages/mux-video-react/src/index.tsx index babb3a4c..cb4b1df8 100644 --- a/packages/mux-video-react/src/index.tsx +++ b/packages/mux-video-react/src/index.tsx @@ -124,6 +124,7 @@ MuxVideo.propTypes = { initialBandwidthEstimateKbps: PropTypes.number, initialEstimateSegments: PropTypes.number, minPreloadSegments: PropTypes.number, + maxReconnectRetries: PropTypes.number, streamType: PropTypes.oneOf(Object.values(StreamTypes)), targetLiveWindow: PropTypes.number, tokens: PropTypes.object,