From 61481e308884ccdddd3455c7d1540fcba8a1ef73 Mon Sep 17 00:00:00 2001 From: wz914876 Date: Fri, 19 Jul 2024 12:29:15 +0530 Subject: [PATCH] 1215 Video Embed Converter Update --- tools/actions/convert/test/fixtures/blog3-converted.html | 2 +- tools/actions/convert/test/fixtures/product1-converted.html | 2 +- tools/actions/convert/test/fixtures/product3-converted.html | 4 ++-- tools/importer/transformers/util.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/actions/convert/test/fixtures/blog3-converted.html b/tools/actions/convert/test/fixtures/blog3-converted.html index 96723673..0773277a 100644 --- a/tools/actions/convert/test/fixtures/blog3-converted.html +++ b/tools/actions/convert/test/fixtures/blog3-converted.html @@ -19,7 +19,7 @@

Enabling Science at Scale: How Danaher Life Sciences partners deep with Biop

- +

https://player.vimeo.com/video/842870177

diff --git a/tools/actions/convert/test/fixtures/product1-converted.html b/tools/actions/convert/test/fixtures/product1-converted.html index b58729ca..6b6114bf 100644 --- a/tools/actions/convert/test/fixtures/product1-converted.html +++ b/tools/actions/convert/test/fixtures/product1-converted.html @@ -48,7 +48,7 @@

Next-generation fluorescent imaging solution for the assurance of monoclonal

- +

https://play.vidyard.com/WwWUddqbVhBk8jtmGQ6dHF.html

diff --git a/tools/actions/convert/test/fixtures/product3-converted.html b/tools/actions/convert/test/fixtures/product3-converted.html index 19adec20..152b1061 100644 --- a/tools/actions/convert/test/fixtures/product3-converted.html +++ b/tools/actions/convert/test/fixtures/product3-converted.html @@ -64,7 +64,7 @@

No constraints - 4x more data with 100% correlation

- +

https://player.vimeo.com/video/809017220?h=c59cdbdab2;badge=0;autopause=0;player\_id=0;app\_id=58479

@@ -108,7 +108,7 @@

No constraints - Achieve physiological-like conditions thoughout your experi

- +

https://player.vimeo.com/video/809768643?h=0814b7152d\&badge=0\&autopause=0\&player\_id=0\&app\_id=58479

diff --git a/tools/importer/transformers/util.js b/tools/importer/transformers/util.js index 2f0dee16..df26c2d8 100644 --- a/tools/importer/transformers/util.js +++ b/tools/importer/transformers/util.js @@ -218,9 +218,9 @@ const getVideoThumbnail = (url, quality) => { if (type === 'youtube') { thumbnail = `http://img.youtube.com/vi/${videoId}/${qualityKey}.jpg`; } else if (type === 'vimeo') { - thumbnail = `https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/${videoId}`; + thumbnail = `https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/${videoId}&width=480&height=360`; } else if (type === 'vidyard') { - thumbnail = `http://share.vidyard.com/watch/${videoId}`; + thumbnail = `http://share.vidyard.com/watch/${videoId}&width=480&height=360`; } else { thumbnail = false; }