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
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
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/
@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.
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.
Doesn't work with IE8 (video not loaded).
It works for me, let me do more tests.
This topic has been closed to new replies.