Skip to content

Commit

Permalink
feat: add controls prop (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
educkf authored and Dobromir Hristov committed Jan 15, 2020
1 parent 05dced9 commit 9a8213b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ Another option is to use the [no-ssr](https://nuxtjs.org/api/components-no-ssr/)
<td>Upon reaching the end of the video, automatically seek back to the start.</td>
<td>No</td>
</tr>
<tr>
<td>controls</td>
<td>Boolean</td>
<td>true</td>
<td>This parameter if `false` will hide all elements in the player (play bar, sharing buttons, etc) for a chromeless experience. ⚠️Warning: When using this parameter, the play bar and UI will be hidden. To start playback for your viewers, you'll need to either enable autoplay or use our player SDK to start and control playback. **(available to Plus, PRO, or Business members)**</td>
<td>No</td>
</tr>
</table>

## Methods
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"standard-version": "^4.2.0"
},
"dependencies": {
"@vimeo/player": "^2.6.3",
"@vimeo/player": "^2.10.0",
"object-assign": "^4.1.1"
},
"peerDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export default {
},
autoplay: {
default: false
},
controls: {
default: true
}
},
render (h) {
Expand Down Expand Up @@ -104,7 +107,8 @@ export default {
width: this.playerWidth,
height: this.playerHeight,
loop: this.loop,
autoplay: this.autoplay
autoplay: this.autoplay,
controls: this.controls
}
if (this.videoUrl) { options.url = this.videoUrl }

Expand Down

0 comments on commit 9a8213b

Please sign in to comment.