pop open QT player in webpage

Discussion in 'Web Design and Development' started by zimbot, Mar 19, 2009.

  1. zimbot macrumors newbie

    Joined:
    Mar 19, 2009
    #1
    How might one link to a QT movie in a webpage and have it pop up a QT player while doing http protocol . I have done it with

    RTSP and streaming

    like this :: in a webpage
    <a href="300_ref.mov" target="_blank"><img src="img/300.png"/></a>

    and a reference movie that really is a text file ( 300_ref.mov )
    RTSPtextRTSP://208.nnn.nn.nn/300.mp4

    this will open the QT Player and you can resize it.
    ----------------


    the only way to deliver via http -- that i have found is to embed it and you are "stuck" with the Hight & width in the tags


    So you cannot 'grab' the player and scale it
    <embed src="mov/301.mp4" width="320" height="256" autoplay="true" loop="false" controller="true" playeveryframe="false"

    bgcolor="#999999" kioskmode="false" targetcache="true" pluginspage="http://www.apple.com/quicktime/"></embed>

    what i wish to do is have the QT player just open with my mov in it.
    deliver from an apache server http from the same server that has the html

    thanks!
     
  2. SrWebDeveloper macrumors 68000

    SrWebDeveloper

    Joined:
    Dec 7, 2007
    Location:
    Alexandria, VA, USA
    #2
    Maybe I'm not following you correctly but you raised two issues. First, how to make the QT plugin popup via HTTP. Second, allow users to be able to resize the viewer.

    As to the first, use the object tag as well as the embed tag to initiate the QT media and invoke the plugin. The plugin will be spawned by the browser and the user sees the media. Entirely HTTP.

    Example code:

    HTML:
    <object width="160" height="144"
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="sample.mov">
    <param name="autoplay" value="true">
    <param name="controller" value="false"> <embed src="sample.mov" width="160" height="144"
    autoplay="true" controller="false"
    pluginspage="http://www.apple.com/quicktime/download/">
    </embed> </object>
    As to the second, Apple's QT 7 allows what is called live resize plus it supports the latest hi-res video and audio codecs. Download here.


    I believe QT Pro users may also resize but as a developer via HTTP and the plugin you can only set the initial width/height as you see fit based on whatever criteria you want, i.e. the users browser window size or screen resolution which are all available via JavaScript. I'd like to hear other opinions on this as I could be wrong, plus I might have misunderstood your request.

    -jim
     

Share This Page