Issue #2343💬 AnsweredOpened October 18, 2019by jeff-panart0 reactions

Add html5 video

快速解答by artf

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

Read full answer below ↓

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)

artfOctober 19, 2019

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.