Skip to content

Commit

Permalink
Add new oEmbed parameters (#957)
Browse files Browse the repository at this point in the history
* Add new oEmbed parameters

* Remove esm
  • Loading branch information
christriants authored Jan 2, 2024
1 parent 9188aba commit f4773b4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/player.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ function processData(player, data) {
/**
* @module lib/embed
*/
var oEmbedParameters = ['autopause', 'autoplay', 'background', 'byline', 'color', 'colors', 'controls', 'dnt', 'height', 'id', 'interactive_params', 'keyboard', 'loop', 'maxheight', 'maxwidth', 'muted', 'playsinline', 'portrait', 'responsive', 'speed', 'texttrack', 'title', 'transparent', 'url', 'width'];
var oEmbedParameters = ['airplay', 'audio_tracks', 'autopause', 'autoplay', 'background', 'byline', 'cc', 'chapters', 'chromecast', 'color', 'colors', 'controls', 'dnt', 'fullscreen', 'height', 'id', 'interactive_params', 'keyboard', 'loop', 'maxheight', 'maxwidth', 'muted', 'play_button_position', 'playsinline', 'portrait', 'progress_bar', 'quality_selector', 'responsive', 'speed', 'texttrack', 'title', 'transcript', 'transparent', 'url', 'vimeo_logo', 'volume', 'width'];

/**
* Get the 'data-vimeo'-prefixed attributes from an element as an object.
Expand Down
2 changes: 1 addition & 1 deletion 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.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"eslint": "^7.7.0",
"eslint-plugin-ava": "^11.0.0",
"eslint-plugin-compat": "^3.5.1",
"esm": "^3.2.25",
"jquery": "^3.4.1",
"jsdom": "^22.0.0",
"maxmin": "^3.0.0",
Expand Down Expand Up @@ -110,7 +109,6 @@
},
"ava": {
"require": [
"esm",
"@babel/register",
"./test/helpers/browser-env.js"
],
Expand All @@ -120,7 +118,6 @@
},
"nyc": {
"require": [
"esm",
"@babel/register"
],
"exclude": [
Expand Down
12 changes: 12 additions & 0 deletions src/lib/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ import { isVimeoUrl, isVimeoEmbed, getVimeoUrl } from './functions';
import { parseMessageData } from './postmessage';

const oEmbedParameters = [
'airplay',
'audio_tracks',
'autopause',
'autoplay',
'background',
'byline',
'cc',
'chapters',
'chromecast',
'color',
'colors',
'controls',
'dnt',
'fullscreen',
'height',
'id',
'interactive_params',
Expand All @@ -23,14 +29,20 @@ const oEmbedParameters = [
'maxheight',
'maxwidth',
'muted',
'play_button_position',
'playsinline',
'portrait',
'progress_bar',
'quality_selector',
'responsive',
'speed',
'texttrack',
'title',
'transcript',
'transparent',
'url',
'vimeo_logo',
'volume',
'width'
];

Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2468,11 +2468,6 @@ eslint@^7.7.0:
text-table "^0.2.0"
v8-compile-cache "^2.0.3"

esm@^3.2.25:
version "3.2.25"
resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10"
integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==

espree@^7.2.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.0.tgz#dc30437cf67947cf576121ebd780f15eeac72348"
Expand Down

0 comments on commit f4773b4

Please sign in to comment.