Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
The Vimeo Player API allows you to interact with and control an embedded Vimeo
Player.

> [!NOTE]
> We'd love to get your feedback about how you work with Player.js. Please take a few minutes to share your thoughts in our survey [here](https://t.maze.co/393567477).

## Installation

You can install the Vimeo Player API through either npm:
Expand Down
4 changes: 4 additions & 0 deletions dist/player.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,9 @@ var subscribe = function subscribe(target, eventName, callback) {
}
};
};
var logSurveyLink = function logSurveyLink() {
console.log('\n%cVimeo is looking for feedback!\n%cComplete our survey about the Player SDK: https://t.maze.co/393567477', 'color:#00adef;font-size:1.2em;', 'color:#aaa;font-size:0.8em;');
};

var arrayIndexOfSupport = typeof Array.prototype.indexOf !== 'undefined';
var postMessageSupport = typeof window !== 'undefined' && typeof window.postMessage !== 'undefined';
Expand Down Expand Up @@ -3543,6 +3546,7 @@ if (!isNode) {
resizeEmbeds();
initAppendVideoMetadata();
checkUrlTimeParam();
logSurveyLink();
}

export default Player;
4 changes: 4 additions & 0 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.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/lib/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@ export const subscribe = (target, eventName, callback, onName = 'addEventListene
cancel: () => eventNames.forEach((evName) => target[offName](evName, callback))
};
};

export const logSurveyLink = () => {
console.log(
'\n%cVimeo is looking for feedback!\n%cComplete our survey about the Player SDK: https://t.maze.co/393567477',
'color:#00adef;font-size:1.2em;',
'color:#aaa;font-size:0.8em;'
);
};
3 changes: 2 additions & 1 deletion src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'weakmap-polyfill';
import Promise from 'native-promise-only';

import { storeCallback, getCallbacks, removeCallback, swapCallbacks } from './lib/callbacks';
import { getMethodName, isDomElement, isVimeoUrl, getVimeoUrl, isNode } from './lib/functions';
import { getMethodName, isDomElement, isVimeoUrl, getVimeoUrl, isNode, logSurveyLink } from './lib/functions';
import {
getOEmbedParameters,
getOEmbedData,
Expand Down Expand Up @@ -1354,6 +1354,7 @@ if (!isNode) {
resizeEmbeds();
initAppendVideoMetadata();
checkUrlTimeParam();
logSurveyLink();
}

export default Player;