为什么我的视频不会在视频框中显示? [英] why wont my video show in videobox?

查看:90
本文介绍了为什么我的视频不会在视频框中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

播放器本身可以很好地工作,但是当我尝试在fancybox中显示它时……没什么:困惑的:

我知道用jquery框不能在somtimes工作,如果您放".html",那么我放".htm",仍然没有喜悦,youtube效果很好,但是我的projekktor播放器却不行.
以下是项目代码:

Player works fine on its own but when i try to show it in fancybox ... nothing:confused:

i know with jquery boxes dont work somtimes if you put ".html" so i put ".htm" and still no joy youtube works great but not my projekktor player.
below is projekktor code:

<!DOCTYPE HTML>
<html><head><title>Projekktor Video Tag Extension</title>

<style type="text/css">
body { background-color: #fdfdfd; padding: 0 20px; color:#000; font: 13px/18px monospace; width: 800px;}
a { color: #360; }
h3 { padding-top: 20px; }
</style>
<link rel="stylesheet" href="./pro/maccaco/style.css" type="text/css" media="screen">
<script type="text/javascript" src="./pro/jquery.min.js"></script><!-- Load jquery -->
<script type="text/javascript" src="./pro/projekktor.min.js"></script><!-- load projekktor -->
</head>
<body>
<span style="text-decoration: underline;">.</span> <video id="player_a" class="projekktor" poster="./pro/intro.png" title="this is Projekktor" width="640" height="385" controls=""> <source src="./pro/intro.ogv" type="video/ogg"> <source src="./pro/intro.mp4" type="video/mp4"> <source src="./pro/intro.webm" type="video/mp4"> </source>
<script type="text/javascript">
$(document).ready(function() {
projekktor('#player_a'); // instantiation
});
</script></source></source></video>
<p> ! </p>
</body></html>



这是带有视频框的首页代码:



and this is homepage code that has videobox:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>index</title>

<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/videobox.js"></script>
<link rel="stylesheet" href="css/videobox.css" type="text/css" media="screen">
</head>
<body scroll="no" style="background-image: url(BG.jpg);">

<a href="http://www.youtube.com/watch?v=uhi5x7V3WXE" rel="vidbox" title="caption">our video</a>
<br>
</body></html>



在我的文件夹index.html&中player.html彼此相邻,所以我将player.html或player.htm放在Youtube URL所在的位置-框仅显示白色..?!..做什么?
我的网站 http://quidpro.comuf.com/punani/index.html [



in my folder index.html & player.html are right next to each other so i put player.html or player.htm where Youtube URL is - box opens just white .. ?!..what to do?
my site http://quidpro.comuf.com/punani/index.html[^]

推荐答案

(document).ready(function(){ projekktor('#player_a'); //实例化 }); < /script > < /source > < /source > /video < p > < /p > < /body > < /html >
(document).ready(function() { projekktor('#player_a'); // instantiation }); </script></source></source></video> <p> ! </p> </body></html>



这是带有视频框的首页代码:



and this is homepage code that has videobox:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>index</title>

<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/videobox.js"></script>
<link rel="stylesheet" href="css/videobox.css" type="text/css" media="screen">
</head>
<body scroll="no" style="background-image: url(BG.jpg);">

<a href="http://www.youtube.com/watch?v=uhi5x7V3WXE" rel="vidbox" title="caption">our video</a>
<br>
</body></html>



在我的文件夹index.html&中player.html彼此相邻,所以我将player.html或player.htm放在Youtube URL所在的位置-框仅显示白色..?!..做什么?
我的网站
http://quidpro.comuf.com/punani/index.html [



in my folder index.html & player.html are right next to each other so i put player.html or player.htm where Youtube URL is - box opens just white .. ?!..what to do?
my site http://quidpro.comuf.com/punani/index.html[^]


我很抱歉说这行不通. Videobox是一个利用SWFObject.js播放视频的工具,正如您所说,它还可以显示/播放JPG和MP3.但是,它不能执行的是显示HTML页面.因此,通过尝试在其中插入HTML页面的URL,它尽了其所能,并且没有显示任何内容.如果您停下来思考自己要实现的目标,我们可能会获得更多动力.
videobox和projekktor都是扩展,可以让您播放视频(甚至可以显示jpg或mp3文件.到底是什么使您想将其中一个放置到另一个中?
如果其中一个可以为某些媒体类型做某事,而另一种则不能,那么您可以根据要随时显示的内容选择一个来解决这个问题.

问候,
Manfred
I''m sorry to say that this can''t work. Videobox is a tool that utilizes SWFObject.js to play videos and as you said it also can display/play JPGs and MP3s. What it can''t do however is display an HTML page. So by trying to put an URL to an HTML page into it, it did the best it could do and displayed nothing. We might gain a little more momentum if you paused to think what exactly you''re trying to achieve.
Both videobox and projekktor are extensions that let you play video (and even maybe display a jpg or a mp3 file. What exactly made you want to place one of them into the other?
If one of them can do stuff for certain media types that the other can''t you could solve that by selecting either one depending on what it is you want to display at any time.

Regards,
Manfred


每个人我自己做.看到我正在学习,我只是这样做了:
onload ="doOpenVideoDelayed(''q.swf'',``Video'',``vidbox 400300 play'',1000);">

曼弗雷德(Manfred)说它播放瑞士法郎时给了我这个主意.我只是把它放在那里,嘿!它起作用了,不是有些麻烦吗?它只是播放但没有任何停止/启动功能或控件. :doh:
Everyone I did it myself. See I am learning i just did this:
onload="doOpenVideoDelayed(''q.swf'', ''Video'', ''vidbox 400 300 play'', 1000);">

manfred gave me the idea when he said that it plays swf. i just put it in there and hey presto! it worked, aint that some sh*t? it just plays but without any stop/start function or controls. :doh:


这篇关于为什么我的视频不会在视频框中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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