Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Viewing QT clip independently

Viewing QT clip independently
Thread Tools
Forum Regular
Join Date: Jun 2001
Location: Boothwyn, PA, USA
Status: Offline
Reply With Quote
Jan 30, 2004, 09:32 AM
 
I have a few quicktime video up on my site and when I click to view them they open up in their own new window. However it is a whole page. How do I set it up so that they only open in a small window the size of the movie frame? I am using Dreamweaver. Thanks.
Quad G5 1.5 gig 12 inch PB Lots of other stuff.

http://www.billkinkle.com
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Jan 30, 2004, 09:40 AM
 
make a new page, embed the clip in that. on your link to open the clip, specify the new page, then hit up the Behaviors panel, where you can specify the window size you want opened
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Forum Regular
Join Date: Jun 2001
Location: Boothwyn, PA, USA
Status: Offline
Reply With Quote
Jan 30, 2004, 09:19 PM
 
How exactly do I do that? I hit the + sign on the behaviors tab and tried open browser window. But I can only do it for one link on the page. If I try to do it for any other links I don't get the option for the open browser window.
Quad G5 1.5 gig 12 inch PB Lots of other stuff.

http://www.billkinkle.com
     
Forum Regular
Join Date: Jun 2001
Location: Boothwyn, PA, USA
Status: Offline
Reply With Quote
Jan 30, 2004, 09:25 PM
 
I also keep getting 2 new windows that pop up when I test it. 1 window in the back says "about blank" and the foreground window actually has the video clip.
Quad G5 1.5 gig 12 inch PB Lots of other stuff.

http://www.billkinkle.com
     
Mac Elite
Join Date: Mar 2003
Status: Offline
Reply With Quote
Jan 31, 2004, 06:44 PM
 
There is a way that is a bit more cut n paste.

1) create a new page that you want the quicktime file to be in.

2) go to the menu bar and Inset > Media > Plugin. Find your movie and make sure it is link relative to the document or you know what the url is.

3) switch over to code view and insert a javascript in to the <head> </head> of the page.

<script language ="JavaScript">
<!--
window.resizeTo(600,800)
-->
</script>

4) Change the size to whatever you want the page to display as. Play around with the size until it shows all of your video and whatever is on that page.

5) switch back in to design mode and open the page that you will make the link in and modify the link to find the page you just created.

6) make sure in the properties window you put in the target field _blank

_blank makes the link open in a new window.

One thing you want to watch out for is that the embedded video file is set to the right height. By default, I think dreamweaver creates the embedding line of code at 32x32.

I hope that helps.
     
Fresh-Faced Recruit
Join Date: Sep 2001
Status: Offline
Reply With Quote
Sep 27, 2004, 01:33 AM
 
Originally posted by philzilla:
make a new page, embed the clip in that. on your link to open the clip, specify the new page, then hit up the Behaviors panel, where you can specify the window size you want opened
I found the original post by search. It's very similar to my question.

I upload video clips to an omni database for my website.

The thumb is placed in the page and when clicked on opens a full size window with a small qt video in the center.

Is there a way to specify in quicktime info (using Plugin Helper or similar) that the window will be only slightly larger than the video window?

This would be easier for me to do on my end when I create the clips as my developer will charge me major $$ to implement a backside change that will cause this to happen automatically with any video uploaded.
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Sep 27, 2004, 05:35 AM
 
Originally posted by brinj:
my developer will charge me major $$ to implement a backside change


Seriously, though...

Here's a bit of code you can use on yer site and I won't touch your backside.

First, add this bit of code BEFORE the </head> command in the HTML page:-

Code:
<script type="text/javascript"> function open_clip(obj,width,height) { target = obj.target; link = obj.href; scrx = screen.width; scry = screen.height; winX = (scrx/2)-(width/2); winY = (scry/2)-(height/2); enlargementWin = open(link,target,'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,width='+width+',height='+height+',left='+winX+',top='+winY+',screenX='+winX+',screenY='+winY+',resizeable=no'); enlargementWin.moveTo(winX,winY); enlargementWin.focus(); return false; } </script>
Then, in your HTML page, you can add links like this example (E.g. let's say your clip is in a HTML file called 'movie.html', it's 400 x 300 dimensions);-
Code:
<a href="movie.html" target="qt_window" onclick="return open_clip(this,400,300)">Here's a link to my movie</a>
Essentially, this is a non-javascript friendly way of opening a link in a new window. If someone doesn't have JavaScript, the movie will simply open in a new window. If they DO have JavaScript, the new window will open to fit a 400x300 movie and centre itself within the user's screen.

Note: You can reference a movie file directly (rather than embedding it inside a html file) but you won't have as much control over how it plays, whether it has controls, etc...

I create HTML pages for my QT media in the following manner:- (pretending your movie is called 'movie.mov')
Code:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="400" height="300"> <param name="src" value="movie.mov" /> <param name="autoplay" value="true" /> <param name="controller" value="true" /> <param name="loop" value="false" /> <object type="video/quicktime" data="movie.mov" width="400" height="300" class="mov"> <param name="autoplay" value="true" /> <param name="controller" value="true" /> <param name="loop" value="false" /> <p>Sorry - your browser does not support embedded Quicktime clips</p> </object> </object>
This is an XHTML-friendly version of embedding that works for both IE (for PC) and all other browsers - if your browser does not support quicktime, you simply get a text message (unless you're using Safari which doesn't handle unsupported plugins at all gracefully!)

Hope this helps!
Computer thez nohhh...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:55 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2