La version de ce "post" en français, ainsi que le "pack fr" qui l'acconpagne, se trouvent ici:
http://www.rejetto.com/forum/index.php?topic=7317.0Small contribution of Summer by Mars and myself. Preamble:
And if we put a small
mp3 jukebox, and a
video player on the Webpages of our favorite
HTTP File Server (
recent beta version 2.3).
All playlists are semi-dynamic.
The flash players used are:
JW FLV Media Player 4.5 for video files (
FLV,
MP4, and some
h264 format).
This player also accepts audio formats that we will not use here.
http://www.longtailvideo.com/players/jw-flv-player/Flash XSPF Jukebox for sound files (
MP3):
http://blog.lacymorrow.com/projects/xspf-jukebox/I enclose to the end of this post, a package containing these 2 players, ready to be installed
but it may be useful to consult these sites to load other skins, plugins, or know the variables
used for other settings.
The peculiarity of these readers is to accept the playlist format
XSPF (
XML), which we will be very useful here.
This is a free format, so it's even better!
http://xspf.org/------------------------------------------------------------------------------------
Playlists Generator sources:
http://emff.sourceforge.net/playlistgenerator/------------------------------------------------------------------------------------
Now, enter the heart of the matter :
To install the multimedia package:
1) - Unpack the file
multimediaeng.zip in the folder of
hfs.exeYou end up with a folder named "
multimediaeng" containing
6 folders and
2 files:
enteteplayer.xmlhfs.eventsYou move these two files so they can be found in the
root folder of
hfs.exe2)In
HFS, you right-click on the
root of VFS (home):
-
Add folder from disk > add the
multimediaeng folder
You apply, and validate.
3)- You
right-click on
multimediaeng folder
properties... >
Flags > Check on
Hide and on
Don't LogAllow access to users of your choice
You apply, and validate.
4)You
right-click on the
root of VFS (home):
properties... >
File masks > in the
Files filter field, you add:
;playlist*.*Default values displays a line like this:
\index.htm*;default.htm*;playlist*.*You apply, and validate.
5)Menu >
Other Options >
MIME TypesYou add a
new row where you write as
File Mask:
*xspf and as
MIME Description:
application/xspf+xmlYou apply, and validate.
6)You load a
template content in this folder:
multimediaeng\6 templates-3 anglais-3 français_generator_inclus(The templates names ending with
eng, are ... in English language)
You save your options and your *.VFS in a file.
Additional skins are available ... see the sites mentioned above------------------------------------------------------------------------------------
Using playlists for Users:
I have
forbidden the players access to
anonymous users.
So, log on a user account, try to upload some files
*.mp3 or
*.FLV or
*.mp4 in a folder that has permissions
Access,
Upload,
Delete.
You can of course create other folders if you want to make a playlist by album per eg.
Use the icons at the top page, for listening and viewing.
About thumbnails:
- Convention for the
images names in a folder where you place
sound files:
One thumbnail per folder / album, named:
folder.jpg(folder.jpg is a real name, do not give the name of your folder for the thumbnail file)
- Convention for the
images names in a folder where you place
vidéo files:
Several thumbnails are allowed per folder, named:
the_name_of_your_video_file.jpg ------------------------------------------------------------------------------------
Using two (2) Overall playlists:You can use two overall playlists (audio and video), playable in a separate window or a tab in your browser.
In a folder where you have created a playlist (preferably long
), you copy the following files which you'll find:
playlistaudio.xml
playlistaudio.xspfand/or
playlistvideo.xml
playlistvideo.xspfThese files must be copied in:
folder_of_hfs.exe\multimediaeng\playlistes\ (
in the folder where is hfs.exe, remember )
You can also enable your users to update both of your playlists (audio and video).
Simply create 2 folders allowed to all users (of your choice), named for example:
audio_playlist_overall_update
video_playlist_overall_updateYou will be filing the same files you have stored in the folder:
multimediaeng\playlistes\:playlistaudio.xml and
playlistaudio.xspf in the folder
audio_playlist_overall_updateplaylistvideo.xml and
playlistvideo.xspf in the folder
video_playlist_overall_updateIt is important to tell your users that the files must be
"uploaded" into "bulk" in these both folders.
Only the files of these folders, will update overall playlists.
Only users folders allow playlists multiple in separates folders.Required: Then you add at
hfs.events, at the end of the section
[+upload completed](with the drive letters and paths that correspond to your setting, of course):
{.time|2|{.copy|E:\audio_playlist_overall_update\playlistaudio.xml|C:\HFS\multimediaeng\playlistes\.}
{.copy|E:\audio_playlist_overall_update\playlistaudio.xspf|C:\HFS\multimediaeng\playlistes\.}
{.copy|E:\video_playlist_overall_update\playlistvideo.xml|C:\HFS\multimediaeng\playlistes\.}
{.copy|E:\video_playlist_overall_update\playlistvideo.xspf|C:\HFS\multimediaeng\playlistes\.}.}Optional: You can hide the files contained in these folders, the folders contents will be invisible, even after an upload by an user.
Only "jukeboxes" will be availables to users and updated by their uploads!
To use this option, please
right-click on each of these two folders:
Properties ... >
File masks > and add in the
Files filter field:
\*.mp3;*.aac;*flv;*mp4;*.jpg;*.h264------------------------------------------------------------------------------------
INFO:
VLC can also generate playlists to
XSPF format, but you will need corrected some details in paths with
Notepad++ per example.
Update January 13, 2010 ( -> new
JW FLV Media Player v5.0.753 included)
http://hfsupgradefrench.webhop.org/xspf/multimediaeng.zip