PluginWMV

Wiki Plugin WMV


Description

This plugin plays a Windows Media Player movie in a wiki page (.wmv)

Usage

Copy attachment to:
lib/wiki-plugins/


WMV Displays a Windows Media Player Movie on the wiki page:
{WMV(width=>xx,height=>xx,
controller=>true|false,autostart=>1|0)}Movie{WMV}


with and height optional (default 320 x 240)
controller optional (default true) 16 pix are added to height to show up the contoller
autostart optional (default false)


alternative you could write

{WMV(movie=>URL to Movie, width=>xx,height=>xx,
controller=>true|false,autoplay=>1|0)}{WMV}



Example


{WMV()}http://yoursite.org/pub/sample.wmv{WMV}



You can link .wmv files in file galleries as a plugin in wiki page by using the files' id in file galleries.

First you have to edit the wikiplugin_wmv.php

Add "tiki-download_file.php?fileId=" in this line in wikiplugin_wmv.php
$asetup .= "<param name=\"Filename\" value=\"$movie\"> ";

change to
$asetup .= "<param name=\"Filename\" value=\"tiki-download_file.php?fileId=$movie\"> ";


After that you just need to enter fileid of the wmv file instead of file's url

{WMV(movie=>fileid, width=>xx,height=>xx,
controller=>true|false,autoplay=>true|false,loop=>false|true)}{WMV}


  • Remember to change back the code if you want to link to file by using url or you can just create another new plugin.

Download


 wikiplugin_wmv.php

Contributors to this page: ahshang and gg78 points  .
Page last modified on Tuesday 31 October 2006 05:29:48 CET by ahshang.

Switch Language

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki

Shoutbox

Torsten2431 points , 14:06 CEST, Sun 22 Apr. 2012: Next Webinar at Thursday, 17th of May 2012 (21:00 UTC)at http://tiki.org/live
Torsten2431 points , 11:43 CEST, Tue 10 Apr. 2012: Next Webinar at Thursday, 19th of April 2012 (21:00 UTC) at http://tiki.org/live
Jyhem2569 points , 13:07 CET, Fri 16 Mar. 2012: What happened to the BBB room ?
Torsten2431 points , 01:44 CET, Sat 25 Feb. 2012: Next Webinar at Thursday, 15th of March 2012 (21:00 UTC) at http://tiki.org/live
Torsten2431 points , 13:29 CET, Fri 10 Feb. 2012: Next webinar at Thursday, 16. of Feb. 2012 (21:00 UTC) at http://tiki.org/live