Skip to content

Commit

Permalink
Merge branch 'feature/nocookie-support' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerben van Dijk committed Jun 6, 2019
2 parents 0c3363b + 1e84984 commit c42c978
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ These are available props.
* `player-vars`: `Object`, default value is `{start: 0, autoplay: 0}` Can also specify `rel`.
* `video-id`: `String`, `required`
* `mute`: `Boolean` default value is `false`
* `host`: `String` default value is `https://www.youtube.com`. Can be set to `https://www.youtube-nocookie.com` as well.

### Methods

Expand Down
7 changes: 6 additions & 1 deletion lib/vue-youtube-embed.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Vue YouTube Embed version 2.2.1
* under MIT License copyright 2018 kaorun343
* under MIT License copyright 2019 kaorun343
*/
// fork from https://github.com/brandly/angular-youtube-embed

Expand Down Expand Up @@ -117,6 +117,10 @@ var YouTubePlayer = {
mute: {
type: Boolean,
default: false
},
host: {
type: String,
default: 'https://www.youtube.com'
}
},
render: function render (h) {
Expand Down Expand Up @@ -175,6 +179,7 @@ var YouTubePlayer = {
width: playerWidth,
playerVars: playerVars,
videoId: videoId,
host: host,
events: {
onReady: function (event) {
this$1.setMute(this$1.mute);
Expand Down
7 changes: 6 additions & 1 deletion lib/vue-youtube-embed.umd.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Vue YouTube Embed version 2.2.1
* under MIT License copyright 2018 kaorun343
* under MIT License copyright 2019 kaorun343
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
Expand Down Expand Up @@ -123,6 +123,10 @@
mute: {
type: Boolean,
default: false
},
host: {
type: String,
default: 'https://www.youtube.com'
}
},
render: function render (h) {
Expand Down Expand Up @@ -181,6 +185,7 @@
width: playerWidth,
playerVars: playerVars,
videoId: videoId,
host: host,
events: {
onReady: function (event) {
this$1.setMute(this$1.mute);
Expand Down
5 changes: 5 additions & 0 deletions src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export default {
mute: {
type: Boolean,
default: false
},
host: {
type: String,
default: 'https://www.youtube.com'
}
},
render (h) {
Expand Down Expand Up @@ -74,6 +78,7 @@ export default {
width: playerWidth,
playerVars,
videoId,
host,
events: {
onReady: (event) => {
this.setMute(this.mute)
Expand Down

0 comments on commit c42c978

Please sign in to comment.