Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: add files to winamp playlist - PHP or Javascript

0 views
Skip to first unread message

Thomas 'PointedEars' Lahn

unread,
Sep 30, 2009, 6:22:36 AM9/30/09
to
JSz wrote:
> For example I have a database with short vidoes recorded by video camera and
> mp3 with interviews recorded by dictaphone. Moreover paths to files are
> stored in this database.
>
> I would like to have possiblity to add the mp3 or m2ts files into the winamp
> playlist. I wouldn`t like to clear the existing playlist, and I would like
> to add this file as a last one.
>
> I add that I would like to create such page on xampp server (PHP language /
> Javascript). I don`t know if there is need to create it on PHP language.

It is not so much a matter of the programming language but about where the
application is going to run. If you have a (MySQL?) database and XAMPP
("Cross-platform Apache, MySQL, PHP, and Perl"), you would probably want to
do this server-side, and the programming languages that can be used
server-side in your example obviously include PHP and Perl (and not
"Javascript").

However, adding entries to the playlist of a specific multimedia application
is tricky to say the least. I do not think the whole process can be
programmed (CMIIW). But you can write a server-side script that generates a
.m3u or .pls resource and serves it declared with the appropriate MIME media
type that the browser/OS has linked with Winamp. (In Windows, you might
need to change the Open command for those files so that Winamp's current
playlist is appended to instead of replaced).

Then again, judging from your question (and that you are asking here, and
not in comp.infosystems.www.authoring.misc, where such general questions Web
development question belong) this might as well be way over your head for
the time being.

<http://jibbering.com/faq/#posting>


X-Post & F'up2 ciwam

PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300...@news.demon.co.uk> (2004)

0 new messages