Skip to content

Commit

Permalink
Merge pull request #53 from tarikhamilton/update-default-size
Browse files Browse the repository at this point in the history
Update player height to match 16:9 ratio
  • Loading branch information
Kaoru Hagihara committed Nov 16, 2018
2 parents bf7fc40 + 3f6bd7f commit 0c3363b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -52,7 +52,7 @@ Please pass the ID of the video that you'd like to show.
These are available props.

* `player-width`: `String` or `Number`, default value is `640`
* `player-height`: `String` or `Number`, default value is `390`
* `player-height`: `String` or `Number`, default value is `360`
* `player-vars`: `Object`, default value is `{start: 0, autoplay: 0}` Can also specify `rel`.
* `video-id`: `String`, `required`
* `mute`: `Boolean` default value is `false`
Expand Down
2 changes: 1 addition & 1 deletion example/app.js
Expand Up @@ -9,7 +9,7 @@ window.app = new Vue({
nextId: '',
videos: [],
width: '640',
height: '390'
height: '360'
},
methods: {
pause: function () {
Expand Down
2 changes: 1 addition & 1 deletion lib/vue-youtube-embed.js
Expand Up @@ -101,7 +101,7 @@ var YouTubePlayer = {
props: {
playerHeight: {
type: [String, Number],
default: '390'
default: '360'
},
playerWidth: {
type: [String, Number],
Expand Down
2 changes: 1 addition & 1 deletion lib/vue-youtube-embed.umd.js
Expand Up @@ -107,7 +107,7 @@
props: {
playerHeight: {
type: [String, Number],
default: '390'
default: '360'
},
playerWidth: {
type: [String, Number],
Expand Down
2 changes: 1 addition & 1 deletion play/Size.vue
Expand Up @@ -21,7 +21,7 @@ export default {
data () {
return {
title: 'Height and Width',
height: 390,
height: 360,
width: 640
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/player.js
Expand Up @@ -6,7 +6,7 @@ export default {
props: {
playerHeight: {
type: [String, Number],
default: '390'
default: '360'
},
playerWidth: {
type: [String, Number],
Expand Down
2 changes: 1 addition & 1 deletion test/player.spec.js
Expand Up @@ -53,7 +53,7 @@ describe('YouTubePlayer', () => {

assert.equal(vm.videoId, 'videoId')
assert.equal(vm.playerWidth, '640')
assert.equal(vm.playerHeight, '390')
assert.equal(vm.playerHeight, '360')
})
})

Expand Down

0 comments on commit 0c3363b

Please sign in to comment.