RE: Re: Web interface prototype

"Moser, Robert L. II" <[email protected]> Wed, 19 Feb 2003 17:24:14 -0600
Newsgroups gmane.music.equipment.slimp3.dev
Message-ID <8F76CAB2F77CE542B4B6CCEDD9B03CCB01B2D525@vhapalexce.v21.med.va.gov>
You could actually do it using an [EVAL]
It would go something like this:
[EVAL]
my $client = SliMP3::Clients::getClient($hashref->{'player'};
my $song = SliMP3::Playlist::song($client);
$hashref->{'bitrate'} = SliMP3::Info::info($song,'BITRATE');
$hashref->{'year'} = SliMP3::Info::info($song,'YEAR');
1;
[/EVAL]

Then use {bitrate} and {year} where desired.  Note that [EVAL] is always
first, no matter where it is in the template.

On the other hand, I agree that there will need to be some backend changes.
Probably all info for the current song should be available for status.html.

Robert

> -----Original Message-----
> From: kevindf <[email protected]> [mailto:[email protected]]
> Sent: Wednesday, February 19, 2003 1:44 PM
> To: [email protected]
> Subject: [slimp3-dev] Re: Web interface prototype
> 
> 
> I was hunting around in that area, but the best I can figure is that 
> the bitrate is only available to songinfo.html, and browseid3.html.  
> I tried to reference songinfo.html from status.html, but I can't see 
> where status.html would provide the url parameter needed to call 
> songinfo, nor how to get bitrate as a return value. :)
> 
> as dean pointed out, sounds like the back-end is going to need 
> expansion.  If done right, it should really let the customisations 
> run wild :)
> 
> -kevin
> 
> --- In [email protected], Jonathan Greene <atmasphere@a...> 
> wrote:
> > I don't know exactly how to do it, but I know that slimp3 can 
> already 
> > read that info.  While browsing your collection in web mode, you 
> can 
> > click a track title and see that you can read the bitrate, year and 
> > time as well
> > 
> > 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~-->
> Get 128 Bit SSL Encryption!
> http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/rIp0lB/TM
> --------------------------------------------------------------
> -------~->
> 
> To unsubscribe from this group, send an email to:
> [email protected]
> 
>  
> 
> Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/