www.webdeveloper.com
Results 1 to 11 of 11

Thread: Scale QTVR in HTML?

  1. #1
    Join Date
    Oct 2003
    Posts
    6

    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.

    For example:

    <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

    Any ideas?

    Thanks,
    Andy

  2. #2
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    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.

  3. #3
    Join Date
    Oct 2003
    Posts
    6
    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.

  4. #4
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    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!
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  5. #5
    Join Date
    Oct 2003
    Posts
    6
    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

  6. #6
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    Oh right I see. No, it's got a broad white border around it. Does it need to fill it?
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  7. #7
    Join Date
    Oct 2003
    Posts
    6
    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/" />

  8. #8
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    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.
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  9. #9
    Join Date
    Oct 2003
    Posts
    6
    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...

    http://www.zen12165.zen.co.uk/files/...tvr/index.html

    Thanks for your help, hopefully it'll be ok now.

  10. #10
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    Yup - it sure does!
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  11. #11
    Join Date
    Oct 2003
    Posts
    6
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles