Skip to content

Commit 4650cb0

Browse files
authored
feat: Add disableRemotePlayback prop (#2004)
1 parent e09d35f commit 4650cb0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Prop | Description | Default
5959
`playing` | Set to `true` or `false` to play or pause the media | `undefined`
6060
`preload` | Applies the `preload` attribute where supported | `undefined`
6161
`playsInline` | Applies the `playsInline` attribute where supported | `false`
62+
`disableRemotePlayback` | Applies the `disableRemotePlayback` attribute where supported | `false`
6263
`crossOrigin` | Applies the `crossOrigin` attribute where supported | `undefined`
6364
`loop` | Set to `true` or `false` to loop the media | `false`
6465
`controls` | Set to `true` or `false` to display native player controls.<br/>&nbsp;&nbsp;For Vimeo videos, hiding controls must be enabled by the video owner. | `false`

src/Player.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const Player: Player = React.forwardRef((props, ref) => {
105105
autoPlay={props.autoPlay}
106106
loop={props.loop}
107107
playsInline={props.playsInline}
108+
disableRemotePlayback={props.disableRemotePlayback}
108109
config={props.config}
109110
onLoadStart={handleLoadStart}
110111
onPlay={handlePlay}

src/props.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const defaultProps: ReactPlayerProps = {
1212
// loop: false,
1313
// controls: false,
1414
// playsInline: false,
15+
// disableRemotePlayback: false,
1516
width: '320px',
1617
height: '180px',
1718

0 commit comments

Comments
 (0)