Computing.Net > Forums > Web Development > quicktime videos in pop up windows

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

quicktime videos in pop up windows

Reply to Message Icon

Name: richb
Date: July 21, 2004 at 08:52:25 Pacific
OS: xp home
CPU/Ram: celeron 2.2ghz and i thin
Comment:

ok, im working on my crappy little website (dont laugh at me) and im using.....geocities, (im really really bad at this) and im trying to figure out how to get a quicktime movie to open into a new window and allow me to resize the window and play with all of its other attributes.

i am ultra n00b



Sponsored Link
Ads by Google

Response Number 1
Name: FBI Agent
Date: July 21, 2004 at 08:55:51 Pacific
Reply:

well making a new window would be to use javascript. making the quicktime app popup in the...popup would mean that you would have to have it embeded in the popup website... yeah, its kinda confusing but if you know how to do javascript popups, you should understand what im saying.

FBI_Agent


0

Response Number 2
Name: richb
Date: July 21, 2004 at 09:08:53 Pacific
Reply:

yeah, i figured that i would have to embed it, but i dont know how to physically do this, im really bad at javascript, the best ive done so far is get pictures to open up in new windows and be able to resize them and stuff, can someone please tell me in a really basic way, how to embed quicktime into a new window?

i am ultra n00b


0

Response Number 3
Name: safeTsurfa
Date: July 21, 2004 at 10:46:43 Pacific
Reply:

Why quicktime? Not every browser or OS accepts that format. A common format is better, so the majority of browsers/computer setups can work with it.


0

Response Number 4
Name: FBI Agent
Date: July 22, 2004 at 08:56:02 Pacific
Reply:

or you could have options, pick either from quicktime or WMP (windows media player)

here is an example of a WMP embeded object:

<OBJECT ID="WMPlay" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject" width="320" height="306">
<PARAM name="FileName" value="FILENAME">
<PARAM NAME="ShowStatusBar" VALUE="True">
<PARAM name="DisplaySize" value="0">
<PARAM name="cache" value="true">
<PARAM name="bgcolor" value="black">
<PARAM name="autoplay" value="true">
<PARAM name="loop" value="false">
<EMBED type="application/x-mplayer2 pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin"
filename="FILENAME"
displaysize="2"
name="WMPlay"
CACHE=TRUE loop="true" bgcolor="black" AUTOPLAY=TRUE> </EMBED> </OBJECT>

you put all of thise in a separate webpage


you use this to create the popup:

[script language="javascript"]
[!--
function WMP()
{ window.open ("WMP-popup.htm","WMP","left=0,width=630,top=0,height=600,menubar=0,location=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0");
}
// end script --]
[/script]


then lastly you make a link to the popup:

[a href="javascript:WMP()"]

FBI_Agent

AIM: EliteAssassin187



0

Response Number 5
Name: richb
Date: July 23, 2004 at 09:14:56 Pacific
Reply:

but i need to do it with quicktime because thats what i always export my videos out to, because i can compress them smaller using i can with windows media player, can someone seriously please write an ultra newbie reply telling me how to do this. PLEASE


0

Related Posts

See More



Response Number 6
Name: tbejot
Date: August 25, 2004 at 09:06:12 Pacific
Reply:

put a command in the web page to load the popup page with parameters that you set
I use a link that calls the javascript function openVideoWin();

Link

where filename is the name of the file
width is the width of the video
height is the height of the video
loop is set to 1 or 0 (loops or plays once)
show controller is 1 or 0 (shows controller or no controller shown)
autoplay is set to 1 or 0 (autoplays or user must click to play)

paste the following code in before the <body>

<script language="javascript">
var newWindow

function openVideoWin(filename, width, height, loop, controller, autoplay,)
{

//close an open window if open (delete these lines if you want multiple windows open, but give each window a new name using a random variable
if (newWindow && !newWindow.closed)
{
newWindow.close();
}


//make the text to write to the new window
//all variables not passed to the function must be assigned here

//if controller is to be shown add 16 for Quicktime, 32 for Windows Media Player to the height
var controller_height = 16 //may need to calc based upon browser, etc
if(controller == 1)
{
//add controller height
height = parseInt(height) + parseInt(controller_height);
}

text = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>";
text += "<html>\n<head>\n<title>" + filename + "</title></head>\n<body align='left' leftmargin='0' topmargin='0' bgcolor='#000000'>\n";
text += "<OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'\n" ;
text += "WIDTH='" + width + "'\n";
text += "HEIGHT='" + height + "'\n";
text += "CODEBASE='http://www.apple.com/qtactivex/qtplugin.cabversion=6,0,2,0'>\n";
text += "<PARAM NAME='controller' VALUE='" + controller + "'>\n";
text += "<PARAM NAME='type' VALUE='video/quicktime'>\n";
text += "<PARAM NAME='autoplay' VALUE='" + autoplay + "'>\n";
text += "<PARAM NAME='target' VALUE='myself'>\n";
text += "<PARAM NAME='SRC' VALUE='" + filename + "'>\n";
text += "<PARAM NAME='LOOP' VALUE='" + loop + "'>\n";
text += "<PARAM NAME='pluginspage' VALUE='http://www.apple.com/quicktime/download/indext.html'>\n";
text += "<EMBED WIDTH='" + width + "'";
text += "HEIGHT='" + height + "'";
text += "CONTROLLER='" + controller + "'";
text += "TARGET='" + controller + "'";
text += "SRC='" + filename + "'";
text += "TYPE='video/quicktime'";
text += "AUTOPLAY='" + autoplay + "'";
text += "LOOP ='" + loop + "'";
text += "BGCOLOR='#000000'";
text += "CACHE='true'";
text += "KIOSKMODE='true'";
text += "PLAYEVERYFRAME='true'";
text += "PLUGINSPAGE='http://www.apple.com/quicktime/download/indext.html'>";
text += "</EMBED>";
text += "</OBJECT>\n";
text += "\n</body>\n</html>\n";

//text is written so now open a new window, write the text and focus the window
newWindow=window.open('','VideoPlayer','width=' + width + ',height=' + pheight + ',resizable') ;
newWindow.document.write(text);
newWindow.focus();
newWindow.document.close();
}
</script>


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: quicktime videos in pop up windows

Images in Pop-Ups www.computing.net/answers/webdevel/images-in-popups/1202.html

Pop Up Window www.computing.net/answers/webdevel/pop-up-window/2254.html

Pop-Up Windows Script www.computing.net/answers/webdevel/popup-windows-script/1257.html