pop open QT player in webpage

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

  1. zimbot macrumors newbie

    Mar 19, 2009
    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 )

    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

  2. SrWebDeveloper macrumors 68000


    Dec 7, 2007
    Alexandria, VA, USA
    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:

    <object width="160" height="144"
    <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"
    </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.


Share This Page