Skip to content

Commit

Permalink
controls is pro-only, closes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Oct 12, 2022
1 parent e6dcb93 commit fd61877
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Vimeo from '@u-wave/react-vimeo';
| showByline | bool | true | Show the byline on the video. |
| color | string | | Specify the color of the video controls. Colors may be overridden by the embed settings of the video. _(Ex: "ef2f9f")_ |
| dnt | bool | false | Blocks the player from tracking any session data, including all cookies and analytics. |
| controls | bool | true | Hide all elements in the player (play bar, sharing buttons, etc). |
| controls | bool | true | Hide all elements in the player, such as the progress bar, sharing buttons, etc. (requires Vimeo PRO / Business account) |
| loop | bool | false | Play the video again when it reaches the end. |
| showPortrait | bool | true | Show the portrait on the video. |
| showTitle | bool | true | Show the title on the video. |
Expand Down Expand Up @@ -69,9 +69,6 @@ import Vimeo from '@u-wave/react-vimeo';
| onPlaybackRateChange | function | | Triggered when the playback rate changes. |
| onLoaded | function | | Triggered when a new video is loaded in the player. |




## Related

- [@u-wave/react-youtube][] - A YouTube component with a similar declarative API.
Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export interface VimeoProps {
color?: string

/**
* Hide all elements in the player (play bar, sharing buttons, etc).
* Hide all elements in the player, such as the progress bar, sharing buttons, etc.
* (requires Vimeo PRO / Business account)
*/
controls?: boolean

Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ if (process.env.NODE_ENV !== 'production') {

// Player controls
/**
* Hide all elements in the player (play bar, sharing buttons, etc).
* Hide all elements in the player, such as the progress bar, sharing buttons, etc.
* (requires Vimeo PRO / Business account)
*/
controls: PropTypes.bool,

Expand Down

0 comments on commit fd61877

Please sign in to comment.