Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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…

    #397133

    Hey 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!
    Elliott

    #397192

    I 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.

    #397671

    Hey!

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.