Jump to content

display uploaded videos


Go to solution Solved by darkfreaks,

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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