Streamerp2p Forum

Streamer P2P Radio Support ForumStreamer Mainpage www.streamerp2p.com
It is currently Sun Feb 19, 2017 7:38 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Streamer Stationinfo Flash Widget for your website!
PostPosted: Wed Feb 18, 2009 4:57 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
Hey,
there is a new cool flash widget (default size 200x80 pixel) to display your station statistics on your website. It' easy to embed cause you only need to copy and paste the code to your pagesource and modify one parameter (your Streamer station ID). It auto refresh station info every 3 minutes.

:arrow: Changelog: list of changes
:arrow: Example page: http://www.streamerp2p.com/widget.html
Code:
<!-- Code start, Station KMeat -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="200" height="80" id="streamer_widget" align="middle">
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="movie" value="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890" />
  <param name="menu" value="false" />
  <param name="quality" value="best" />
  <param name="bgcolor" value="#cccccc" />
  <embed src="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890" menu="false" quality="best" bgcolor="#cccccc" width="200" height="80" name="streamer_widget" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- Code end, Station KMeat -->

There are two parameters:
required: ?id=<your_station_id>
replace <your_station_id> with your Streamer station id! You have to edit two lines of the code.
Code:
<param name="movie" value="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890" />
and
Code:
<embed src="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890 ...

optional: &msg=<your_message>
replace <your_message> with your customized message to override the "now playing" info from the yp. You need it for example if your station has no metadata (no now playing info) and you want a nice message instead a empty field. You can dynamicly feed this widget from your playout system as well. Add the $msg= parameter directly after the station id.
Code:
<param name="movie" value="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890&msg=hello this is a test" />
and
Code:
<embed src="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890&msg=hello this is a test ...

Customizing background color of the widget
That's simple. Just replace all bgcolor values in the code example above (#cccccc values) and enter your page background color there. The applet has a transparent background and you can customize it to match your station layout.
Code:
<param name="bgcolor" value="#cccccc" />
and
Code:
<embed src="http://streamerp2p.de/widget/widget2.swf?id=db22d79e379e7890" menu="false" quality="best" bgcolor="#cccccc"

Example Page:
Here you can see some examples. Look at the page source if you want:
http://www.streamerp2p.com/widget.html

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


Top
 Profile  
 
 Post subject: Changelog
PostPosted: Fri Feb 20, 2009 9:10 pm 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
:idea: Maybe you have to clear the browser cache once to see the new widget.

Changelog:
:!: 2009-02-18 Initial release of the flash widget

:!: 2009-02-21 Flash widget updated
Bugfix:
+ can hopefully handle all chars now. Report bugs (best with screenshot of the broken widget)
New Feature:
+ a play button to tune the station (p2p stream)

:!: 2009-02-22 Flash widget updated v1.10
Bugfix:
+ Fixed display bug of language specific chars
Enhancement:
+ Display of the version number in the widget (in front of "powered by http://www.streamerp2p.com")

:!: 2009-02-26 Flash widget updated v1.11
Bugfix:
+ Fixed display showing "undefined" if there is no track info. Now it shows "Station name - No track info available"
Enhancement:
+ reduced datasize of update requests

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


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Fri Feb 20, 2009 11:54 pm 
Offline
Streamer Dude
Streamer Dude
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 18
http://www.coloniabrasil.net/playing.php
http://www.coloniabrasil.net/achsbr.htm
Bug:
chars ç ã í ê õ etc.
Freezing ie 7 when refresh at the same time of the song change.


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sat Feb 21, 2009 8:36 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
Hi,
question:
Are the songnames displayed right on http://www.streamerp2p.com? Cause the widget is using the same data. If it's wrong there i can't do anything.
Else i have to embedd the fonts in the flash widget. All spanish, french, swedish etc. chars are not embedded and cause of this it's wrong or missing (maybe). Embedding fonts blows up widget filesize.

Freeze IE7:
Never saw it freezing. If widget requests data at the same time yp songinfo chages the data is incomplete. This normaly doesn't freeze the browser. Widget just displays it wrong. Cause flash is running in a sandbox it can't crash the Browser (or shuldn't).

Thanks for the feedback. Please tell me about issue 1 (chars).

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


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sat Feb 21, 2009 9:22 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
That's what i mean:
Image
Image

The chars are already wrong in the yp data. Not a flash widget fault 8) Seems streamer reports it wrong or yp breaks it. Something we have to check.

From your playlist:
Image

You see it's already wrong before widget get's it. It's a general problem.

[Update]
Yes it's already wrong in streamer. Checked the yp log and yp already get it wrong from the clients.

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


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sat Feb 21, 2009 11:28 am 
Offline
Streamer Dude
Streamer Dude
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 18
Inside of streamer it's ok.
on the streamer yp the extended ascii are shown as square.
And on the Flash widget are not showing and cutting two more chars after.
Sábado à noite --> Sdo oite


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sat Feb 21, 2009 8:33 pm 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
Hi Achs,
finaly i fixed it. All chars should be correct now. Encoding of the yp is wrong. It's all stored in the database but it's not utf-8. I had to embedd charsets in flash also.

