Hi!
Thanks for the help! I followed your advice and used request.create,
request.resolve, request.metadata. But after some time I noticed the
following error message in the log:
2012/02/20 19:42:12 [decoder.mp3:3] File "/store/song.mp3" has an
incompatible number of channels.
2012/02/20 19:42:12 [decoder:3] Unable to decode "/store/song.mp3" as
{audio=2;video=0;midi=0}!
song.mp3 is mono.
How can I solve this issue?
Regards,
Alexander.
On 11.02.2012 00:04, Romain Beauxis wrote:
> 2012/2/7 Alexandru Matei<[email protected]>:
>> Hi!
> Hi!
>
>> I need to get the metadata for the next three tracks. I don't want to
>> use a 3rd party app. I'm sure this can be done with liquidsoap also and
>> that is better not to make system calls which are usually expensive in
>> point of resources involved. Just that I don't know how. I searched the
>> sources for the code for request.metadata but I didn't find it.
>>
>> I plan to get the filename for the next three tracks by executind a
>> server command: my_playlist.next. But I don't know what to do next.
> These can be gathered by using server/telnet commands. For instance,
> for a queue of requests you have a "source_ID.queue" command.
>
> For now, within scripts, you need to use server.execute. Using this
> command, you will received exactly the same output as when running the
> server command manually, line by line. You'll then have to parse that
> data.
>
> This unfortunately the best you can do for now regarding internal
> server commands. We have been dying to generalize that and add support
> for structured internal commands instead of the current server.execute
> but this needs a lot of work, including fundamental changes of the
> languages (which are already ongoing..)
>
> Take care,
> Romain
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users