QuickTime

Summary: Embed QuickTime content on wiki sites.
Status: Stable
Version: 2009-12-20
Prerequisites: pmwiki-2.0
Maintainer:
Categories: Media Images Audio Video

Goal

Embed QuickTime content on wiki sites.

Installation

    include_once("$FarmD/cookbook/quicktime.php");

Usage

Use the normal Attach: syntax but wrap it with the quicktime markup:

 (:quicktime Attach:myfile.ext arg1=someting arg2=something:)

or to embed a file from another group:

 (:quicktime Attach:GroupName./myfile.ext arg1=someting arg2=something:)

or if embedding an external file, be sure to drop the Attach::

 (:quicktime http://www.externalwebsite.com/myfile.ext arg1=someting arg2=something:)

The arguments can be tag attributes as described here. Normaly it is at least the height and width of a movie file. If you show the controller you should reserve 16 additional pixel height for it.

Notes

Releases

  • 0.3 - 2009-12-20 - overtones99
    • now permits files from other groups, in the format: (:quicktime Attach:Group./file.ext:)
  • 0.2 - 2006-01-26 - Schlaefer
    • [feature] html Links
    • [change] no use of IMapLinkFmt
  • 0.1 - initial release - Schlaefer

Comments


hi - it doesn't seem possible to load quicktime video/audio from a group other than the one currently viewed. for instance, (:quicktime Attach:Group./test.mp3:) fails. how can this be alleviated? thx - overtones99 December 20, 2009, at 02:15 AM

the solution i've come up with is this: in the recipe, change:

	$filepath = FmtPageName("$UploadFileFmt/".$path, $pagename);

to:

	if(!strpos($path,"./")) $filepath = FmtPageName("$UploadFileFmt/".$path, $pagename);
	else $filepath = FmtPageName("$UploadDir/".str_replace('./','/',$path), $pagename);

overtones99 December 20, 2009, at 02:47 AM

added to v.0.3 - overtones99 December 20, 2009, at 03:43 AM


Hi again,
any progress on getting MOVs from external URLs to load yet?
doesn't seem to work, even if the suggestion of adding $QuickTimeExternalResource = 1 is heeded...
thanks, overtones99 April 20, 2008, at 05:56 PM

after looking around in the code of this recipe, figured out that external links must NOT be preceded by Attach:, or else it will fail... added some example code above for adding external URL file... overtones99 April 21, 2008, at 07:34 PM


Hi,
thanks for the recipe.
i'm finding that the whole video (with controller) will only display correctly if i include scale=aspect - if i leave that out, the vid gets chopped (in both firefox & safari). also, the clip (with scale=aspect enabled) displays indented in safari (weird), but aligned left in firefox (expected).

my questions:
1. is the indentation in safari a browser-issue, or a recipe-issue?
2. how can i set up some default variables? for instance, i would like it if any video that is put on the page includes the scale=aspect in the code, unless supplied by the user...
thanks, overtones99 April 20, 2008, at 05:06 PM


I, too, can only get files uploaded to the server to be embedded but not external URLs. Any suggestions? - Jeff, October 1, 2007


I also can't get it to work... also not with the asumed included $QuickTimeExternalResource = 1; (because without the $ and ; it will generate and error!)


It works. Thanks for your help! Cari, 3/2/2006


I can't get this to display- do I need to have anything else included or enabled? I have tried with local and remote quicktime urls, the end result is the URL is displayed in a non clickable form, but the embed of the movie does not happen. Jen 7/7/06

For remote URLs you have to include QuickTimeExternalResource = 1 into your config file. I'm not shure what you mean with local urls, but if you mean file:// this is not implemented at the moment. - Schlaefer July 18, 2006, at 09:01 AM

See Also

Contributors

User notes +1 -1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.