You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixescookpete/react-player#357
- Fixes `onStart` not firing when changing URLs
- Moves the forced `setVolume` to run on ready instead of every play event
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,12 @@ Prop | Description | Default
65
65
`url` | The url of a video or song to play
66
66
`playing` | Set to `true` or `false` to pause or play the media | `false`
67
67
`loop` | Set to `true` or `false` to loop the media | `false`
68
-
`controls` | Set to `true` or `false` to display native player controls<br />*Note: Vimeo, Twitch and Wistia player controls are not configurable and will always display* | `false`
69
-
`volume` | Sets the volume of the appropriate player |`0.8`
70
-
`muted` | Mutes the player | `false`
71
-
`playbackRate` | Sets the playback rate of the appropriate player<br />*Note: Only supported by YouTube, Wistia, and file paths* | `1`
72
-
`width` | Sets the width of the player | `640px`
73
-
`height` | Sets the height of the player | `360px`
68
+
`controls` | Set to `true` or `false` to display native player controls<br /> ◦ Vimeo, Twitch and Wistia player will always display controls | `false`
69
+
`volume` | Set the volume of the player, between`0` and `1`<br/> ◦ `null` uses default volume on all players [`#357`](https://github.com/CookPete/react-player/issues/357) | `null`
70
+
`muted` | Mutes the player<br/> ◦ Only works if `volume` is set | `false`
71
+
`playbackRate` | Set the playback rate of the player<br /> ◦ Only supported by YouTube, Wistia, and file paths | `1`
72
+
`width` | Set the width of the player | `640px`
73
+
`height` | Set the height of the player | `360px`
74
74
`style` | Add [inline styles](https://facebook.github.io/react/tips/inline-styles.html) to the root element | `{}`
75
75
`progressInterval` | The time between `onProgress` callbacks, in milliseconds | `1000`
76
76
`playsinline` | Applies the `playsinline` attribute where supported | `false`
0 commit comments