:arrow: check you are using the lates widget. Clear browser cache once. New version has the version number v1.10

Latin Extended A + Latin-1 + Basic Latin
Afrikaans, Basque, Breton, Catalan, Croatian, Czech, Danish, Dutch, Esperanto, English, Estonian, Faroese, Finnish, Flemish, French, Frisian, German, Greenlandic, Hungarian, Icelandic, Italian, Latvian, Lithuanian, Maltese, Norwegian, Polish, Portuguese, Provençal, Rhaeto-Romanic, Romanian, Romany, Sami, Slovak, Slovenian, Sorbian, Spanish, Swedish, Turkish, and Welsh.

Blows up flash widget from 22k to 38K. Still not all languages (would be about 270k). Maybe i should make a "asia version" containing asian charsets and a "arabic version" and a "russian version" and so :roll:

The other solution is to use system device fonts and system charset. That means for you it will look ok but for others the flash widget displays "strange" chars like on the yp at the moment. Embedding fonts/charsets means everyone can see the language specific chars.

Now i know why the yp is wrong even if page header says it's utf-8 codepage. Streamer reports data but it has to be utf-8 encoded before writing it to the database. It's a bug. Not sure if it's streamer delivering non utf-8 coded data or the scripts messing it up. It's not my code and i have to validate it first.

If i have time i'll check it maybe. It's a lot of work and i have a realworld fulltime job. Streamer is just a hobby :(

:idea: By the way: Today i had the widget running half the day in IE7 and never had a freeze. It's a bit strange you had a freeze. Whatever happens in flash shouldn't affect IE7.

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


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sun Feb 22, 2009 10:24 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Thu Oct 13, 2005 3:27 pm
Posts: 146
Location: Earth
Station Name: SwanSong - Rock until you drop
neat::

Anyway to make the [play] ">" button functional or hide it from view // doesnt work here :-(

_________________
Rock until you drop
Retro 70's Hairy Grebo Biker Dude


http://www.streamerp2p.com/?t=swansong


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sun Feb 22, 2009 10:29 am 
Offline
Streamer Fan
Streamer Fan
User avatar

Joined: Sat Apr 14, 2007 6:19 pm
Posts: 32
Location: Not sure.....
Station Name: KOKE Classic Rock Radio
d-tracks, Hey, this is great, man. Many thanks from KOKE.

Regards, Jim

_________________
As much as it is possible, live in PEACE with everyone.


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sun Feb 22, 2009 10:33 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
DoubleQ wrote:
neat::
Anyway to make the [play] ">" button functional or hide it from view // doesnt work here :-(

On the test page the play button works for your station. Check your popup blocker as it opens streamerp2p:// links with target=" _blank".
http://www.streamerp2p.com/widget.html
DoubleQ wrote:
[...] or hide it from view

There is no way to hide the play button. Station online: opens stream, station offline: no action

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


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sun Feb 22, 2009 1:04 pm 
Offline
Streamer Fan
Streamer Fan
User avatar

Joined: Mon Feb 27, 2006 11:29 am
Posts: 40
Location: Argentina
Station Name: Los Virtuales Radio
Tnxs alot D this work perfect haa and really good lookyng 1.10 jeje :wink:

_________________
.:L:V:R:. .:A:M:S:. -BETA- Now is Image


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Sun Feb 22, 2009 7:29 pm 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
Thanks LVR :wink:
Flash widget now displays your spanish chars if you have some in your track titles 8) Thanks to ACHS who reminds me of it. Fixed YP as well. No "black boxes" instead language specific chars anymore 8)

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


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Mon Feb 23, 2009 12:02 am 
Offline
Streamer Dude
Streamer Dude
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 18
Good job d-tracks! Thank you! :D
About the freeze, maybe my system need a reinstall :roll: . Got the same error in the Google Chrome. It's the flash player plugin freezing
I can reproduce the problem reloading the page with the widget several times.


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Mon Feb 23, 2009 11:31 pm 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Thu Oct 13, 2005 3:27 pm
Posts: 146
Location: Earth
Station Name: SwanSong - Rock until you drop
next project,

widget that can operate without dependancy on code from Macromedia.com :-)

regards 2xQ


Top
 Profile  
 
 Post subject: Re: Streamer Stationinfo Flash Widget for your website!
PostPosted: Tue Feb 24, 2009 4:16 am 
Offline
Streamer Nerd
Streamer Nerd
User avatar

Joined: Sun Oct 10, 2004 6:00 pm
Posts: 749
Location: Germany
DoubleQ wrote:
widget that can operate without dependancy on code from Macromedia.com :-)

Silverlight http://en.wikipedia.org/wiki/Microsoft_Silverlight from Microsoft?
Java (Applet) http://en.wikipedia.org/wiki/Java_applet from Sun?

You need a runtime environment for everything. Nothing "just runs in browser" except html cause the runtime environment (html parser) is already included in the browser application 8) Same sh!t, different wrapping :wink: And flash is really common nowadays. Look at all the "web2.0" pages like youtube.

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


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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