Shoutcast plugin John Mann; version: 1.04

Creating and modifying plugins.
Post Reply
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Shoutcast plugin John Mann; version: 1.04

Post by hgoor »

Hi,

I was just thinking: I have the shoutcast plugin and it points to my own radio station and it shows stats and all, but there is 1 very important thing missing:

The plugin should also have a link to the stream! Why not have that option?

I suggest that you can click on the name of the station (title)?

Also: why can I have only 1 of this plugin's installed? Why not multiple stations?

Could that be fixed too? Maybe multiple stations within 1 plugin?

Anyone?
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Shoutcast plugin John Mann; version: 1.04

Post by garvinhicking »

Hi!

That's a good suggestion, I just committed the adding of a link (to the name of the current song) as well as to allow the plugin to be installed multiple times.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Shoutcast plugin John Mann; version: 1.04

Post by hgoor »

garvinhicking wrote:Hi!

That's a good suggestion, I just committed the adding of a link (to the name of the current song) as well as to allow the plugin to be installed multiple times.

Best regards,
Garvin
Sounds good! Does that mean that when I check SPARTACUS there is going to be a new version of the plugin?
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Post by hgoor »

Oh, this is something I have been wanting to ask a long time as well...

A lot of plugins (this one also) show information in a rather "static" way. What I mean with that is that, unless you reload a page, the information is not refreshed.

In this day and age however, we have something wonderfull called "AJAX" and it is possible to have information 'refreshed' without reloading the whole page.

It seems to me that a lot of plugins could be a lot more interesting if they are not so "static".

The shoucast plugin seems like one of those as well.

Also, and now I might be taking a bit to far, but why not have this plugin have the option to actually use an embedded player (media player?) and actually stream the audio?

That way people get music on my page ;-)
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, the new plugin version should appear today on spartacus somewhen.
In this day and age however, we have something wonderfull called "AJAX" and it is possible to have information 'refreshed' without reloading the whole page.
Serendipity tries to work everywhere without AJAX overload, because we still think that having a system which works without javascript is something great.

When a new developer wants to add AJAX functionality to some areas, I wouldn't mind. I myself instead focus on adding real functionality and bugs. I will work on AJAX etc. once I feel there's no more new features to add to Serendipity, but until that this task is a bit cumbersome and unrewarding. :)
Also, and now I might be taking a bit to far, but why not have this plugin have the option to actually use an embedded player (media player?) and actually stream the audio?
I wouldn't know of a streaming flash player that would work across operating systems in browsers and plays Shoutcast-Playlists?!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

After thinking about this a bit more, I feel that my initial posting might not properly deliver what I was trying to say. So I'd like to rephrase it:

I embrace the addition of AJAX for enhanced usability and functionality. As long as it also works without JavaScript enabled.

I personally simply don't enjoy AJAX coding (too many browser workarounds necessary or too much overhead caused by repetitive polling of a URL),and thus I personally don't develop much with it and enjoy doing other things instead.

So if anyone feels that AJAX would be nice and he has development skills, I'd happily have that person onboard joining the s9y (plugin) development. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Post by hgoor »

Oh, I agree; AJAX can be a pain in the neck; at my work we have deloped a complete CMS in AJAX and browser compatibility is a pain in the neck...

Let me also refrase my initial AJAX remark: the use of an iframe can sometimes achieve the same effect...

What I meant was: if you look at some plugins, information is only refreshed when you reload a page and for real-time info (i.e. what song is playing in a stream) I think it would be nice if things refresh without reloading a whole page...

Having said that: I just coined it as an idea and I don't expect that every (far fetched) idea I just come up with to be realized ;-)
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
KamiKaxxe
Posts: 4
Joined: Tue Sep 25, 2007 5:11 pm

Post by KamiKaxxe »

I tried to use the pluggin

Install recently the cms and the pluggin

if you go to the page of the blog

http://www.tokuriders.com/serendipity

it appear at the botton


Radio TokuRiders
Unable to connect to server.
(Error #110: Connection timed out while making connection to 74.222.2.168:8870)


if you go to the SHOUTcast D.N.A.S. Status

Is running fine.

http://74.222.2.168:8870/

The shoutcast server is in another server different from the blog.
i check in the blog server is php.ini allow url open and is available.

what more?
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Post by hgoor »

KamiKaxxe wrote:I tried to use the pluggin

Install recently the cms and the pluggin

if you go to the page of the blog

http://www.tokuriders.com/serendipity

it appear at the botton


Radio TokuRiders
Unable to connect to server.
(Error #110: Connection timed out while making connection to 74.222.2.168:8870)


if you go to the SHOUTcast D.N.A.S. Status

Is running fine.

http://74.222.2.168:8870/

The shoutcast server is in another server different from the blog.
i check in the blog server is php.ini allow url open and is available.

what more?
Ok, there are two items you need to fill out in the plugin settings:

1) server name or IP (if you use servername do NOT include http://)
2) Server port

Here is the thing; you can check if it works with another server! If you still get that error than something else is going wrong..

Try this info and see what you get as a response:

Server: www.hostingperfect.net
Port: 8004

It should give you the info for my radio station!

If not there must be another problem....
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
KamiKaxxe
Posts: 4
Joined: Tue Sep 25, 2007 5:11 pm

Post by KamiKaxxe »

hgoor wrote:
KamiKaxxe wrote:I tried to use the pluggin

Install recently the cms and the pluggin

if you go to the page of the blog

http://www.tokuriders.com/serendipity

it appear at the botton


Radio TokuRiders
Unable to connect to server.
(Error #110: Connection timed out while making connection to 74.222.2.168:8870)


if you go to the SHOUTcast D.N.A.S. Status

Is running fine.

http://74.222.2.168:8870/

The shoutcast server is in another server different from the blog.
i check in the blog server is php.ini allow url open and is available.

what more?
Ok, there are two items you need to fill out in the plugin settings:

1) server name or IP (if you use servername do NOT include http://)
2) Server port

Here is the thing; you can check if it works with another server! If you still get that error than something else is going wrong..

Try this info and see what you get as a response:

Server: www.hostingperfect.net
Port: 8004

It should give you the info for my radio station!

If not there must be another problem....
Unable to connect to server.
(Error #110: Connection timed out while making connection to www.hostingperfect.net:8004)

what other thing could check?
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Post by hgoor »

KamiKaxxe wrote:
hgoor wrote:
KamiKaxxe wrote:Unable to connect to server.
(Error #110: Connection timed out while making connection to www.hostingperfect.net:8004)

what other thing could check?
Ok, I think the plugin requires your webserver to connect to the Shoutcast server so it seams that the plugin handles this SERVERSIDE..

This might be a firewall preventing the server to connect to unknown ports (known ports are: 21 FTP, 22 SSH, 3306 MySQL, 80 HTTP etc. etc.)..

I think you need to contact your hosting provider ro find out if this is right and if so if they can open up port 8870...

On a note for any S9y admins reading this post: am I correct and does the plugin handle the request serverside? If so why?Can't this be handled clientside?
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
Post Reply