Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I currently have a radio station broadcasting via ShoutCast on a third party ShoutCast server. I was wondering if there was a way to have OSM/MediaFront play this stream? To stream my station in WinAmp or VLC, I can just enter the URL of 184.154.185.170:8230. Can this be done in OSM?
Thanks!
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedOh, I can also use the following links:
M3U: http://www.makeavoice.com/shoutcast/tuneinlinks.php?file=m3u&host=184.15...
PLS: http://184.154.185.170:8230/listen.pls
ASX: http://www.makeavoice.com/shoutcast/tuneinlinks.php?file=asx&host=184.15...
RAM: http://www.makeavoice.com/shoutcast/tuneinlinks.php?file=ram&host=184.15...
Comment #2
Oshun CreditAttribution: Oshun commentedI wish I could help, but this is something I am interested in - in the near future as well. I would like to stream on my site - without going through a third party.
Comment #3
EnjoyLife CreditAttribution: EnjoyLife commentedGr8britton, I just tried all of your links in 2.x and had no success. Each stream said "Cannot play media: unknown." I don't believe streaming is a supported feature at this time (other than for Youtube and Vimeo).
Comment #4
henry930 CreditAttribution: henry930 commentedWhat exactly I want.
Comment #5
Ketto CreditAttribution: Ketto commentedNo solution yet?
I've been trying to set up my own shoutcast stream with no success. I found on another forum that you should address you shoutcast by placing a semicolon at the end of the url on html5. The following code works for me:
< audio autoplay="autoplay" controls="controls" src="http://stream-ip:port/;" >< /audio>
Tested in Chrome on my pc, ipad and android.
I am new to mediafront and have not yet learned how to create a custom provider for it (Any tips on where to learn?). I suspect this should be the solution as I noticed the mediafront is not even printing an audio/video tag when I feed it with my shoutcast url. He probably doesn't know how to deal with it.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedKetto,
Are you saying you just put that code in the source of the node?
Thanks,
Gr8Britton
Comment #7
travist CreditAttribution: travist commentedSo, this would require something additional when setting up the field, which is basically to force the player the media player tries to play the file with. Let me work on that this week and see what I come up with....
Travis.
Comment #8
travist CreditAttribution: travist commentedComment #9
Jeffrey C. CreditAttribution: Jeffrey C. commentedDon't know if this is related, the server where the remote video I'm trying to play is located does not allow U.S. IP addresses. So I'm wondering if MediaFront streams video to Drupal first then streams it to client side? Is it possible to simply let user stream the video directly?
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedJust following up as it has been awhile. Any word on whether this will be added in the near future?
Thanks!
Comment #11
travist CreditAttribution: travist commentedLive streaming has been added in the form of RTMP support. There is a new type when you add a textfield that is called "Stream" in the MediaFront settings of that field. You can put the RTMP stream in this field which should allow for live streaming support.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedJust to make sure, this will support an http URL for a shoutcast server, like http://184.154.185.170:8230?
Comment #13
travist CreditAttribution: travist commentedThat has been untested, but it is worth trying out where you create a text field, give it a stream mediafront type, and then paste in that address when creating your content. Let me know if it works for you. If not, then I can add it to the list of things to look at.
Thanks,
Travis.
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedno, it did not. Everything seemed to setup properly, but the stream never loads. :-(
Thanks!
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedHow does the RTMP work, then?
Comment #17
f0ru0l0rd CreditAttribution: f0ru0l0rd commentedI know this is closed and old but google comes here.
The solution is closer than you believe. Notice the code that Ketto gave? It includes one VERY important piece that I am sure you are missing, as I was for a long time as well.
the " /; " When you go to that "station's" ip, you are actually looking at the server log. To play the audio protocol, the browser must also have the semicolon after the forwardslash.
Furthermore, the HTML5 protocol is browser dependent for what types of playback occurs. Not all browsers play shoutcast or icecast. HOWEVER, all mobile default browsers for both Android and iPhone/Pad WILL work natively.
I hope this helps someone.
Good luck!
Comment #18
Vemma-1 CreditAttribution: Vemma-1 commentedWondering if this will ever work. Im testing now w/ a simple PLS & M3U files and its not working. Any ideas on how? Thx.
Comment #19
gnaag CreditAttribution: gnaag commentedJust extract single links from m3u.
Comment #20
lquessenberry CreditAttribution: lquessenberry commentedI have extracted a few links here and there, but I have only been able to get a few links working. Can someone explain to me how to get this link to work?
http://tunein.streamguys1.com/cnn/
I think it is IceCast, but it doesn't play for me. The only thing I have been able to successfully play is any path that includes a file extension with .mp3 on it. That goes for files and shoutcast streams.