Loading...
 
Skip to main content

History: PluginWMV

Source of version: 5 (current)

Copy to clipboard
            {REMARKSBOX(type="error" title="Deprecated")}This plugin has been removed and replaced by ((PluginMediaPlayer)){REMARKSBOX}
! Wiki Plugin WMV

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

!! Usage
Copy attachment to:
{CODE()}lib/wiki-plugins/{CODE}

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

__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

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


!! Example

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

!! Link .wmv file in file galleries

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 
{CODE()}
$asetup .= "<param name=\"Filename\" value=\"$movie\"> ";
{CODE}
change to
{CODE()}
$asetup .= "<param name=\"Filename\" value=\"tiki-download_file.php?fileId=$movie\"> ";
{CODE}

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

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

*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
You can download it from the [http://tikiwiki.org/tiki-download_wiki_attachment.php?attId=476&page=PluginWMV|attachment to http://tikiwiki.org/PluginWMV], and copy it to copy to __lib/wiki-plugins__.