plugin:flowplay2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:flowplay2 [2010-10-10 14:48] – downloadurl lupo49 | plugin:flowplay2 [2023-12-21 15:35] (current) – new download url Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== flowplay2 | + | ====== flowplay2 |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : blind (at) bspot.de | email : blind (at) bspot.de | ||
type : syntax | type : syntax | ||
lastupdate : 2008-04-16 | lastupdate : 2008-04-16 | ||
- | compatible : ??? | + | compatible : 2008-05-05 |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : media, video, flash, embed, !experimental | + | tags : |
- | downloadurl: | + | downloadurl: |
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
- | ^ Author | bspot <blind (at) bspot.de>| | + | Flash is not available anymore in browsers. Video functionality is included in DokuWiki, see the [[wiki:syntax# |
- | ^ Version | 0.3 (2008-04-16), bundled with FlowPlayer 2.1.2 | | + | |
- | ^ Status | [[:experimental]] | + | |
- | ^ Required DokuWiki version | tested with some of these 2008-04 releases | | + | |
- | ^ Download | [[http:// | + | |
- | ^ Old revisions | none | | + | |
===== Description ===== | ===== Description ===== | ||
Line 27: | Line 27: | ||
Using this plugin, you can embed audio and video files into your wiki pages. Anyone with a reasonably recent Flash Player will < | Using this plugin, you can embed audio and video files into your wiki pages. Anyone with a reasonably recent Flash Player will < | ||
- | This is accomplished by embedding [[http:// | + | This is accomplished by embedding [[https:// |
In contrast to the original [[: | In contrast to the original [[: | ||
Line 42: | Line 42: | ||
> | > | ||
>Half of the plugin code was copied from the [[video]] plugin by Jason Byrne and Chris Smith (I just needed a template, and that code was similar enough to mine)" | >Half of the plugin code was copied from the [[video]] plugin by Jason Byrne and Chris Smith (I just needed a template, and that code was similar enough to mine)" | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | Paste one of these into your plugin manager: [[http:// | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 59: | Line 55: | ||
Works like for the flowplay plugin. Citing Dave Kliczbor again: | Works like for the flowplay plugin. Citing Dave Kliczbor again: | ||
- | >In most cases, no additional configuration is needed. There are some rare cases when the video does not play... I haven' | + | > In most cases, no additional configuration is needed. There are some rare cases when the video does not play... I haven' |
- | > | + | > |
- | >In both cases, you have one configuration variable to set: < | + | > In both cases, you have one configuration variable to set: < |
$conf[' | $conf[' | ||
</ | </ | ||
- | >This example assumes that the URL of '' | + | > This example assumes that the URL of '' |
===== Usage ===== | ===== Usage ===== | ||
Line 72: | Line 68: | ||
* image: JPG, PNG | * image: JPG, PNG | ||
* audio: MP3 | * audio: MP3 | ||
- | Check [[http:// | + | Check [[https:// |
About the conversion take a look at [[http:// | About the conversion take a look at [[http:// | ||
Line 79: | Line 75: | ||
* have to embed the player, and | * have to embed the player, and | ||
* optionally may define further files to be shown in the player. | * optionally may define further files to be shown in the player. | ||
+ | |||
==== Embedding the player ==== | ==== Embedding the player ==== | ||
Syntax: | Syntax: | ||
- | < | + | |
- | {{flowplay> | + | |
- | </ | + | |
- | The _path_to_media_file_ is - you may have guessed - a path to any media file recognized by the player. It is though optional: If you leave it out, the player won't be shown (and loaded) until one of the playlist items (see below) is clicked. | + | The '' |
- | The _player_options_ is a list of space-separated options passed to the flowplayer as follows: | + | The '' |
* An option looking like '' | * An option looking like '' | ||
* An option looking like '' | * An option looking like '' | ||
Line 102: | Line 97: | ||
The syntax is: | The syntax is: | ||
- | < | + | |
- | [[flowplay> | + | |
- | </ | + | |
- | The _path_to_media_file_ again is the path to your media file. It is of course not optional here. | + | * The '' |
- | + | | |
- | The _link_title_ the title of the link - any wiki markup allowed. | + | |
===== Known Bugs ===== | ===== Known Bugs ===== | ||
Line 118: | Line 110: | ||
* **2008-04-16 Version 0.3**: | * **2008-04-16 Version 0.3**: | ||
- | | + | |
===== Discussion ===== | ===== Discussion ===== | ||
Line 149: | Line 142: | ||
I have had some problems showing two renders of the plugin. I modified the source. Not very clean but good enough. | I have had some problems showing two renders of the plugin. I modified the source. Not very clean but good enough. | ||
- | | + | |
- | --- syntax.php 2009-02-13 10: | + | <code diff> |
- | +++ / | + | $ LANG=C diff -uNr syntax.php ~/ |
- | @@ -179,6 +179,10 @@ | + | --- syntax.php 2009-02-13 10: |
- | $r .= " | + | +++ / |
- | + | @@ -179,6 +179,10 @@ | |
- | $r .= " | + | $r .= " |
- | + | + | |
- | + // Eduardo | + | |
- | + preg_match("/: | + | |
- | + //$r .= " | + | |
- | + | ||
- | // EMBED configuration | + | |
- | $r .= "var embedConfig = " | + | |
- | @@ -191,10 +195,14 @@ | + | |
- | | + | |
- | + | ||
- | // add the player-div | + | |
- | - $r .= "< | + | |
- | + //$r .= "< | + | |
- | + // Eduardo | + | |
- | + $r .= "< | + | |
- | + | + | |
- | + $r .= '< | + | |
- | + | ||
- | | + | |
- | } | + | |
- | } | + | |
| | ||
- | -?> | + | $r .= " |
- | \ No newline at end of file | + | + |
- | +?> | + | + // Eduardo |
+ | + preg_match("/: | ||
+ | + //$r .= " | ||
+ | |||
+ | // EMBED configuration | ||
+ | $r .= "var embedConfig = " | ||
+ | @@ -191,10 +195,14 @@ | ||
+ | "</ | ||
+ | |||
+ | // add the player-div | ||
+ | - $r .= "< | ||
+ | + //$r .= "< | ||
+ | + // Eduardo | ||
+ | + $r .= "< | ||
+ | + | ||
+ | + $r .= '< | ||
+ | |||
+ | return $r; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | -?> | ||
+ | \ No newline at end of file | ||
+ | +?> | ||
+ | </code> | ||
and also | and also | ||
- | | + | <code diff> |
- | --- playlist.js 2008-04-16 22: | + | $ LANG=C diff -uNr playlist.js ~/ |
- | +++ / | + | --- playlist.js 2008-04-16 22: |
- | @@ -31,6 +31,9 @@ | + | +++ / |
- | | + | @@ -31,6 +31,9 @@ |
- | // set URL | + | { |
- | playerConfig.videoFile = url; | + | // set URL |
- | + | + | playerConfig.videoFile = url; |
- | + // Eduardo | + | + |
- | + var id_url = url.match(/: | + | + // Eduardo |
- | + | + var id_url = url.match(/: | |
- | // if flowplayer is not loaded. load it now. | + | |
- | if (flowplayerobject == null) | + | // if flowplayer is not loaded. load it now. |
- | @@ -39,7 +42,8 @@ | + | if (flowplayerobject == null) |
- | // Flash API is automatically returned (flashembed.js ver. 0.27) | + | @@ -39,7 +42,8 @@ |
- | flowplayerobject = flashembed | + | // Flash API is automatically returned (flashembed.js ver. 0.27) |
- | ( | + | flowplayerobject = flashembed |
- | - " | + | ( |
- | + " | + | - " |
- | + //" | + | + " |
- | embedConfig, | + | + //" |
- | {config: playerConfig} | + | embedConfig, |
- | ); | + | {config: playerConfig} |
- | @@ -53,27 +57,29 @@ | + | ); |
- | | + | @@ -53,27 +57,29 @@ |
- | | + | } |
- | | + | |
- | + | + | |
- | | + | + |
- | | + | window.onload = function() |
- | - var links = document.getElementsByTagName(" | + | { |
- | - for (var i = 0; i < links.length; | + | - var links = document.getElementsByTagName(" |
- | - { | + | - for (var i = 0; i < links.length; |
- | - if (links[i].className == " | + | - { |
- | - { | + | - if (links[i].className == " |
- | - links[i].onclick = function() | + | - { |
- | - { | + | - links[i].onclick = function() |
- | - playerConfig.autoPlay = true; | + | - { |
- | - runFlowPlayer(this.getAttribute(" | + | - playerConfig.autoPlay = true; |
- | - | + | - runFlowPlayer(this.getAttribute(" |
- | - // disable link's default behaviour | + | - |
- | - return false; | + | - // disable link's default behaviour |
- | - } | + | - return false; |
- | - } | + | - } |
- | - } | + | - } |
- | - | + | - } |
- | - // start player if url is given | + | - |
- | - if (playerConfig[" | + | - // start player if url is given |
- | - runFlowPlayer(playerConfig[" | + | - if (playerConfig[" |
- | + | + | - runFlowPlayer(playerConfig[" |
- | + //var links = document.getElementsByTagName(" | + | + |
- | + //for (var i = 0; i < links.length; | + | + //var links = document.getElementsByTagName(" |
- | + //{ | + | + //for (var i = 0; i < links.length; |
- | + // if (links[i].className == " | + | + //{ |
- | + // { | + | + // if (links[i].className == " |
- | + // | + | + // { |
- | + // | + | + // |
- | + // | + | + // |
- | + // | + | + // |
- | + // | + | + // |
- | + // // disable link's default behaviour | + | + // |
- | + // | + | + // // disable link's default behaviour |
- | + // } | + | + // |
- | + // } | + | + // } |
- | + //} | + | + // } |
- | + // | + | + //} |
- | + //// start player if url is given | + | + // |
- | + //if (playerConfig[" | + | + //// start player if url is given |
- | + // | + | + //if (playerConfig[" |
- | + | + // | |
- | // when user presses splash image it triggers our first playlist entry | + | |
- | if (document.getElementById(" | + | // when user presses splash image it triggers our first playlist entry |
+ | if (document.getElementById(" | ||
+ | </ | ||
+ | |||
+ | ===== Putting more than one player on a page ===== | ||
- | ====== Putting more than one player on a page ====== | ||
<code php syntax.php> | <code php syntax.php> | ||
<?php | <?php |
plugin/flowplay2.1286714885.txt.gz · Last modified: 2010-10-10 14:48 by lupo49