paulirish / lite-youtube-embed

A faster youtube embed.
https://paulirish.github.io/lite-youtube-embed/
Other
5.84k stars 271 forks source link

Mass convert youtube iframe to youtube-embed tag #116

Closed griccitiello42 closed 1 year ago

griccitiello42 commented 2 years ago

Hello,

I am looking for the best solution to mass transform my HTML page video content into lite-youtube embed tags. Example

<div class="videoWrapper">
<iframe frameborder="0" height="315" src="https://www.youtube.com/embed/xxxxxCODE?rel=0" width="560"></iframe>
</div>

into this

<div class="videoWrapper">
<lite-youtube videoid="xxxxxCODE" params="controls=1&modestbranding=2&rel=0&enablejsapi=1"></lite-youtube>
</div>

Do you have any suggestion to mass transform? (html data is in mysql database) thanks

paulirish commented 1 year ago

Nope, thats beyond the support we can offer here. Best of luck!