Scale QTVR in HTML?
What's the best way to scale a QTVR movie in html? This is what it says on the Apple site...
SCALE=value (optional...requires QuickTime 3)
SCALE is either TOFIT, ASPECT or a number. By default the value of SCALE is 1. If set to TOFIT, the movie is scaled to fit the embedded box as specified by the HEIGHT and WIDTH attributes. If this is set to ASPECT, the movie will scale to fit the embedded box while maintaining the aspect ratio. If this is set with a number, the movie will be scaled by that number (e.g. 1.5). Note: Using the number scale attribute with a QTVR Panorama movie can degrade the performance of the movie even on high-end systems.
<embed src="sample.mov" width="200" height="240" scale="tofit">
But it's not working for my client in IE on Windows (it works on Mac Safari and IE though).
Here's an example of the problem... http://www.zen12165.zen.co.uk/files/...tvr/index.html
Apple Computers don't seem to give you good advice in that sense just use the width values of either the <object> or proprietary <embed /> and in general the movie will fill those dimensions.
Thanks Robert, I'd already done that though, the width and height in both the object and embed tags are set to the desired size but I'm told it's not working (I'm on Mac, client is on Win XP).
If you have a minute the link to the offending page is in my original post.
Works a treat in IE6 on WinXP - although I had to download quicktime and update an activeX component before it would work. Where was it taken - looks like a big shopping centre!
Is the QTVR scaling to fill the popup window?
The QTVR was produced by a company called GMJ Design, they do 3D visuals of buildings for developers and architects, it's of an office block in London called CityPoint. I built this site for GMJ last year... http://www.gmj.net
Oh right I see. No, it's got a broad white border around it. Does it need to fill it?
Yep, thats the idea. The QTVR is only 480 x 320 when viewed in QT Player but it's supposed to scale up in the browser window.
It works fine on Mac (I've checked it in Netscape, Safari and IE) but doesn't scale in IE on Windows.
Here's the source I've embedded it with...
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="852" height="568" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="bishopsgate.mov" />
<param name="autoplay" value="true" />
<param name="controller" value="true" />
<embed src="bishopsgate.mov" width="852" height="568" scale="tofit" autoplay="true" controller="true" pluginspace="http://quicktime.apple.com/" />
So even when you change the widths of the movie to match the window it doesn't work?
Have you tried % widths for the movie? I don't have any .mov files to try it with, so it's just a guess. Other than that it must be in the coding of the .mov file.
I know that .avi files scale to the dimensions you enter for the object element.
Ok, I've rewritten the embed info and it's working fine in all Mac browsers, please could you take a look again from a PC and see if the QTVR is filling the popup window...
Thanks for your help, hopefully it'll be ok now.
Cheers Dave, success at last! I think it was because I'd used both 'object' and 'embed' tags and one was interfering with the other.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)