TextpatternMania

Plugin: jnm_audio

Description:

<txp:jnm_audio /> inserts an mp3 audio player (flash) in your pages and articles.

The flash player was created by Martin Laine.

Examples:

<txp:jnm_audio url="http://..."/>

Installation:

  1. Download the flash player: audio-player.zip
  2. Create a folder called plugins inside your blog directory and uncompress the contents of audio-player.zip in it.
  3. Download the plugin (jnm_audio_0_3.txt) and install it in textpattern.

Options:

  • fileid = id of the uploaded textpattern file (using txp file tab) to be used as the track for this player
  • filename = name of the uploaded textpattern file (using txp file tab) to be used as the track for this player
  • audio = name of the file to be used as the the track for this player. Textpattern will look for this file inside a folder called “audio” in your blog directory (you need to use ftp or other method to upload the file)
  • url = url of an mp3 file to be used as the track for this player.

You must only specify one source for the track (use only one of the previous attributes).

If you specify ‘.’ as the value for any of the previous attributes, the tag will parse his body to obtain the actual value.

Example:

<txp:jnm_audio url="."><txp:custom_field name="custom1" /></txp:jnm_audio>

(will use the text in ‘custom1’ as the url for this player)

  • loop = set to ‘yes’ to loop the track indefinitely
  • autostart = set to ‘yes’ to start to play the track automatically
  • bgcolor = Background color
  • textcolor = Text color
  • leftbgcolor = Left background color
  • lefticoncolor = Left icon color
  • rightbgcolor = Right background color
  • rightbghovercolor = Right background hover color
  • righticoncolor = Right icon color
  • righticonhovercolor = Right icon hover color
  • slidercolor = Progress slider color
  • trackcolor = Progress track color
  • loadercolor = Loader bar color
  • bordercolor = Border color

Version 0.3

History:

0.3

  • Eliminated some warnings in debug mode.
  • The plugin now generates valid xhtml code.

0.2

  • Added “special” value ‘.’ (evaluate body)

0.1

  • Initial release

INFO:

Comentarios
1 Jorge
5 mayo 2006, 11:14

Ahora mismo no le encuentro aplicación práctica en mis webs, pero me muero de ganas de poder usarlo ¡cómo mola!

Gracias Juanjo.


2 Hector
5 mayo 2006, 13:52

Lo probaré seguro, Juanjo. Me interesa mucho toda esta evolución hacia lo multimedia en los blogs. Y este puede ser un plugin muy interesante por su integración con TXP, de esos que abren nuevos caminos. Bravo Juanjo!


3 Fran García
18 mayo 2006, 15:55

Yo ya le he encontrado una utilidad colocando un resumen de la final de de la Champions. Sólo un problema, se acelera la velocidad de reproducción del audio. La verdad es que queda bastante cómico, pero no es lo mejor. En mi web puedes comprobar lo que te comento: http://frangarcia.f2o.org en la entrada de !!!!Campeones!!!


4 Fran García
18 mayo 2006, 18:56

Olvida lo del fallo. El problema era que el mp3 tenía un bitrate de 40. Lo he cambiado a 128 y funciona correctamente. Incluso me lee los tags del mp3. !!!Un gran plugin!!!


5 Manu
19 mayo 2006, 11:41

Great plugin, but you need to do some work, to make it xhtml-valid.

Each “leftbrace br rightbrace” should be turned into “leftbrace br space slash rightbrace”. The same for every ending param-tag.

I modified it myself, but would be cool if the original version has these thing too.

Another thing which I modified is the plugin-dir. One should be able to specify it by attribute.

Nice weekend, cheers!


6 Manu
19 mayo 2006, 11:51

Another thing, sorry to mention it in another comment.

Is there a way to get the rss/atom-feed working with this plugin. At the moment the feed just ignores the audio-file. Would be great, if there would be a link to the mp3 or simple a message that this article includes audio-data.

Any idea how to achieve this?


7 nardo
23 julio 2006, 05:24

thanks for bringing this over to txp!


8 Finkregh
19 febrero 2007, 03:25

Hi,
is it possible to pass oter customfields on to the flashplayer?

field1=/path/to/x.mp3
field2=leftbgcolorhex
to something like that? |leftbgcolor=0x

Thx, Finkregh


9 Finkregh
19 febrero 2007, 03:38

notextile..

< txp:jnm_audio url=”.” leftbgcolor=“0x< txp:custom_field name=“Image-Color”/>”>< txp:custom_field name=“mp3-Url.extern.fileID” />< /txp:jnm_audio> < /txp:if_custom_field>

fixed


10 Juanjo Navarro
19 febrero 2007, 13:14

Finkregh, answered here


11 Michael
2 marzo 2007, 05:04

thx for the Player.
100% Perfect :)

Greet Mikel


12 Steve Firth
26 marzo 2007, 21:02

Great plugin, was just what I was after and so easy to use.

Using it on my personal site … and my work one soon as I find an excuse to.


13 Daniel Rodriguez
4 abril 2007, 01:02

Hey! Thank you very much for this plugin! The flash file is very nice, too and I will use it on this site: http://edgarcoral.ec


Nombre
email El email no se mostrará en la página.
http://
Mensaje
  Ayuda