Forums

Stream Video Player with Shadowbox or Lightbox? (6 posts)

  1. travismallen
    Member
    Posted 2 years ago #

    Hey All,

    Has anyone embedded Stream Video Player in a shadowbox or a lightbox? I want to use a thumbnail with a link that opens up a lightbox to play a video with SVP, and was wondering if anyone has done this before.

    Cheers,

    Travis

    http://wordpress.org/extend/plugins/stream-video-player/

  2. travismallen
    Member
    Posted 2 years ago #

    I gotta sleep, but here's the direction I'm going with this one.

    I think I need to set shadowbox to display HTML and then put the Stream Video Player shortcode in there some how... I can't get do_shortcode to work though. Here's where I stopped:

    <?php
    $SVP_str = '[stream flv=http://www.andrew-case.com/wp-content/uploads/andrew_reel.flv hd=http://www.andrew-case.com/wp-content/uploads/andrew_reel2.mp4 embed=false share=false width=640 height=480 dock=true controlbar=over bandwidth=high autostart=false /]';
    
    //This just pulls it all together applying the shadowbox to an image
    $sImgString = '<a href="#" title="Andrew Case Reel" rel="shadowbox;width=700;height=510;player=html;content='.'do_shortcode('.$SVP_str.')'.'">' .
    '<img src="http://www.andrew-case.com/wp-content/uploads/view_reel.png" width="130" height="102" />'.'</a>';
    
    // Print the reel image and link
    echo do_shortcode($sImgString);
     ?>

    It just prints the shortcode as text. You can see it here by clicking on the "view reel" image on the left: http://www.andrew-case.com/media/

  3. Anointed
    Member
    Posted 2 years ago #

    @travismallen

    Can I ask how you managed to get it working with shadowbox? I've tried multiple variations of your snippet above, but so far no luck.

  4. rodrigopolo
    Member
    Posted 2 years ago #

    I have this on my "To do" list but I think that the way to do it is by putting the short code inside an "invisible" DIV (CSS display:none;) and make it visible just when Shadowbox or Lightbox has done the animation usin jQuery or Mootols matching the class or ID selector.

  5. ouija
    Member
    Posted 1 year ago #

    Doesn't work with IE8 (video not loaded).

  6. rodrigopolo
    Member
    Posted 1 year ago #

    It works for me, let me do more tests.

Topic Closed

This topic has been closed to new replies.

About this Topic