加载许多视频标签时的IE环聊

时间:2017-09-21 07:41:42

标签: php

我开发了一个页面来加载许多视频" 27例如"。 在Chrome中,所有视频都在加载,但在IE浏览器中,有些视频没有加载,并显示了#34;在页面中。

我这样做了,而不是显示每个视频的缩略图。因为我从来没有这样做过,我不知道该怎么办?也没有理解this way

这是我的代码:

<?php
session_start();
if(!isset($_SESSION["user_role"])) {
header("Location:login.php");
exit();
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>xxx</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" type="text/css" href="enStyle.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
  <div id="header"><img id="all" src="logo.png" alt="xxx"/> </div>
  <div id="row">
    <h3 class="title">xxx</h3>
  </div>
  <div id="content">
    <div id="menu-wrapper">
      <ul class="nav">
        <?php
if(isset($_SESSION["user_role"]) && $_SESSION["user_role"] =='admin')
{
echo '<li><a href="adminIndex.php"><img src="setting.png" alt="Home Page" style="width:24px;height:24px;border:0;margin:15px 15px 15px 0;">Control Panel</a></li>';
}
else
{
echo '<li><a href="login.php"><img src="setting.png" alt="Home Page" style="width:24px;height:24px;border:0;margin:15px 15px 15px 0;">Admin Login</a></li>';
}
?>
        <li><a href="index.php"><img src="icon.png" alt="Home Page" style="width:24px;height:24px;border:0;margin:15px;">Home</a></li>
        <li><a href="requestVideo.php"> Request Video</a></li>
        <li class="nav-search">
          <form action="search.php" method="post" enctype="multipart/form-data"/>

          <input type="text" name="search" placeholder="Search here...">
          <input type="submit" name="submit" value="">
          </form>
        </li>
      </ul>
    </div>
    <div class="box">
      <ul>
        <?php
$dbhost="xxx";
$dbuser="xxx";
$con = mysqli_connect($dbhost,$dbuser, "xxx");
if (!$con) 
{
  printf("Connect failed: %s\n", mysqli_connect_error());
  exit();
}

mysqli_select_db($con,'xxx');
$query ="SELECT * FROM movies";

    $result = mysqli_query($con,$query);
    if ($result)
    {
        $movie = NULL;
    if (mysqli_num_rows($result))
        {
            while($db_field = mysqli_fetch_assoc($result))
            {

                $title = $db_field['title'];
                $mo = $db_field['file'];
                ?>
        <?php echo "<li><a href='playMovie.php?id=".$db_field['ID']."'>".$title."</a>";?>
        <video controls preload id="viewVideo">
          <source src='uploadedMovies/<?php echo $mo;?>' type=video/mp4>
        </video>
        <?php
                echo "</li>";
            }
        }
    }
?>
      </ul>
    </div>
  </div>
</div>
</body>
</html>

有没有办法解决这个问题,或者我必须改变显示视频的方法&#34;使用缩略图...&#34; ?

0 个答案:

没有答案