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
If your build system supports `import()` statements and code splitting enable this to lazy load the appropriate player for the `url` you pass in. This adds several `reactPlayer` chunks to your output, but reduces your main bundle size.
42
+
If your build system supports `import()` statements and code splitting enable this to lazy load the appropriate player for the `src` you pass in. This adds several `reactPlayer` chunks to your output, but reduces your main bundle size.
@@ -103,7 +103,7 @@ There is a single `config` prop to override settings for each type of player:
103
103
104
104
```jsx
105
105
<ReactPlayer
106
-
url={url}
106
+
src={src}
107
107
config={{
108
108
youtube: {
109
109
color:'white',
@@ -126,7 +126,7 @@ Key | Options
126
126
127
127
Method | Description
128
128
------ | -----------
129
-
`ReactPlayer.canPlay(url)` | Determine if a URL can be played. This does *not* detect media that is unplayable due to privacy settings, streaming permissions, etc. In that case, the `onError` prop will be invoked after attempting to play. Any URL that does not match any patterns will fall back to a native HTML5 media player.
129
+
`ReactPlayer.canPlay(src)` | Determine if a URL can be played. This does *not* detect media that is unplayable due to privacy settings, streaming permissions, etc. In that case, the `onError` prop will be invoked after attempting to play. Any URL that does not match any patterns will fall back to a native HTML5 media player.
130
130
`ReactPlayer.addCustomPlayer(CustomPlayer)` | Add a custom player. See [Adding custom players](#adding-custom-players)
131
131
`ReactPlayer.removeCustomPlayers()` | Remove any players that have been added using `addCustomPlayer()`
132
132
@@ -157,7 +157,7 @@ Set `width` to `100%`, `height` to `auto` and add an `aspectRatio` like `16 / 9`
0 commit comments