-
AuthorPosts
-
February 16, 2015 at 8:00 pm #397009
When I post a link to a an html 5 video from my library, it goes to that ‘page’… is there a way that I can make the video pop up in a lightbox instead of opening a whole page containing the video?
Let me know if that doesn’t make sense…
February 16, 2015 at 10:29 pm #397133Hey Andy!
I’m not sure if magnific popup supports the mediaelementjs script or not. You can see on the examples it has youtube and vimeo, http://dimsemenov.com/plugins/magnific-popup/.
You could try opening up /enfold/js/avia.js and find lines 826 – 827.
autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]', videoElements : 'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',And then add this to each of the lines.
a[href$=".mp4"]To see if it works. You could also try using an iframe popup or inline popup, https://kriesi.at/support/topic/inline-content-in-magnific-popup/#post-289356.
Cheers!
ElliottFebruary 17, 2015 at 1:50 am #397192I tried both of your suggestions and am not having any luck. Sorry I’m not very experienced….
Can you think of a way that I can have a ‘link’ open up a lightbox? So that if that link is a video, for example, it will open in lightbox? I don’t know how to make that happen.
February 17, 2015 at 5:56 pm #397671Hey!
If you use youtube or vimeo then magnific popup will recognize it and load the video but I do not think it is compatible with the mediaelementjs script yet.
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.
