From 21ccbe9e558e46dc87e43b37724124b5427d121a Mon Sep 17 00:00:00 2001 From: antiosh Date: Tue, 14 Oct 2025 14:03:28 +1300 Subject: [PATCH] Fix: Add disableRemotePlayback prop --- README.md | 1 + src/Player.tsx | 1 + src/props.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index ad06f71f..2731f1ee 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Prop | Description | Default `playing` | Set to `true` or `false` to play or pause the media | `undefined` `preload` | Applies the `preload` attribute where supported | `undefined` `playsInline` | Applies the `playsInline` attribute where supported | `false` +`disableRemotePlayback` | Applies the `disableRemotePlayback` attribute where supported | `false` `crossOrigin` | Applies the `crossOrigin` attribute where supported | `undefined` `loop` | Set to `true` or `false` to loop the media | `false` `controls` | Set to `true` or `false` to display native player controls.
  ◦  For Vimeo videos, hiding controls must be enabled by the video owner. | `false` diff --git a/src/Player.tsx b/src/Player.tsx index 455eab1b..c88fab27 100644 --- a/src/Player.tsx +++ b/src/Player.tsx @@ -105,6 +105,7 @@ const Player: Player = React.forwardRef((props, ref) => { autoPlay={props.autoPlay} loop={props.loop} playsInline={props.playsInline} + disableRemotePlayback={props.disableRemotePlayback} config={props.config} onLoadStart={handleLoadStart} onPlay={handlePlay} diff --git a/src/props.ts b/src/props.ts index 674a1e34..ec93c019 100644 --- a/src/props.ts +++ b/src/props.ts @@ -12,6 +12,7 @@ export const defaultProps: ReactPlayerProps = { // loop: false, // controls: false, // playsInline: false, + // disableRemotePlayback: false, width: '320px', height: '180px',