Doc Fr /
Cookbook Example 1
Éditer page | Attach | Comments: Hide Show | Print

Français

English

Demos

PmWiki

(edit)

Example 1

Including the player

The simplest way to include Framaplayer is to use the (:framaplayer:) directive

(:framaplayer:)


Using links

basic example

The simplest way is to use the playwiki directive, giving at least for params :

  • an url of an mp3 (or a xml playlist) file to play
  • the text content of a link
(:playwiki
url="http://gosset.free.fr/meupeutrois/John_Vanderslice-Me_And_My_424.mp3"
link="external soundfile":)

external soundfile

play a local uploaded file

  • First : attach a soundfile Attach:file1.mp3 : Attach:file1.mp3 Δ
  • Now, you can use the playwiki directive
(:playwiki url="/uploads/FramaPlayer/file1.mp3" link="local site soundfile"
:)

local site soundfile

Oh, did you notice that the player play this with strange behavior (the time and timeline are false). This is because framaplayer need to know the bitrate of the mp3 file (128Kbps by default).

using bitrates

Now try with

(:playwiki url="/uploads/FramaPlayer/file1.mp3" link="local site soundfile"
my_bitrate="32" :)

local site soundfile

Look better !

Another example with another bitrate.

(:playwiki url="http://www.keonox.com/commun/onfray/aka_64kbps.mp3"
link="local domain soundfile" my_bitrate="64":)

local domain soundfile

Playlist

Playing a playlist is very easy, just indicate the playlist location, as if it was an mp3 file.

(:playwiki url="http://py.keonox.com/test3.xml" link="my playlist" :)

my playlist

(if you want to see how the playlist is constructed, click http://py.keonox.com/test3.xml


<< CookBook PmWiki | HomePage | HotPotatoes >>

Page mise à jour le 18 avril 2005 à 17h32 par pyg
Éditer page | Changements récents (All) | Attach | Historique | Wiki Help | Print