Skip to content

Commit

Permalink
add video option in embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav sasulkar committed Oct 10, 2024
1 parent 950e97d commit 8e53c1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions blocks/embed/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ const embedTwitter = (url) => {

const videoTag = (url) => {
// <source src="movie.ogg" type="video/ogg">
const videoHTML = `<video width="320" height="240" controls autoplay>
<source src="${url.href}" type="video/mp4">
</video>`
const videoHTML = `<div class="videotag">
<video width="320" height="240" controls autoplay>
<source src="${url.href}" type="video/mp4">
</video>
</div>`
return videoHTML;
}

Expand Down

0 comments on commit 8e53c1a

Please sign in to comment.