From 39ef187f6be142516495d9339a0bef2236123d84 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 23 Jul 2025 10:44:53 +0530 Subject: [PATCH] fix: vimeo video embed with plyr --- frontend/src/utils/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index 08fcdb9a..c2c58148 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -551,11 +551,10 @@ export const enablePlyr = async () => { const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) const setupPlyrForVideo = (video, players) => { - const src = video.getAttribute('src') || video.getAttribute('data-src') + const src = video.getAttribute('src') if (src) { const videoID = extractYouTubeId(src) - video.setAttribute('data-plyr-provider', 'youtube') video.setAttribute('data-plyr-embed-id', videoID) }