在视频中音频正在播放但无法看到视频 [英] in video the audio is playing but not able to see the video

查看:68
本文介绍了在视频中音频正在播放但无法看到视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中我试图显示视频文件..它只播放音频而非视频..我在Chrome中运行这个38.0.2125.111 m



这些视频和图像存储在xampp的文件夹中。在数据库中我存储了这些文件的路径。

in my project i am trying to display the video file.. which only plays the audio not the video.. i am running this in chrome 38.0.2125.111 m

these videos and images are stored in folder of xampp.and in database i stored the path of these files.

if ($db_found) 
		{
			$query ="SELECT * FROM `upload_file`";
		
			$result = mysql_query($query,$db_handle);	
		
	//$row_cmp=mysql_fetch_array($result_cmp, MYSQL_ASSOC);
		echo "<div class="product">";
		while($row = mysql_fetch_array($result, MYSQL_ASSOC))
		{
			$src=$row['File'];
			$name=$row['UserName'];
			
		

			if (preg_match("/\.jpg$/i",$src)){
			echo "<img src='$src' height='200' width='200' alt='Image not Found' style='padding:10px 10px 10px 10px'/>";
			echo "Name: <a href="info.php">$name</a>";
			
			}
			else
			{
			echo "<video width='200' height='200' controls style='padding:10px 10px 10px 10px'> <source src="$src" type="video/mp4">Your browser does not support this video. </video>";echo "Name: <a href="info.php">$name</a>";
			}

		}
	echo "</source></div>";
		}

推荐答案

db_found)
{
db_found) {


query = SELECT * FROM`upload_file`< /跨度>;

query ="SELECT * FROM `upload_file`";


result = mysql_query(
result = mysql_query(


这篇关于在视频中音频正在播放但无法看到视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