Jump to content

display uploaded videos


Jaswinder

Recommended Posts

hello friends... i have uploaded the videos,, now i want to see it...

 

i uses the <iframe> tag ,but it shows video only in firefox and also starts on page load... which i dont want,,,,,

 

For chrome HTML5 video tag is being used... and i dont know about IE... so how should i write my code???

 

here is my code :-

 

<?php
    while($f=mysql_fetch_array($q))
    {
        if($f['video'] != ' ')
        {
    ?>
   <li> <video controls="controls" width="450" height="280">
    <source src='upload/<?php echo $f["event"]; ?>/video/<?php echo $f["video"];?>' type="video/mp4" height="200" width="200">
    </video></li><br />

 

<iframe src="upload/<?php echo $f["event"]; ?>/video/<?php echo $f["video"];?>" height="200" width="200"></iframe>
  
  <?php
        }
    }
?>

 

How could i put condtions for browsers the chrome uses video tag and not iframe tag.., as now it shows two videos ,, but working other blank(obviously for iframe tag)... and vice-versa for firefox... and what to do for IE

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/279157-display-uploaded-videos/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.