Can I use magnific-popup to display an MP4 video?

Anita Graham picture Anita Graham · Jan 8, 2014 · Viewed 16.9k times · Source

I would like to use magnifico-popup to display a locally hosted mp4 file.

Do I need to define an iframe pattern for this or is there a simpler option.

Many thanks for your thoughts

Anita

Answer

Dmitry Semenov picture Dmitry Semenov · Jan 8, 2014

You'll need to integrate some third-party video player, for example http://mediaelementjs.com/

I'd recommend to use inline type of popup, as it allows you to open in popup any HTML code. http://dimsemenov.com/plugins/magnific-popup/documentation.html#inline-type

Related example: http://codepen.io/dimsemenov/pen/GtjBb