fix: vimeo video embed with plyr

This commit is contained in:
Jannat Patel
2025-07-23 10:44:53 +05:30
parent a7a475e763
commit 39ef187f6b

View File

@@ -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)
}