0

I am wondering how can I play locally store videos on HTML5 with lightbox effects (where it pop-ups and play). I've tried a few options such as:

But these are supporting youtube or Vimeo videos and doesn't seem to work with local videos.

I also looked at following question Video in jQuery and Fancybox (Local video file mp4 Instead of Youtube) but the only thing I got to know is we need an external video player to play the video and it would not work on the mobile.

Is there any generic solution to this problem?

disp_name
  • 1,448
  • 2
  • 20
  • 46
  • _`"But these are supporting youtube or Vimeo videos"`_ you mean they load an external html page (iframe)? Did you try putting your video in some html page and then use link of that page (instead of Youtube link)? Maybe show the code you tried for youtube so we can suggest a solution? – VC.One Oct 08 '18 at 13:01
  • if the video is mp4/webm you should be able to play it using the ` – Offbeatmammal Oct 08 '18 at 21:04
  • Actually, fancybox v3 supports Youtube, Vimeo and HTML5 videos, see these demos - https://fancyapps.com/fancybox/3/#video – Janis Oct 11 '18 at 11:28
  • 1
    I think the OP is focussing on something different. Lightbox et al. work if the file is remote, however, if one uses a local file as an href, then it fails with an error "not allowed to load local resource". I have just encountered the same problem myself. – Nigel Sep 09 '19 at 07:02

0 Answers0