Add html5 video
Question
Hi,
How should one add a html5 video to grapesjs?
I uploaded both a webm and mp4 file, added a video component on my grapesjs page and under Settings I chose HTML5 Source. Then I added the complete path to the video file. Only thing I get back is a black element, without any video. For test purposes I change the complete path to just /video/file.mp4 en .../file.webm, but no luck so far.
If I change to a youtube video, all seems to work fine.
Console doesn't give any errors back either, so I'm in a bit of a tiffy...
Any tips would be appreciated.
Answers (1)
Those video files should be served from the server (local or remote one), the browser shouldn't be able to read your local files for security reason
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2858
[QUESTION] After installing grapesjs-style-bg plugin, how do I add it to StyleManager?
Newbie question here, I added the plugin grapesjs-style-bg to the stack, now how to I show it in my StyleManager? I reset all the sectors f...
Issue #2770
[QUESTION] Set selected element
Hello, is there a way to select an element after added to the body? When i add a link, i want to open the Component Settings immediately. H...
Issue #2645
how to add new content to the intended component without removing the previously added component content
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #6263
BUG: Duplicated links are added using rte
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? ChromeReproducible demo link https://codepen...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.