====== Plugin: FlashPlayer ====== ---- plugin ---- description: A flash player that plays various media formats (based on the work of Sam Hall). author : Arno Welzel email : himself@arnowelzel.de type : syntax lastupdate : 2011-12-23 compatible : 2006-11-06, 2008-05-05, 2009-02-14b, 2009-12-25c, 2010-11-07a, 2011-05-25 depends : conflicts : similar : flowplay, youtube, youtubev2, google_video, video tags : media, images, video, music, flash, embed downloadurl: http://arnowelzel.de/download/flashplayer-20111223.zip ---- ===== News ===== Since Sam Hall seems not to work any longer on this plugin i changed the plugin information to the current state. --- //Arno Welzel 19.08.2011 18:27 CET// Download link fixed to the extended version (where is Sam Hall's one?) --- //[[disparat@googlemaol.com|Stephan Hesse]] 25.04.2011 17:16 CET// I've also updated the code to resolve most of the issues listed in the discussions section to date. So it should be compatible with PHP 4 now. Cheers, --- //[[subnetjet@yahoo.com.au|Sam Hall]] 23.01.2008 15:21// ===== Description ===== This is a cool player that play various media formats. It simplifies embedding audio and movie files into your wiki pages. See [[http://www.jeroenwijering.com/?item=Flash_Media_Player|Flash Media Player]] for full details about what you can do with this player. "The Flash Media player supports playback of a single media file of any format the Adobe Flash Player can handle (MP3,FLV,SWF,JPG,PNG or GIF). It also supports RSS/XSPF/ATOM playlist (with mixed mediatypes), a wide range of flashvars (settings) for tweaking both behavior and appearance and an extensive, documented javascript/actionscript API." NB: According to the author's web site, Adobe Flash Player is still required; this is not a replacement for Flash. It appears to be more of a front-end replacement for flash rather than a full-blown media player with its own decoding and presentation logic. ===== Demo pages ===== You got this plugin up and running? You have got a demo page? Put a link here! Tanja Schmidt (vocalist): [[http://tanjaschmidt.de]] (used for playing mp3-files) Ed Bradburn (musician): [[http://www.tunemason.org]] (simple MP3 melodies; search for "Audio") FIXME Site is Down! York University: [[https://wiki.cse.yorku.ca/dept/tdb/wiki:plugins:flashplayer]] Arno Welzel: [[http://arnowelzel.de/wiki/reviews/sandisk_cruzermicro8gb]] (extended version by myself, XHTML conform) Paul Troost: [[http://www.greenbird.info/cplusplus/stereo_vision#results]] University Climbing Groub [[http://klettern.uni-hohenheim.de/wiki/start]] HD Webplayer: [[http://www.hdwebplayer.com|Flash video Player]] (Plugin) ===== Acknowledgements ===== I have to thank Sam Hall for his work which was really helpful for me and i'm glad to continue the maintainance. (Arno Welzel) //Original from Sam Hall:// I better thank Dave Kliczbor since I pretty much copy and pasted this page from his [[FlowPlay]] plugin, which is a similar plugin. Thanks mate! Now I'm going to steal some of your words to save some time... (No problem, Sam! I've got an almost unlimited supply of words, I can afford to share some ;-) --Dave) This plugin is merely a wrapper for the excellent [[http://www.jeroenwijering.com/?item=Flash_Media_Player|Flash Media Player]] by Jeroen Wijering. I just wrote the glue to DokuWiki and bundled it with Flash Media Player. This is my first plugin, and so you will probably recognize the skeleton as being pretty much the same as what was used in the one at the end of the [[devel:Syntax Plugins#Sample Plugin 2 - Color|syntax tutorial]]. So thanks to Christopher Smith for that sample code. ===== Installation ===== Download and extract the flashplayer folder into your plugins folder. ===== Usage ===== flashvars Replace x and y with the height and width you would like, note that the slider is 20 pixels high, so if you want to display a movie that is 240 in height you would enter height=260. Replace [[http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options#playlistprop|flashvars]] with the variables defined in the documentation for the player. This can be found at:\\ /lib/plugins/flashplayer/flash_media_player/readme/readme.html FIXME The most basic [[http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options#playlistprop|flashvars]] string would be like: file=http:/// ===== Discussion ===== Hello, nice plugin, but it does not work with rewrite out of the box. You have to change line 67 in ''syntax.php'' and add '''.DOKU_BASE.''' as suffix to the ''.swf''-path. 67: $renderer->doc .= ' Dokuwiki only supports PHP5 ==== Fullscreen ==== If the fullscreen button is not working, open ''syntax.php'' and add ''allowfullscreen=true'' at line 68 : $renderer->doc .= 'file=/dokuwiki/lib/exe/fetch.php?media=test.flv, it works, but I think that using PHP script for this is just useless wasting of processing time. Any suggestions ? (I tried it on Apache running on both Windows and Linux server) Thanks, ~Jan > This is by design - there is a local .htaccess file in the "media" directory, which forbids direct access to files in it from "outside" (via browser, flash plugin etc.). Well - you can just delete this local .htaccess - but since DokuWiki does its own processing (scaling etc.) for images, you should not allow direct access to media files anyway to avoid direct linking to them from other web sites. And just fetching a media file via fetch.php is really not a big waste of processing time, as fetch.php just passes the file through. > > //Arno// ===== video does not start ===== Hi!\\ First I had the same troubles as Jan did, but since I read his post I no longer got the Video not found: /dokuwiki/_media/test.flv"-error.\\ But I can't get my video (which is in the default namespace) to start. (But there is no crossed playicon shown).\\ In some cases it just seems to load (the load animation), but the video never starts.\\ (THe URL seems correct enough not to give that only "not found"-message?)\\ I am sure that I at least in the first cases have the correct URL, cause I copied it from the mediamanager.\\ Loading external flv's plays just fine.\\ And also loading files that I through FTP put within my dokuwiki-folder, but outside of the media-folder.\\ (Like file=/lib/videos/test.flv).\\ What seems to be the problem you think?\\ Thanks /Micke ===== Can I get an autostart? ===== Hello there!\\ I'm using your plugin on [[http://animtion-workshop.co.uk/wiki]] - as you can see, when you load the page it looks like a black box. Is there a way to make it autoplay, or desplay an image before you press play? Thanks,\\ Mike Yes you can, add to flashwars &autostart=true ===== File= path not working ===== **Flashplayer plugin problem loading media via file=path_flashvar with mod-rewrite off on default Dokuwiki installation - SOLVED** With the default installation of Dokuwiki to www root, I couldn't even load a media file from a relative path, for example neither of these would work: file=/_media/test.mp3 //works after mod-rewrite enabled in .htaccess (included in dokuwiki root) file=/lib/exe/fetch.php?media=test.mp3 //never works even after mod_rewrite enabled After enabling the mod_rewrite functionality as per [[:rewrite|Dokuwiki rewrite instructions]], everything now works with the former relative path above but not the later. Also, I figured out custom skins will work with JW Player too. I just copied my skin, simple.zip to \lib\plugins\flashplayer and used the skin=flashvar as follows: file=/_media/test.mp3&skin=/lib/plugins/flashplayer/simple.zip It was very annoying to say the least that I couldn't even load a simple .flv or .mp3 file using this [[http://arnowelzel.de/wiki/misc/flashplayer|flashplayer plugin (the extended version)]] and it took me hours to figure out that I had to enable Mod Rewrite to get the flashplayer working out of the box after discovering URL rewriting is disabled by default in Dokuwiki. Or perhaps I was doing something wrong? Does anyone else know what the file=path is for a default installation of Dokuwiki? [[http://arnowelzel.de/wiki/en/misc/flashplayer#hint_how_to_specifiy_the_file_parameter_file| Again, the suggested path for when .htaccess is not used didn't work for me.]] I hope this post helps someone else and thanks to everyone for all the inspirational effort that's been put into dokuwiki including great plugins like this one! ===== How to make it work in localhost ===== Hi! My doku wiki work in local, inside the Wamp server.\\ I tried all the possibilities proposed here, i did as suggested with the .htaccess or the mod-rewrite... i tried everything, i receive the error message : Video not found or access denied : /_media/test.flv.\\ \\ the way to success it is to write the direction like this : file=http://localhost/DokuWiki/_media/test.mp3 We notice here that my file is inside the _media folder that is himself in the DokuWiki folder ;)