Prev Previous Post   Next Post Next
Old 21st January 2015, 10:08   #7
Ri'ins
Junior Member
 
Join Date: May 2012
Posts: 20
neralex, i got it. Huge thx. And plz help me in the last question, cant find solution

So this is my config and it works nice
PHP Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="http://test.synthway.com/jquery/jquery.shoutcast.min.js"></script>

<script>
$.SHOUTcast({
   host : '81.176.229.85',
   port : 8000,
   interval : 5000,
   stats : function(){
      $('#songtitle').text(this.get('songtitle'));
   }
}).startStats();
</script>

<script>
$.SHOUTcast({
   host : '81.176.229.85',
   port : 8000,
   playedInterval : 20000,
   played : function(tracks){
      $('ul').html('');
      $.each(tracks,function(k,track){
         $('ul').append('<li>'+track.title+'</li>');
      });
   }
}).startPlayed();
</script> 

and this code is showing history tracks:
PHP Code:
<ul id="played"></ul

But this code doesnt show current track.
PHP Code:
<p data-shoutcast-value="songtitle"></p
What's wrong?


edit: found solution - this is correct code
PHP Code:
<p id="songtitle"></p
mb this post will help some1 else.
Ri'ins is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump