PDA

View Full Version : AlienBBC 0.97 Observations.......(1 possible bug)



Patrick Delamere
2005-04-08, 15:58
Hi,



Just finished installing Slimserver 6.0.1and AlienBBC 0.97 (SuSE Linux 9.2).
Having installed AlienBBC 0.97, some things appear to have stopped
working....



1. Initially, I couldn't get my playlists in my AlienStream folder to
play, as all I was getting was "AlienBBC: Attempt to play non URL:
/var/slimserver/playlists/AlienStream/wdr5-wm32.asx". Playing the supplied
BBC streams was not a problem. To solve this, I changed some code in the
AlienBBC "Plugin.pm" file.



By adding the ! into the "If" statement below, I was able to force AlienBBC
to recognise my playlists in the AlienStream playlist folder as being remote
streams and play them.



After changing the line below, the supplied BBC Streams did stop working, so
it wasn't 100%, but at least my own playlists work now, which is what I
mostly use AlienBBC for anyway. Would be nice to have both working
though... :-)



if
(!Slim::Music::Info::isRemoteURL($stream))

{

$::d_plugins && msg("AlienBBC -
Playing: $name ($stream)\n");


Slim::Control::Command::execute($client, ['playlist', 'play', $stream,
$name]);

}

else

{

$::d_plugins && msg("AlienBBC:
Attempt to play non URL: $stream\n");

}



2. I was no longer able to play my .smil files despite making the above
change. The only way to get these to work was to remove all the content
inside, except the URL itself, and then change the file extension to either
..rm or .ram. See my log output below:



2005-04-08 23:13:42.9688 unk file type for
/var/slimserver/playlists/AlienStream/WDR5.smil (before)

2005-04-08 23:13:42.9297 rtsppl file type for
/var/slimserver/playlists/AlienStream/WDR5.ram (after)



I assume that "unk" stands for unknown file type.



3. AlienBBC is no longer as forgiving as before with my badly formed
ASX files! ;-)

Before AlienBBC 0.97, I just used to put the stream URL into a file and just
call it <radio station>.asx. To get these working, I have had to change my
files to look as follows:



<asx version="3.0">

<title>Cadena Ser</title>

<entry>

<ref
href="mms://a874.l784138873.c7841.e.lm.akamaistream.net/D/874/7841/v0001/ref
lector:38873" />

</entry>

</asx>



Before, all that was in the file was
mms://a874.l784138873.c7841.e.lm.akamaistream.net/D/874/7841/v0001/reflector
:38873.





Clearly I have broken something by making the code change above, but for me,
it pretty much does everything I want it to, so it's no problem for me,
although a proper fix would be nice. :-)



Are the problems described just with my system, or is this a potential bug
in AlienBBC 0.97? If there is a way of getting the above working without my
code change, please let me know!



Thanks,



Patrick

Triode
2005-04-08, 16:08
Patrick,

Alien 0.97 is intendended to make mms / asx streams play as they would for slimserver on windows. [essentially just provides an alternative to wmadec]

It uses the slimserver parser for asx parsing (rather than mplayer). If there are limitations to which playlists you can play please post them and we can see what changes to the slim asx parser are required - this will be generic to windows linux etc....

Given the above - could you try saving your playlist as a normal slim playlist rather than an AlienStream one and play it as if it is a local list.

----- Original Message -----
From: Patrick Delamere
To: 'Slim Devices Discussion'
Sent: Friday, April 08, 2005 11:58 PM
Subject: [slim] AlienBBC 0.97 Observations.......(1 possible bug)


Hi,



Just finished installing Slimserver 6.0.1and AlienBBC 0.97 (SuSE Linux 9.2). Having installed AlienBBC 0.97, some things appear to have stopped working....



1.. Initially, I couldn't get my playlists in my AlienStream folder to play, as all I was getting was "AlienBBC: Attempt to play non URL: /var/slimserver/playlists/AlienStream/wdr5-wm32.asx". Playing the supplied BBC streams was not a problem. To solve this, I changed some code in the AlienBBC "Plugin.pm" file.


By adding the ! into the "If" statement below, I was able to force AlienBBC to recognise my playlists in the AlienStream playlist folder as being remote streams and play them.



After changing the line below, the supplied BBC Streams did stop working, so it wasn't 100%, but at least my own playlists work now, which is what I mostly use AlienBBC for anyway. Would be nice to have both working though... :-)



if (!Slim::Music::Info::isRemoteURL($stream))

{

$::d_plugins && msg("AlienBBC - Playing: $name ($stream)\n");

Slim::Control::Command::execute($client, ['playlist', 'play', $stream, $name]);

}

else

{

$::d_plugins && msg("AlienBBC: Attempt to play non URL: $stream\n");

}



2.. I was no longer able to play my .smil files despite making the above change. The only way to get these to work was to remove all the content inside, except the URL itself, and then change the file extension to either .rm or .ram. See my log output below:


2005-04-08 23:13:42.9688 unk file type for /var/slimserver/playlists/AlienStream/WDR5.smil (before)

2005-04-08 23:13:42.9297 rtsppl file type for /var/slimserver/playlists/AlienStream/WDR5.ram (after)



I assume that "unk" stands for unknown file type.



3.. AlienBBC is no longer as forgiving as before with my badly formed ASX files! ;-)
Before AlienBBC 0.97, I just used to put the stream URL into a file and just call it <radio station>.asx. To get these working, I have had to change my files to look as follows:



<asx version="3.0">

<title>Cadena Ser</title>

<entry>

<ref href="mms://a874.l784138873.c7841.e.lm.akamaistream.net/D/874/7841/v0001/reflector:38873" />

</entry>

</asx>



Before, all that was in the file was mms://a874.l784138873.c7841.e.lm.akamaistream.net/D/874/7841/v0001/reflector:38873.





