Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Add a media player to a page
3d browser Print

Tags: plugin

Plugin Media Player

Introduced in Tiki3

This Wiki Plugin can be used in wiki pages or any other wiki-syntax enabled feature to play a FLV or MP3 file. It calls on a flash based open source media player to play .mp3 or .flv files.

Table of contents


Details

This plugin adds a simple MP3 or FLV player in a page. The player is not required (it is called from the web if it is not available locally).

The players used can be one of the following:
http://flash-mp3-player.net (external link) (the default mp3 player)
http://flv-player.net (external link) (the default flv player)

Alternate players:
http://code.google.com/p/mp3player (external link)
http://code.google.com/p/flvplayer/ (external link)

You can download the player itself (an .swf file) from http://flash-mp3-player.net (external link) or http://flv-player.net (external link) or http://code.google.com/p/mp3player (external link) or [http://code.google.com/p/flvplayer/]]. If you do, you will need to edit the plugin and change the default source in the plugin code or add it as a "where" parameter in that instance of the plugin.

Troubleshooting

  • If the player doesn't appear, you probably got one of the plugin parameters wrong.
  • If the player appears but won't play, you probably got the wrong URL to the file.

Syntax Example

{MEDIAPLAYER(mp3="http://usuaris.tinet.org/mikell/EntrevistaRadio4.mp3")/}
{MEDIAPLAYER(mp3="http://usuaris.tinet.org/mikell/EntrevistaRadio4.mp3", style="mini")/}
{MEDIAPLAYER(mp3="/test.mp3", loop="1")/}
{MEDIAPLAYER(mp3="tiki-download_file.php?fileId=389")/}
{MEDIAPLAYER(flv="http://flv-player.net/medias/KyodaiNoGilga.flv")/}


Plugin Parameters

Besides the parameters described at http://flash-mp3-player.net (external link) and http://flv-player.net (external link) you can use the following Tiki parameters:
Param Values Defaults Req ? Explanation Since
mp3 link y (if no flv) link to the MP3 file
flv link y (if no mp3) link to a FLV file
style string normal n mini or normal or maxi or multi style
where (for MP3) url http://flash-mp3-player.net/medias/ n URL to SWF file of the player (ended with /)
where (for FLV) url http://flv-player.net/medias/ n URL to SWF file of the player (ended with /)
wmode string transparent n window mode of the Flash object 5.x


Flash MP3 Player Parameters:
Name Description
autoplay 1 to auto-play
bgcolor The background color
bgcolor1 The first color of the background gradient
bgcolor2 The second color of the background gradient
buttoncolor The color of the buttons
buttonovercolor Hover color of buttons
byteslimit If it is an MP3 streaming, the stream will restart at the bytes limit, to prevent overload.
loadingcolor The color of loading bar
loop 1 to loop
mp3 The URL of the MP3 file to be played
showinfo 1 to show the INFO button
showstop 1 to show the STOP button
skin The URL of the JPEG file (not progressive) to load
slidercolor1 The first color of the bar gradient
slidercolor2 The second color of the bar gradient
sliderovercolor Hover color of the bar
textcolor The text color
volume The initial volume, between 0 and 200.



Playing files from a file gallery.


If you upload an mp3 file to a file gallery you can play it using this player only if the files are not stored in the database. Check Admin>File Galleries to see where your podcast? gallery files are going.
The name of the file in question is always randomized by tiki to some long string of letters and digits
e.g. 997ef6a0e7297964ef3827c9a5e9cfea.mp3

Right click and copy the location shown in file galleries to use this in the wiki plugin.


Depending on your configuration, it may not be possible to use files from the file gallery simply by using
{MEDIAPLAYER(mp3="tiki-download_file.php?fileId=389")/}


An example for a successful use of the maxi Mediaplayer in a blog post looks like this (only caveat is to have access rights for the relevant user group by setting tiki_p_download_files to yes - sometimes, a restart of the browser seems to be necessary to make those rights work...)
{MEDIAPLAYER(mp3="http://your.uri.here.com/tiki-download_file.php?fileId=1&showstop=1&showinfo=1&showvolume=1", style="maxi")/}

Todo: embed the flash to have a better browser comaptibility


Contributors to this page: lindon1664 points  , luci1341 points  , tobi_h108 points  , mlpvolt1660 points  and sylvie2934 points  .
Page last modified on Tuesday 09 March, 2010 03:06:55 UTC by lindon1664 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC