|
1 | | -# Vimeo Player API [](https://www.npmjs.com/package/@vimeo/player) [](https://codecov.io/gh/vimeo/player.js)  |
| 1 | +# Vimeo Player API [](https://www.npmjs.com/package/@vimeo/player) [](https://codecov.io/gh/vimeo/player.js)  |
2 | 2 |
|
3 | 3 | The Vimeo Player API allows you to interact with and control an embedded Vimeo |
4 | 4 | Player. |
@@ -57,7 +57,7 @@ You can use the library to make the embed for you. All you need is an empty |
57 | 57 | element and the video id or vimeo.com url (and optional |
58 | 58 | [embed options](#embed-options)). |
59 | 59 |
|
60 | | -**NOTE:** If the video [privacy settings](https://vimeo.zendesk.com/hc/en-us/articles/224817847-Privacy-settings-overview) are "Unlisted", instead of providing an `id` property, you will need to provide the full video URL as a `url` property and include the `h` parameter. |
| 60 | +**NOTE:** If the video [privacy settings](https://help.vimeo.com/hc/en-us/articles/12426199699985-Overview-of-video-privacy-settings) are "Unlisted", instead of providing an `id` property, you will need to provide the full video URL as a `url` property and include the `h` parameter. |
61 | 61 |
|
62 | 62 | ```html |
63 | 63 | <div id="made-in-ny"></div> |
@@ -88,7 +88,7 @@ attributes. Each element must have at least a `data-vimeo-id` or |
88 | 88 | You can also add attributes for any of the [embed options](#embed-options), |
89 | 89 | prefixed with `data-vimeo` (`data-vimeo-portrait="false"`, for example). |
90 | 90 |
|
91 | | -**NOTE:** If the video [privacy settings](https://vimeo.zendesk.com/hc/en-us/articles/224817847-Privacy-settings-overview) are "Unlisted", instead of providing a `data-vimeo-id` attribute, you will need to provide the full video URL in a `data-vimeo-url` attribute and include the `h` parameter. |
| 91 | +**NOTE:** If the video [privacy settings](https://help.vimeo.com/hc/en-us/articles/12426199699985-Overview-of-video-privacy-settings) are "Unlisted", instead of providing a `data-vimeo-id` attribute, you will need to provide the full video URL in a `data-vimeo-url` attribute and include the `h` parameter. |
92 | 92 |
|
93 | 93 | ```html |
94 | 94 | <div data-vimeo-id="19231868" data-vimeo-width="640" id="handstick"></div> |
@@ -122,7 +122,7 @@ for details on how to update your code to use this library. |
122 | 122 |
|
123 | 123 | ## Using with a module bundler |
124 | 124 |
|
125 | | -If you’re using a module bundler like [webpack](https://webpack.js.org) or |
| 125 | +If you’re using a module bundler like [webpack](https://webpack.js.org/) or |
126 | 126 | [rollup](https://rollupjs.org/), the exported object will be the Player |
127 | 127 | constructor (unlike the browser where it is attached to `window.Vimeo`): |
128 | 128 |
|
@@ -288,7 +288,7 @@ Pass any element and an options object to the `Vimeo.Player` constructor to make |
288 | 288 | an embed inside that element. The options object should consist of either an |
289 | 289 | `id` or `url` and any other [embed options](#embed-options) for the embed. |
290 | 290 |
|
291 | | -**NOTE:** If the video [privacy settings](https://vimeo.zendesk.com/hc/en-us/articles/224817847-Privacy-settings-overview) are "Unlisted", instead of providing an `id` property, you will need to provide the full video URL as a `url` property and include the `h` parameter. |
| 291 | +**NOTE:** If the video [privacy settings](https://help.vimeo.com/hc/en-us/articles/12426199699985-Overview-of-video-privacy-settings) are "Unlisted", instead of providing an `id` property, you will need to provide the full video URL as a `url` property and include the `h` parameter. |
292 | 292 |
|
293 | 293 | ```html |
294 | 294 | <div id="made-in-ny"></div> |
@@ -424,7 +424,7 @@ player.off('play'); |
424 | 424 | Load a new video into this embed. The promise will be resolved if the video is |
425 | 425 | successfully loaded, or it will be rejected if it could not be loaded. |
426 | 426 |
|
427 | | -**NOTE:** If the video [privacy settings](https://vimeo.zendesk.com/hc/en-us/articles/224817847-Privacy-settings-overview) are "Unlisted", instead of providing an `id` argument, you will need to provide the full video URL as a `url` argument and include the `h` parameter. |
| 427 | +**NOTE:** If the video [privacy settings](https://help.vimeo.com/hc/en-us/articles/12426199699985-Overview-of-video-privacy-settings) are "Unlisted", instead of providing an `id` argument, you will need to provide the full video URL as a `url` argument and include the `h` parameter. |
428 | 428 |
|
429 | 429 | ```js |
430 | 430 | player.loadVideo(76979871).then(function(id) { |
@@ -1255,7 +1255,7 @@ Promise.all([player.getVideoWidth(), player.getVideoHeight()]).then(function(dim |
1255 | 1255 |
|
1256 | 1256 | ### getVideoUrl(): Promise<string, (PrivacyError|Error)> |
1257 | 1257 |
|
1258 | | -Get the [vimeo.com](https://vimeo.com) url for the video. |
| 1258 | +Get the [vimeo.com](https://vimeo.com/) url for the video. |
1259 | 1259 |
|
1260 | 1260 | ```js |
1261 | 1261 | player.getVideoUrl().then(function(url) { |
@@ -1769,7 +1769,7 @@ Triggered when the player leaves picture-in-picture. |
1769 | 1769 |
|
1770 | 1770 | Triggered when the availability of remote playback changes. |
1771 | 1771 |
|
1772 | | -Listening for this event is equivalent to the [RemotePlayback.watchAvailability() API](http://developer.mozilla.org/en-US/docs/Web/API/RemotePlayback/watchAvailability), except that there is no `cancelWatchAvailability()`. You can remove the listener for this event instead. |
| 1772 | +Listening for this event is equivalent to the [RemotePlayback.watchAvailability() API](https://developer.mozilla.org/en-US/docs/Web/API/RemotePlayback/watchAvailability), except that there is no `cancelWatchAvailability()`. You can remove the listener for this event instead. |
1773 | 1773 |
|
1774 | 1774 | ### remoteplaybackconnecting |
1775 | 1775 |
|
|
0 commit comments