[Pmwiki-users] Re: Embed QuickTime?

Patrick R. Michaud pmichaud
Wed Sep 22 09:12:01 CDT 2004


How about something like the following...?

    function QuickTime($url) {
      return "<object 
        codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
      <param name='src' value='$url'>
      <param name='autoplay' value='false'>
      <param name='kioskmode' value='true'>
      <embed src='$url' autoplay='false' kioskmode='true'>
      </embed></object>";
    }

    $DoubleBrackets['/\\[:quicktime\\s+(\\S+?)\\s*:\\]/e'] = 
      "Keep(QuickTime('$1'))";

This adds [:quicktime ... :] markup for embedding a quicktime
component into a page.  The parameter is the URL of the object to
be displayed, as in

   [:quicktime http://www.allcritters.com/1901.mp3 :]

You can see this in action at http://www.pmwiki.org/wiki/Test/QuickTime.

I would think that this would not normally be enabled on publicly editable
web pages, as there are some QuickTime objects (e.g., videos) that one might
not want displayed on his/her website... :-)

Pm


On Wed, Sep 22, 2004 at 08:51:08AM -0400, Lee Corbridge, DVM wrote:
> Hi Patrick ... 
> 
> Hope all is well with you and yours ...   
> Here is the code to make QT work in html : 
> 
> 
> <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" 
> width="140" height="16" 
> codebase="http://www.apple.com/qtactivex/qtplugin.cab">  
> <param name="SRC" value="http://www.allcritters.com/1901.mp3">  
> <param name="autoplay" value="false"> 
> <param name="kioskmode" value="true"> 
> <embed src="http://www.allcritters.com/1901.mp3" autoplay="false" 
> width="140" height="16" kioskmode="true">  
> </embed>  
> </object> 
> 
> I hope you can figure it out! 
>  
> On Tuesday, September 21, 2004, at 02:00 PM, 
> Pmwiki-users-request at pmichaud.com wrote: 
> 
> 
> > On Tue, Sep 21, 2004 at 10:40:15AM -0400, Lee Corbridge, DVM wrote: 
> > 
> > > Is there a way to embed a QuickTime file into PmWiki? 
> > > 
> >  
> > I've never dealt with QuickTime -- how does one normally put 
> > QuickTime into a page with HTML? 
> > 
> > Pm 
> > 
>  
> 
> I Hope This Helps ... 
> Keep Looking Up 
> 
> Doc 
> 
> Lee Corbridge, DVM ~ allcritters at yahoo.com 
> http://www.allcritters.com ~ Sebring, FL 
> Member AVMA ~ USDA Accredited 
> 
> Practice Limited To Cats Of All Sizes 
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
> 
> "Life is about creating yourself."  -- George Bernard Shaw 
> 
> "Never doubt that a small group of thoughtful, committed citizens can 
> change the world;  
> indeed, it's the only thing that ever has."  -- Margaret Mead 
> 
> 
> 

> -- 
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com




More information about the pmwiki-users mailing list