Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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:
XML
<!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:
XML
<!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>


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[^]
Posted
Updated 7-Jan-11 12:12pm
v2
Comments
[no name] 7-Jan-11 18:02pm    
If you are referring to another question you have asked it would nice for your reference it with a link, as it is all we know from this is Manfreds gave you a suggestion. We have no idea what the original problem was, what the suggestion was or how they relate to this question.

"jquery boxes dont work somtimes if you put ".html" so i put ".htm""
JQuery doesn't give a damn what the file extension is. It is a client-side library that will work after the page has already been rendered in the browser; html, htm, aspx, php, it doesn't matter JQuery doesn't know or care what the file is.
infamousbreed 7-Jan-11 18:17pm    
We should assume that there is no such problem now as he was able to deduce the floor by just looking at the path, if you cant; then researching the old question will avail nothing. Perhaps it was not even significant.
Manfred Rudolf Bihy 7-Jan-11 18:49pm    
I just deleted my answer as I had not read your question thouroghly enough. Do I read you right that you placed the link to your player.html (projekktor code) into the href of the anchor tag in the index.html (videobox code) file?
infamousbreed 7-Jan-11 20:05pm    
Thanks for being patient with me. thats what i did as it worked with jpg and mp3 so i thought html too.

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
 
Share this answer
 
Comments
infamousbreed 7-Jan-11 21:55pm    
i guess i was mislead by the guy who built videobox. on his site he says it can play any video player, thats all. and it did play the youtube video which is on a html page so naturally i just thought to put my own link in there.

This is an adult site and youtube will not allow adult content. i thought that hosting videobox on a different server from projekktor would solve any conflict issues but if that cant be done ill have to do the 'selector' method.

thank s for your help btw why didn it play the youtube video?
Manfred Rudolf Bihy 7-Jan-11 22:21pm    
I did try to include that trick in my prior answer but couldn't make any real progress. There are parameters that are supposed to do the trick but none of the described tricks worked. You said that on the videobox website they said videobox could use any video player. If you give me a link to the page where it says that I'll look into it. Maybe videobox.js could be changed to work with other players.
Cheers!
infamousbreed 8-Jan-11 19:30pm    
Hi manfred i followed your lead you gave me and it worked i just put absolute url of video and now it plays but with no control bar/buttons but i can live with that its just to show clips anyway. heres the link: http://videobox-lb.sourceforge.net/ ill accept your answer as best if you vote up my answer. thanks for not getting fed up with me - i am learning allot now.
Espen Harlinn 11-Jan-11 8:01am    
5+ Nicely wrtten :)
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:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900