0

hi all,
pls help me... i want to play multiple videos in videogallery...
but when i give click on anyvideo its not playing....

here is my code....
tnx in advnc....

<?php
    $sql="Select  * from video_gallery where prod_name LIKE '%$prod_name'";
                  $obj->query($sql);
                  $nume=$obj->num_rows();
                  while($row=$obj->query_fetch()) {
                   $code=$row["video_code"];

                  $cd=explode("/",$code);
                 ?>
    <div class="video"><iframe width="304" height="192" src="http://www.youtube.com/embed/<?php echo $cd[3]?>?autoplay=1" frameborder="0" allowfullscreen></iframe></div>
    <?php
    } 
    ?>

Edited by amith_ami

3
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by amith_ami
2

@amiyar

pls help me... i want to play multiple videos in videogallery...

You can't play multiple videos like that. You can only play one video with that format.

0

tnx for reply.... LastMitch
can you pls help me... to fix that problem.. i want to play multiple videos....
tnx in advnc...

0

hi,

here is a demo I made, you can copy the source code if your want. Make sure the video ids are added as shown in the source code.

You cannot play all of them at the same time, but one at a time on click event. The most important about utilizing jquery is the ability to play video without reloading the page..

Edited by veedeoo: info added

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.