I am stunned that I can not find a solution to play our radio stream from our website other than using embed tags with third party players such as JW Player - surely I a misunderstanding a fundamental :)
I have checked out audio, soundmanager, and embedmedia - all of them seem centered around files and are incompatible with streams. In checking out a handful of sites using Station, I see links for users to use there desktop client. I am not seeing anyone with an embedded player of their icecast stream.
It looks like FlowPlayer is adding streaming support, but flv streaming, not mp3 from icecast. I am looking at useing SWF Tools and FlashNode with JW Player to get some type of basic integration.
How is everyone else dealing with this?
Am I missing something?
thanks and regards, tom
Comments
bump
Also want.
Zoë Neill-St. Clair
Drupalshank @ Affinity Bridge
http://www.AffinityBridge.com
icecast
After long search i found ffmp3, very good flash player.
check it out at http://rockjukebox.gr and if you like it i will post the php code
hello thgiannop,
hello thgiannop, unfortunately, I could not read any info on the player, can you tell us more about? It can play an Icecast Stream?
thanks, tom
icecast player
The home page of the player with installation instructions is: http://ffmp3.sourceforge.net/
Also you can download skins from http://deuced.net/shout-stream-player/shout-stream-ffmp3/
Excellent! even plays OGG
Excellent! even plays OGG although on my older computer, I do experience the "extra processing" of OGG in Flash.
Thanks thgiannop.
How to install
Can anyone point me out how to use this in a Drupal site?
I'm trying to find a way to broadcast livestreams like http://livestreams.omroep.nl/npo/radio1-bb or http://www.skyradio.nl/player/skyradio.asx on my site but I cannot find a good solution.
So far I tried embedded media field, Audio player (wordpress), jquery media and I'm probably forgetting a few.
Thanks in advance.
Niels
The Netherlands.
installation instuctions for ffmp3
first make a folder named player at sites/default
and put the ffmp3 files in
You can download ffmp3 from http://sourceforge.net/projects/ffmp3/files/Version%200.3/ffmp3-0.3.zip/...
Next you have to make a new block
inside the block you place the html code generated from this script:
http://ffmp3.sourceforge.net/download.php
the only thing you have to change is the path of the swf file at the embed tag
<embed src="http://{your domain}/sites/default/player/ffmp3.swf
Shoutcast Radio Stream
I have a page (http://christogenea.org/chat) with two embedded players for shoutcast streams, and also links to a playlist file for each of them. If either of the streams is loaded into a desktop client using the playlist file there is never a problem.
However the embedded player on the Drupal page is interrupted every 30-40 seconds for about a second or two. This is really annoying! Any hints as to why this is happening? I have tried both the ffmp3 player from http://ffmp3.sourceforge.net/index.php and the Native Flash Radio player at http://blog.codingexpert.de/?p=66
I set up a test page without the blocks for the Chatroom, visitor globe or Views Slideshow scripts at the following link, but they are not the problem, since the problem persists: http://christogenea.org/streamingonly
Any suggestions would be appreciated!
(Since I have made this post I had to take the embedded players off of the /chat page since I cannot get them to work)
This has nothing to do with Drupal but with your setup and ...
Hi wmfinck!
This has nothing to do with Drupal but with your shoutcast setup and certain audio stream players. You have your shoutcast server setup to play an introductory audio file before joining the stream. Thats ok, but what is not is that the format of the two do not agree. Some players will realize this and switch to the correct format, others will not and will play fast or slow. In your case it sounds like it is playing fast then the buffer is empty so it waits for the buffer to fill before playing out again, then the process repeat itself.
To check if this is the problem remove the introductory audio file and see if the problem still happens.
To fix it so that you can use the introductory file record it at the exact same format as your stream. Right now the introductory file has the following format:
mp3 mono 22050 Hz 16 kbps
While the stream format is:
mp3 stereo 11025 Hz 16 kbps
Hope this helps!
Frederick
Found this in the FAQ for ffmp3
I also found this in the FAQ for ffmp3
"The audio cuts every few seconds. What's happening?
The most probable thing is that your buffer is getting empty. Possible reasons are:
1) You don't have a good and stable Internet connection
2) Your server doesn't have a good and stable Internet connection
3) The streaming signal is heavy (try reducing the kbps)"
http://ffmp3.sourceforge.net/faq.php
Interesting
I'm one of the maintainers of the station module so this is very interesting. I'll have to see if we can get this working.
Shoutcast Radio Stream
Thanks Drewish! I have downloaded and looked at the Station module, and really do need to examine and integrate that too, since I also provide my own content. The automatic rip/archive features would surely save me some time.
Built-In Embedded Player
That would be a superb, and remarkable feature addition to this already-handy module. I've been searching for something embeddable that wouldn't require the use of the SWF Tools module to work. The Audio module came bundled with a player, but that was only for playing back audio files not streaming media. I'd be very interested to see this sort of feature implemented in the future.
Shoutcast Radio Stream
Frederickjh,
Sorry I am so late, it has been hectic. I posted my problem here hoping that someone could help me, and I need to thank you for pointing me in the right direction, which was a great help. The problem you pinpointed was exactly what I needed to address!
I THOUGHT all of my audios were sampled at 22050 but it turns out that a lot of them were 16000 so it was easiest for me to open Audacity and resample the ones that needed it. The drop from 22050 to 16000 was exactly what was causing the buffering problem - just as you said. Shoutcast must have been dropping the rate to 11,025 for the 16,000 Hz files.
If drewish is watching: Hello! I also found something else while checking this. Using the Audio module, if I tell it that a file is sampled at 22,050 (or 44,100) it plays fine on the site, even when it is actually sampled at a lower rate - 16,000 which is not one of the settings. You probably know this, but I always assumed it had to be exact (when some of my own files were not).
Thanks again, gentlemen!
That is a common streaming problem
This is a common streaming problem where the intro audio file that plays before the stream starts is not the same rate as the stream. Some players handle it no problem but others don't catch the change in rate and then play at the wrong speed.