PDA

View Full Version : WmaStream plugin



Meshoulam, Arnon
2004-08-07, 14:08
Yup,

The reason is that $line is waiting for input from the stdout of the
command and wmatool is ouputing it to stderr.
But for a hack it works.
Now, wouldn't it be interesting to integrate it better, like shotcast
for example.
And why couldn't BBCAlien use it as well.

Arnon

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Peter
Sent: Saturday, August 07, 2004 9:47 PM
To: Slim Devices Discussion
Subject: [slim] WmaStream plugin

Sounds good Arnon,

I found that something was wrong in the plugin, and I got it to work by
removing this loop from startwmatool sub and returning 1 always:

$d_wmastream && msg("Reading from filehandle\n");
#REMOVED while ($line = <$wmatool_filehandle>) {
#REMOVED $d_wmastream && msg("$line");
#REMOVED return 1 if ($line =~ m/Ready/); # Playing
#REMOVED last if ($line =~ m/Error/); # Error
sleep(1);
#REMOVED }
$wmatool_pid = undef;
$wmatool_filehandle = undef;
return 1; # ALWAYS 1

I can see that it's supposed to return if it reads "Ready" from the
pipe,
but it just hangs here forever while ssqueezebox says Connecting...
I know removing it isen't the right solution, but it works :-)

Peter
----- Original Message -----
From: "Meshoulam, Arnon" <arnon.meshoulam (AT) intel (DOT) com>
To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
Sent: Saturday, August 07, 2004 10:04 PM
Subject: [slim] WmaStream plugin


> Peter,
>
> I did some digging into this. Seems like it is a small error in the pm
> file.
> Wmatool outputs information into std error:
> Connecting
> Broadcasting...
> Reading
>
> While the Wmatool.pm is waiting on stdin. Trying to see if I can make
a
> minimal change and open a pipe to stderr as well.
>
> Arnon
>
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Peter
> Sent: Friday, August 06, 2004 3:04 PM
> To: Slim Devices Discussion
> Subject: [slim] WmaStream plugin
>
> Hi Arnon,
>
> Thanks for your help.
>
> I did manage to get it to work (or at least almost):
>
> After copying wmatool.exe and lame.exe to windows-dir as well I can
> start
> the streaming to port 5123, but then slim.exe hangs.
>
> A manual setup where I use a cmd-file to run wmatool streaming to a
> port,
> and then choosing the corresponding playlist in Squeezebox works
> perfectly,
> so perhaps it's a problem with Slimserver 5.3 / WmaStream plugin ?
>
> Any ideas ?
>
> Peter
> ----- Original Message -----
> From: "Meshoulam, Arnon" <arnon.meshoulam (AT) intel (DOT) com>
> To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
> Sent: Friday, August 06, 2004 3:48 PM
> Subject: [slim] WmaStream plugin
>
>
> > Peter,
> >
> > I have been using it.
> > You should be able to run wmatool http:// or mms:// and hear the
> audio.
> > I have found two reasons for it not working:
> >
> > "Encrypted" wma mmst:
> > Or accessing the wrong file. If you are accessing an asx or asm
file,
> > you might have to open them up (they are html files) and get the
real
> > stream name
> >
> > Arnon
> >
> > -----Original Message-----
> > From: discuss-bounces (AT) lists (DOT) slimdevices.com
> > [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Peter
> > Sent: Friday, August 06, 2004 11:04 AM
> > To: Slim Devices Discussion
> > Subject: [slim] WmaStream plugin
> >
> > Hi,
> >
> > Does anyone use this plugin
> > (http://www.kolumbus.fi/jewel.tapsta/WmaStream/WmaStream.html) with
> > Squeezebox / Slimserver 5.2 ? (or is there another way to listen to
> wma
> > netradio on Slim / XP)
> >
> > I can't get it to work. Plugin runs ok but when i try some of the
> > stations I
> > get "Can't connect"
> >
> > I placed the bas-files in windows dir and pls files in the playlist
> dir.
> >
> > And what about the url, does it have to be a mms:// or can it be
> > something
> > else ?
> >
> > Any help is welcome.
> >
> > Thanks,
> > Peter
> >
> >