deaddred Posted January 31, 2016 Share Posted January 31, 2016 A few years back I had Jay create a script for Steamcast to show stream stats on your site. You can get it here https://www.radiotoolbox.com/steamcast/steamcaststream.phps The instructions are in the script but I'll post a quick set up bellow. you need to put the steamcaststream.php on your server and then in another php file add this.. admin name is the name of the admin user for Steamcast and admin_password is the password. auto.mp3 is the mount name. It'll be what ever you name it. You can see the script running here in my site http://www.futureassassin.com require_once('steamcaststream.php'); $steamcast = new SteamcastStream('http://yourserver_ip:8000/auto.mp3', 'admin_name', 'admin_password'); if ($steamcast->retrieve_stats() && $steamcast->has_streams()) { $data = $steamcast->stream_info(); if ($data != NULL) { echo 'Wow, '.$data['name'].' has some shtuff in it! Currently there are '.$data['nodes'].' listeners! They are currently hearing '.$data['meta_song'].''; while (list($key, $val) = each($data['played'])) { echo ' at '.date('r', $val['entry_time']).' we played '.$val['song_title']; } while (list($key, $val) = each($data['peers'])) { echo ' '.$val['ip'].' connected at '.date('r', $val['pconnect_time']).' with '.$val['user_agent']; } } else { echo 'No Mount by this name!'; } } else { echo "This failed :("; } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now