Skip to content

Commit 2c9217a

Browse files
committedMar 28, 2025
domains: expect TED to autoplay
1 parent a922267 commit 2c9217a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎plugins/domains/ted.com/ted.com.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
'embedurl-meta'
2525
],
2626

27-
getLink: function(oembed, tedLangs) {
27+
getLink: function(oembed, whitelistRecord, tedLangs) {
2828
const iframe = oembed.getIframe();
2929

3030
if (iframe && oembed.height) {
@@ -49,6 +49,10 @@ export default {
4949
"aspect-ratio": oembed.width / oembed.height
5050
};
5151

52+
if (whitelistRecord.isAllowed('oembed.video', 'autoplay')) {
53+
link.rel.push(CONFIG.R.autoplay);
54+
}
55+
5256
if (tedLangs.language) {
5357
link.options = tedLangs;
5458
}

0 commit comments

Comments
 (0)