Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Uploaded video #35

Closed
cinghaman opened this issue Mar 4, 2021 · 1 comment
Closed

Custom Uploaded video #35

cinghaman opened this issue Mar 4, 2021 · 1 comment

Comments

@cinghaman
Copy link

Hi, can this be used with a video locally hosted on the server an mp4 file?

@vb
Copy link
Owner

vb commented Mar 4, 2021

Hi @cinghaman,

  • You need a page/route that have the video
<html>
  <video src="/path/to/your/local-file.mp4" autoplay />
</html>
  • Use Lazyframe as described in readme
<div
  class="lazyframe lazyframe--custom"
  data-src="https://path/to/route">
</div>

@vb vb closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants