Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

station toggle : listeners adds up!!

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
trogne



Joined: 09 Dec 2012
Posts: 33

PostPosted: Sat Jun 22, 2013 6:03 pm    Post subject: station toggle : listeners adds up!! Reply with quote

Hi,

On my website : http://www.aorbaroquethrash.com/

Everytime I toggle the other station, the number of total current listeners is added by one.

That is, the session of the other stream is not deleted.

When I toggle the other station, that one should have 1 listener, and 0 for the previous station.
And toggling again : 0-1, 1-0, and so forth.

This is what's happening now : 1-0, 1-1, 2-1, 2-2, and so forth.

What can I do to 'kill' the listener of the current station when I toggle a the other station ?


Thanks,

Patrick
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jun 22, 2013 8:58 pm    Post subject: Reply with quote

killing a stream should also flush that sort of thing out but it is not clear what you are doing when you toggle. It sounds like you have an incorrect count bug but I'm unaware of the version you are working with.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
trogne



Joined: 09 Dec 2012
Posts: 33

PostPosted: Sun Jun 23, 2013 3:48 pm    Post subject: Reply with quote

My Icecast version is 2.3.3-kh5

I just realized that even when I toggle the same station, there's also a new listener added!

When I toggle, I do that : onclick="changestream('stationname')"

function changestream(radio) {
$('#player').load('player.php?radio='+radio);
$('#nowplaying').load('nowplaying.php');
}

The nowplaying.php starts with 'require('icecast.php');

icecast.php gets data from the icecast status page, using php curl.


When I refresh the page, listener are not added.
So, I wonder what exactly needs to be refreshed (I don't want to refresh the entire page).
Maybe browser cache related ?


Thanks for help,

Patrick
Back to top
View user's profile Send private message
trogne



Joined: 09 Dec 2012
Posts: 33

PostPosted: Tue Jul 02, 2013 7:51 pm    Post subject: Reply with quote

It was related to jPlayer.
I don't have this problem with a normal flash player (too bad that android devices doesn't support flash).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber