Skip to content

Commit

Permalink
v2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Luyten committed Jan 30, 2019
1 parent a9f66f4 commit 1b8d544
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 13 deletions.
62 changes: 58 additions & 4 deletions dist/player.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! @vimeo/player v2.6.7 | (c) 2019 Vimeo | MIT License | https://github.com/vimeo/player.js */
/*! @vimeo/player v2.7.0 | (c) 2019 Vimeo | MIT License | https://github.com/vimeo/player.js */
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
Expand Down Expand Up @@ -1296,14 +1296,14 @@ function () {
* the video is successfully loaded, or it will be rejected if it could
* not be loaded.
*
* @param {number} id The id of the video.
* @param {number|object} options The id of the video or an object with embed options.
* @return {LoadVideoPromise}
*/

}, {
key: "loadVideo",
value: function loadVideo(id) {
return this.callMethod('loadVideo', id);
value: function loadVideo(options) {
return this.callMethod('loadVideo', options);
}
/**
* A promise to perform an action when the Player is ready.
Expand Down Expand Up @@ -1576,6 +1576,24 @@ function () {
value: function setAutopause(autopause) {
return this.set('autopause', autopause);
}
/**
* A promise to get the buffered property of the video.
*
* @promise GetBufferedPromise
* @fulfill {Array} Buffered Timeranges converted to an Array.
*/

/**
* Get the buffered property of the video.
*
* @return {GetBufferedPromise}
*/

}, {
key: "getBuffered",
value: function getBuffered() {
return this.get('buffered');
}
/**
* A promise to get the color of the player.
*
Expand Down Expand Up @@ -1829,6 +1847,42 @@ function () {
value: function setPlaybackRate(playbackRate) {
return this.set('playbackRate', playbackRate);
}
/**
* A promise to get the played property of the video.
*
* @promise GetPlayedPromise
* @fulfill {Array} Played Timeranges converted to an Array.
*/

/**
* Get the played property of the video.
*
* @return {GetPlayedPromise}
*/

}, {
key: "getPlayed",
value: function getPlayed() {
return this.get('played');
}
/**
* A promise to get the seekable property of the video.
*
* @promise GetSeekablePromise
* @fulfill {Array} Seekable Timeranges converted to an Array.
*/

/**
* Get the seekable property of the video.
*
* @return {GetSeekablePromise}
*/

}, {
key: "getSeekable",
value: function getSeekable() {
return this.get('seekable');
}
/**
* A promise to get the text tracks of a video.
*
Expand Down
62 changes: 58 additions & 4 deletions dist/player.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/player.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 1b8d544

Please sign in to comment.