Skip to content

Commit 8fdbc1f

Browse files
committed
Remove the showInfo prop, non-breaking because already not supported by YouTube
1 parent 5f8209d commit 8fdbc1f

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import YouTube from '@u-wave/react-youtube';
4545
| modestBranding | bool | false | Remove most YouTube logos from the player.<br>https://developers.google.com/youtube/player_parameters#modestbranding |
4646
| playsInline | bool | false | Whether to play the video inline on iOS, instead of fullscreen.<br>https://developers.google.com/youtube/player_parameters#playsinline |
4747
| showRelatedVideos | bool | true | Whether to show related videos after the video is over.<br>https://developers.google.com/youtube/player_parameters#rel |
48-
| showInfo | bool | true | Whether to show video information (uploader, title, etc) before the video starts.<br>**This parameter has been deprecated and has no effect.**<br>https://developers.google.com/youtube/player_parameters#showinfo |
4948
| volume | number | | The playback volume, **as a number between 0 and 1**. |
5049
| muted | bool | | Whether the video's sound should be muted. |
5150
| suggestedQuality | string | | The suggested playback quality.<br>https://developers.google.com/youtube/iframe_api_reference#Playback_quality |
@@ -61,7 +60,6 @@ import YouTube from '@u-wave/react-youtube';
6160
| onPlaybackRateChange | function | | |
6261
| onPlaybackQualityChange | function | | |
6362

64-
6563
## Related
6664

6765
- [react-dailymotion][] - A Dailymotion component with a similar declarative API.

index.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ export interface YouTubeProps {
108108
*/
109109
showRelatedVideos?: boolean;
110110
/**
111-
* Whether to show video information (uploader, title, etc) before the video
112-
* starts.
113-
*
114-
* https://developers.google.com/youtube/player_parameters#showinfo
111+
* @deprecated This property was removed from the YouTube API.
115112
*/
116113
showInfo?: boolean;
117114

src/index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ class YouTube extends React.Component {
106106
modestbranding: this.props.modestBranding ? 1 : 0,
107107
playsinline: this.props.playsInline ? 1 : 0,
108108
rel: this.props.showRelatedVideos ? 1 : 0,
109-
showinfo: this.props.showInfo ? 1 : 0,
110109
};
111110
/* eslint-enable react/destructuring-assignment */
112111
}
@@ -352,15 +351,6 @@ if (process.env.NODE_ENV !== 'production') {
352351
* https://developers.google.com/youtube/player_parameters#rel
353352
*/
354353
showRelatedVideos: PropTypes.bool,
355-
/**
356-
* Whether to show video information (uploader, title, etc) before the video
357-
* starts.
358-
*
359-
* **This parameter has been deprecated and has no effect.**
360-
*
361-
* https://developers.google.com/youtube/player_parameters#showinfo
362-
*/
363-
showInfo: PropTypes.bool,
364354

365355
/**
366356
* The playback volume, **as a number between 0 and 1**.
@@ -434,7 +424,6 @@ YouTube.defaultProps = {
434424
modestBranding: false,
435425
playsInline: false,
436426
showRelatedVideos: true,
437-
showInfo: true,
438427
onCued: () => {},
439428
onBuffering: () => {},
440429
onPlaying: () => {},

0 commit comments

Comments
 (0)