最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin7浏览0评论

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

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

Share Improve this question edited Jan 8, 2014 at 8:44 Dmytro Semenov 4,6162 gold badges37 silver badges39 bronze badges asked Jan 8, 2014 at 4:55 Anita GrahamAnita Graham 4411 gold badge5 silver badges13 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 10

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

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

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

You can use the type of content - iframe to open MP4 video:

<a class="mfp-iframe" href="MP4_VIDEO_PATH">Open MP4 video in iframe</a>

I'm going to add a ment here in response to Sky Yip because that solutions works beautifully EXCEPT that it doesn't work in Safari which is obviously a problem. More details here: https://github./dimsemenov/Magnific-Popup/issues/1149

发布评论

评论列表(0)

  1. 暂无评论