Clearly I have broken something by making the code change above, but for me, it pretty much does everything I want it to, so it's no problem for me, although a proper fix would be nice. :-)



Are the problems described just with my system, or is this a potential bug in AlienBBC 0.97? If there is a way of getting the above working without my code change, please let me know!



Thanks,



Patrick

Dan Sully
2005-04-08, 16:11
* Triode shaped the electrons to say...

> Alien 0.97 is intendended to make mms / asx streams play as they would for
> slimserver on windows. [essentially just provides an alternative to wmadec]

If this thread could be moved over to the plugins Forum/list.. :)

Thanks.

-D
--
Ya gotta love UNIX, where else do you wonder whether
you can kill a zombie spawned by a daemon's fork?

Patrick Delamere
2005-04-08, 16:21
Great, that's resolved all my issues. I've backed out my change. I didn't
realise that the AlienStream playlists folder was no longer in use.....



Thanks! :-)



Patrick



_____

From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Triode
Sent: 09 April 2005 00:09
To: Slim Devices Discussion
Subject: Re: [slim] AlienBBC 0.97 Observations.......(1 possible bug)



Patrick,



Alien 0.97 is intendended to make mms / asx streams play as they would for
slimserver on windows. [essentially just provides an alternative to wmadec]



It uses the slimserver parser for asx parsing (rather than mplayer). If
there are limitations to which playlists you can play please post them and
we can see what changes to the slim asx parser are required - this will be
generic to windows linux etc....



Given the above - could you try saving your playlist as a normal slim
playlist rather than an AlienStream one and play it as if it is a local
list.



----- Original Message -----

From: Patrick Delamere <mailto:slimdevices (AT) delamerelocal (DOT) homeip.net>

To: 'Slim Devices Discussion' <mailto:discuss (AT) lists (DOT) slimdevices.com>

Sent: Friday, April 08, 2005 11:58 PM

Subject: [slim] AlienBBC 0.97 Observations.......(1 possible bug)



Hi,



Just finished installing Slimserver 6.0.1and AlienBBC 0.97 (SuSE Linux 9.2).
Having installed AlienBBC 0.97, some things appear to have stopped
working....



1. Initially, I couldn't get my playlists in my AlienStream folder to
play, as all I was getting was "AlienBBC: Attempt to play non URL:
/var/slimserver/playlists/AlienStream/wdr5-wm32.asx". Playing the supplied
BBC streams was not a problem. To solve this, I changed some code in the
AlienBBC "Plugin.pm" file.



By adding the ! into the "If" statement below, I was able to force AlienBBC
to recognise my playlists in the AlienStream playlist folder as being remote
streams and play them.



After changing the line below, the supplied BBC Streams did stop working, so
it wasn't 100%, but at least my own playlists work now, which is what I
mostly use AlienBBC for anyway. Would be nice to have both working
though... :-)



if
(!Slim::Music::Info::isRemoteURL($stream))

{

$::d_plugins && msg("AlienBBC -
Playing: $name ($stream)\n");


Slim::Control::Command::execute($client, ['playlist', 'play', $stream,
$name]);

}

else

{

$::d_plugins && msg("AlienBBC:
Attempt to play non URL: $stream\n");

}



2. I was no longer able to play my .smil files despite making the above
change. The only way to get these to work was to remove all the content
inside, except the URL itself, and then change the file extension to either
..rm or .ram. See my log output below:



2005-04-08 23:13:42.9688 unk file type for
/var/slimserver/playlists/AlienStream/WDR5.smil (before)

2005-04-08 23:13:42.9297 rtsppl file type for
/var/slimserver/playlists/AlienStream/WDR5.ram (after)



I assume that "unk" stands for unknown file type.



3. AlienBBC is no longer as forgiving as before with my badly formed
ASX files! ;-)

Before AlienBBC 0.97, I just used to put the stream URL into a file and just
call it <radio station>.asx. To get these working, I have had to change my
files to look as follows:



<asx version="3.0">

<title>Cadena Ser</title>

<entry>

<ref
href="mms://a874.l784138873.c7841.e.lm.akamaistream.net/D/874/7841/v0001/ref
lector:38873" />

</entry>

</asx>



Before, all that was in the file was
mms://a874.l784138873.c7841.e.lm.akamaistream.net/D/874/7841/v0001/reflector
:38873.





Clearly I have broken something by making the code change above, but for me,
it pretty much does everything I want it to, so it's no problem for me,
although a proper fix would be nice. :-)



Are the problems described just with my system, or is this a potential bug
in AlienBBC 0.97? If there is a way of getting the above working without my
code change, please let me know!



Thanks,



Patrick

Patrick Delamere
2005-04-08, 16:29
Good point! :-)

I didn't realise there were more Slim forums. I just had a quick look on
the Slimdevices website. Sorry!

Patrick

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Dan Sully
Sent: 09 April 2005 00:11
To: Slim Devices Discussion
Subject: [slim] Re: AlienBBC 0.97 Observations.......(1 possible bug)

* Triode shaped the electrons to say...

> Alien 0.97 is intendended to make mms / asx streams play as they would for
> slimserver on windows. [essentially just provides an alternative to
wmadec]

If this thread could be moved over to the plugins Forum/list.. :)

Thanks.

-D
--
Ya gotta love UNIX, where else do you wonder whether
you can kill a zombie spawned by a daemon's fork?

Dan Sully
2005-04-08, 16:29
* Patrick Delamere shaped the electrons to say...

>Good point! :-)
>
>I didn't realise there were more Slim forums. I just had a quick look on
>the Slimdevices website. Sorry!

The additional ones were just launched today.

-D
--
"A good messenger expects to get shot." --Larry Wall