Streamerp2p Forum

Streamer P2P Radio Support ForumStreamer Mainpage www.streamerp2p.com
It is currently Mon May 20, 2013 2:59 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: New OnAir / OffAir indicator for your website.
PostPosted: Thu May 06, 2004 8:25 pm 
Offline
Site Admin
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 572
Location: Panama
You can now put an on air / off air graphic on your web pages, to indicate the status of your stream.
To use it, put this on your web page:

<img src="http://www.streamerp2p.com/plates.php?id=875a0cfe">

Replace the numerical ID with your own stream ID


Top
 Profile  
 
 Post subject: Onair
PostPosted: Sat May 08, 2004 9:37 am 
Offline
Streamer Fan
Streamer Fan
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 41
Location: Central New York
Thanx Iain. That is awesome...works flawlessly.

_________________
...let the music do the talkin'


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 26, 2004 2:19 pm 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 164
Location: Germany - Hessen
is there a problem with the pics? They do not load since yesterday.

greetz
Tiki

_________________
Aloha!
Tiki
Tikiradio is Image


Top
 Profile  
 
 Post subject: pic's
PostPosted: Wed May 26, 2004 5:59 pm 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 652
Location: USA
looks like the server is having problems :(

_________________
Life is random, you're music should be too.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 29, 2004 10:55 pm 
Offline
Streamer Fan
Streamer Fan
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 26
Cheers Iain, that's such a handy feature.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 4:44 pm 
Offline
Site Admin
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 542
Location: Missouri, USA
It should be noted that the instructions above is NOT for placing a graphic on the web pages display inside of Streamer when someone tunes to your stream OR for the Streamerp2p website.

If you want a graphic in your internal view display, then you can put it in the Station Info section of the BCast config page as follows:

<img src=http://yourwebsite.com/graphic.gif>

If you want to display a 150x75 25k byte max image on the main Streamerp2p.com website with your station listing, place your graphic on a website somewhere and then put the URL to that graphic minus the http:// into the YP Info/Image URL field on the BCast config screen. :)

_________________
Streamerp2p Operations
http://www.streamerp2p.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 3:28 am 
Offline
Forum Newbie
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 9
Nice feature, but is there a way that i can check the online/offline status of my streamerp2p with my own script? Because i want to take my own "Online/Offline" picture for my website.

Greetz

Evil.2000

_________________
[URL=http://www.project-fx.de]Image
Project-FX ~ Nonstop PowerRock[/URL]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 5:43 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 740
Location: Germany
Hi,

Evil.2000 wrote:
Nice feature, but is there a way that i can check the online/offline status of my streamerp2p with my own script? Because i want to take my own "Online/Offline" picture for my website.


Kmeat have to add a additional script with a text output.

At the moment you can only check the size of the resulting image.

Online Picture file size is 161 bytes
Offline Picture file size is 150 bytes

You can use this info in your own script 8)
But i think kmeat can place a extra script with text output or modify the current one like:

http://www.streamerp2p.com/plates.php?id=46951b62&text

&text will result a text output "online" "offline" only. Just a idea but that seems to be the easiest way and it's done by one script only

bye

_________________
Streamer P2P Radio Germany http://streamerp2p.de
IRC: #streamerp2p - irc.freenode.net


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 11:10 am 
Offline
Forum Newbie
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 9
Thats a solution.

I've done it otherways.

Here is the picture-script:
It takes the picture from http://www.streamerp2p.com/plates.php?id=46951b62, sets the black background to transparent color and places it into my own picture.
It's nice ;)

Here is the PHP-Code snippet:

<? $str_id = "46951b62"; // Streamer Station ID
$fd = @fopen("http://www.streamerp2p.com/plates.php?id=".$str_id,"r"); // Open data connection
$image_string = fread($fd,4096); // Read the image
fclose($fd); // Close data connection
$im = ImageCreateFromString($image_string); // Create the image
$black = ImageColorAt($im, 1, 1); // Get the color at pixel x1 y1
ImageColorTransparent($im,$black); // Set the tansparent color
ImageCopy($im_org,$im,120,15,0,0,60,20); // Place the picture in the destination image at pixel x120 y15 ?>


Happy programming ;)

Greetz

Evil.2000

_________________
[URL=http://www.project-fx.de]Image
Project-FX ~ Nonstop PowerRock[/URL]


Last edited by Evil.2000 on Tue Oct 19, 2004 1:14 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 23, 2004 2:02 pm 
Offline
Site Admin
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 542
Location: Missouri, USA
Quote:
Kmeat have to add a additional script with a text output.


Done... but different script. status.php and it takes one parameter 'id' just like plates.php does.

Output is simply a 0 or a 1. I don't think I have to explain anything else on that one :D

_________________
Streamerp2p Operations
http://www.streamerp2p.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 11:07 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 740
Location: Germany
Hi,
ok thanks :D
i hope it wasn't a hard job for you :wink:

bye

_________________
Streamer P2P Radio Germany http://streamerp2p.de
IRC: #streamerp2p - irc.freenode.net


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 1:25 pm 
Offline
Site Admin
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 542
Location: Missouri, USA
Not at all. Actually I just made a copy of plates.php, changed the header line, and added two echo statements... then ripped out about 20 other lines pertaining to graphics manipulation... POST :)

Piece of cake. 5 minutes tops.

_________________
Streamerp2p Operations
http://www.streamerp2p.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 10:03 am 
Offline
Forum Newbie
User avatar

Joined: Sat Dec 25, 2004 6:00 pm
Posts: 7
great feature guys...exactly what i`ll need in the near future!!
thx for keeping up the good work, wish i could code as easy!
best wishes from flowsdorf
Dick


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 2:08 am 
Offline
Streamer Dude
Streamer Dude
User avatar

Joined: Thu Aug 04, 2005 7:27 pm
Posts: 19
Location: New Jersey
You can now put an on air / off air graphic on your web pages, to indicate the status of your stream.
To use it, put this on your web page:

<img src="http://www.streamerp2p.com/plates.php?id=875a0cfe">

Replace the numerical ID with your own stream ID

Is this supposed to change when your on/off air ?? because if so, mine don't change ...lol


Top
 Profile  
 
 Post subject: Station ID
PostPosted: Wed Aug 10, 2005 6:00 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 652
Location: USA
the on air indicator does work, just be sure to use your station ID in the IMG SRC snipit.


<img src="http://www.streamerp2p.com/plates.php?id=1aa768a2">


Hmm... Maybe it doesn't work :oops:

_________________
Life is random, you're music should be too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group