silencesys / silentbox

A lightbox inspired Vue.js component.
https://silentbox.rocek.dev
MIT License
296 stars 51 forks source link

Render local video file #17

Closed johnnymetz closed 4 years ago

johnnymetz commented 5 years ago

Is there anyway to render a local video. I'm working with mp4 files. I would imagine this should work but it isn't:

<silentbox-item src="location/to/file.mp4">

I'm using the nuxt framework and have even tried serving the videos as static files:

<silentbox-item src="/file.mp4">
<silentbox-item src="http://localhost:3000/file.mp4">

Am I doing anything wrong or is this not built in to the library?

egs2003 commented 4 years ago

I have the same problem. Is there any solution here in the meantime?

silencesys commented 4 years ago

SilentBox2 should be able to do that.