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
    } 
    ?>
Member Avatar for LastMitch

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

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

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

tnx... veedeoo
now its working........

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.