我读了你的问题,我想你想使一个单一的观看页面所有视频。 如果独立播放器正在播放列表,则可能没问题。我建议你可以使用一些js库,你不需要学习PHP和MYSQL。我发现这个图书馆
http://mediafront.org/osmplayer/#.Uf_wrzmy_Dc
我认为它非常容易使用。你可以下载它,然后你可以在你的html页面中像这样修改你的代码。
<!DOCTYPE html>
<html>
<head>
<title>Video Title - FTVO</title>
<meta charset="UTF-8">
<!-- Include the core jQuery and jQuery UI -->
<script type='text/javascript' src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<!-- Include the core media player JavaScript. -->
<script type="text/javascript" src="osmplayer/bin/osmplayer.compressed.js"></script>
<!-- Include the DarkHive ThemeRoller jQuery UI theme. -->
<link rel="stylesheet" href="osmplayer/jquery-ui/dark-hive/jquery-ui.css">
<!-- Include the Default template CSS and JavaScript. -->
<link rel="stylesheet" href="osmplayer/templates/default/css/osmplayer_default.css">
<link rel="stylesheet" href="osmplayer/templates/default/osmplayer.default.js">
<script type="text/javascript">
$(function() {
$("#osmplayer").osmplayer({
playlist: 'playlist.xml',
width: '480px',
height: '640px'
});
});
</script>
</head>
<body>
<h2>Video Title</h2>
<p>Watch this episode using the player below</p>
<div id="osmplayer"></div>
<hr>
<p>This site is property of <b>TechXtra Web Services</b></p>
</body>
</html>
对于播放列表,您创建XML只是更改视频和图像的位置路径。
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>HTML5: Matagascar III</title>
<location>http://progressive.totaleclips.com.edgesuite.net/105/e105598_257.mp4</location>
<image>http://www.movieposter.com/posters/archive/main/143/MPW-71686</image>
</track>
<track>
<title>HTML5: Snow White and the Huntsman</title>
<location>http://progressive.totaleclips.com.edgesuite.net/103/e103981_257.mp4</location>
<image>http://www.movieposter.com/posters/archive/main/142/MPW-71148</image>
</track>
<track>
<title>HTML5: Men in Black III</title>
<location>http://progressive.totaleclips.com.edgesuite.net/105/e105857_257.mp4</location>
<image>http://www.movieposter.com/posters/archive/main/146/MPW-73434</image>
</track>
</trackList>
</playlist>
你能提供相关的代码和更多的细节吗?你有没有想要解决的具体问题/问题? – 2013-08-05 18:08:53
你已经有Flash版本了吗?你现在想要观看的视频如何填充它? – kalley
所有我试图做的是使用HTML5和PHP一起为我的所有内容制作一个页面。例如: