Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6351
    brianmayer
    Participant

    The plugin is working great for most things, but I’m trying to launch a video from the media library in a lightbox via the sidebar. If I use a YouTube or Vimeo link, it works fine, however if I use a local video, I get the following error message “Image cannot be loaded. Make sure the path is correct and image exist.” If I copy the link target and paste it into the address bar to check the link, it works fine, indicating that the link is indeed correct.

    the link code
    <a href="http://dfine.wpengine.com/wp-content/uploads/2015/03/Michaelenes-Story.mp4" rel="lightbox">Self Hosted Link</a>

    The test page is here: http://dfine.wpengine.com/in-the-media/

    I’m using prettyPhoto.

    #6372
    brianmayer
    Participant

    Anyone?

    #6389
    brianmayer
    Participant

    Is this an active support site? Should I be posting this elsewhere? This seemingly simple question has been sitting here for 5 days.

    #6397
    brianmayer
    Participant

    moved on to a different solution

    #7658
    Eric
    Participant

    What solution did you go to? I am having a similar issue and I’m curious how you solved the problem.

    #7659
    Bartosz
    Keymaster

    Brian, Eric,

    Sorry for the late responsve – a vacation.

    According to the questions – RL does not supports self-hosted videos yet. Don’t know if it will – not every script can handle that, only those supporting iframe content like Nivo, fancybox, prettyPhoto, TosRuS maybe.

    #7668
    Eric
    Participant

    For anyone else trying to do this, I was able to get this to work. I will not deny that it is a hack, so if it doesn’t work for you, I understand. However, it got it done for me.

    I created a single-attachment.php page with the following code:

    <?php require ('./wp-blog-header.php'); ?>
    <?php the_content(); ?>  

    This will create a blank attachment page that will display nothing but your attachment. This will be used by all single attachments, so it is up to you if you want to continue with this approach.

    Next I set my Responsive Lightbox to use use the prettyPhoto Lightbox script as suggested by Bartosz, since it offers iFrame support.

    Finally, when coding my link, I included the following:

    <a rel="lightbox" href="http://www.domain.com/?attachment_id=535&iframe=true&width=640&height=360>View Video</a>

    Curious to hear your thoughts. Hopefully this helps somebody from wasting an afternoon on this seemingly simply issue.

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