【发布时间】:2011-11-07 23:57:37
【问题描述】:
我正在尝试设置我的页面以播放具有以下规格的视频:
- 使用授权的 JW 播放器
- 要使用 Flash 播放器,HTML5 回退
- 我还想为 HTML5 后备(ogg、webm)提供替代文件格式
- 使用 RTMP 流方式通过云端传送视频
这是我的测试页面的链接: http://coachesmarketingcenter.com/test_new_ppts/index3.html
这是我目前使用的嵌入代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test New Videos</title>
<script type='text/javascript' src='http://coachesmarketingcenter.com/test_new_ppts/swfobject.js'></script>
<script type="text/javascript" src="http://coachesmarketingcenter.com/test_new_ppts/jwplayer.js"></script>
</head>
<body>
<div id="container1"></div>
<script type="text/javascript">
jwplayer("container1").setup({
file: "TestNewVideos/MyNewVideo.mp4",
provider: "rtmp",
streamer: "rtmp://s2cr83yb7q2jav.cloudfront.net/cfx/st",
width: 640,
height: 480,
modes: [{
type: "flash",
src: "http://coachesmarketingcenter.com/test_new_ppts/player.swf"
},{
type: "html5",
config: {
file: "http://dn9lu4lqda9r4.cloudfront.net/TestNewVideos/MyNewVideo.mp4",
provider: "video"
}
levels: [
{ file: "http://dn9lu4lqda9r4.cloudfront.net/TestNewVideos/MyNewVideo.mp4" }, // H.264 version
{ file: "http://dn9lu4lqda9r4.cloudfront.net/TestNewVideos/MyNewVideo.ogg" }, // Ogg Theora version
]
});
</script>
</body>
</html>
【问题讨论】:
-
不确定是什么问题 - 对我来说似乎可行?
-
您的视频文件似乎无效。尝试使用其他链接。
标签: flash html video html5-video jwplayer