-
I want to include short HTML5 videos in the posts on my website to resemble GIF functionality. I use MDX for my content so I was thinking I could create a react component to wrap around a video tag like
and then use VideoTag inside my MDX file (e.g. index.mdx) like
where my videos are placed in the same folder as my MDX post, i.e.:
I want to handle the conversion to mp4 and webm manually and copy them into my post folder. How would you do it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I just found #23935, it might not be possible. |
Beta Was this translation helpful? Give feedback.
-
Okay for now I will go with this approach: I created a video component and include it as a shortcode in MDXProvider.
Then I have to manually include the webm and mp4 inside my mdx file and pass them to
|
Beta Was this translation helpful? Give feedback.
-
Hi! As you already read in the other issue this isn't currently possible and the two approaches I outlined are still the best today. As https://mdxjs.com/table-of-components doesn't list the |
Beta Was this translation helpful? Give feedback.
Hi!
As you already read in the other issue this isn't currently possible and the two approaches I outlined are still the best today. As https://mdxjs.com/table-of-components doesn't list the
<video>
tag I don't see howgatsby-remark-copy-linked-files
could work with it.