Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Third Party Products and Support:
Flash stream.php
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 02/12/10 12:34 
Hey I'm trying to build a shoutcast flash player. Would it be possible to see the php file you guys use to stream to flash?


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 02/12/10 12:49 

Natedogg265:
Hey I'm trying to build a shoutcast flash player. Would it be possible to see the php file you guys use to stream to flash?


Funny you mention this Nate. I was going to suggest one to you. I just bought one the day hehe.

Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 02/12/10 13:51 
Or if you could tell me what changes should be made to this file, I can work with it.


Code
<?php

$streamname = "http://jbstream.net"; // put in whatever stream you want to play
$port = "8042"; // put in the port of the stream
$path = "/"; // put in any extra path, this is usually just a /

header("Content-type: audio/mpeg");
$sock = fsockopen($streamname,$port);

fputs($sock, "GET $path HTTP/1.0\r\n");
fputs($sock, "Host: $streamname\r\n");
fputs($sock, "User-Agent: WinampMPEG/2.8\r\n");
fputs($sock, "Accept: */*\r\n");
fputs($sock, "Icy-MetaData:1\r\n");
fputs($sock, "Connection: close\r\n\r\n");


fpassthru($sock);

fclose($sock); 

?>



_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 02/15/10 12:21 
Thanks anyway.


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 02/15/10 15:52 
Yeah, there isn't anything custom here. It depends on the player and the version of flash it was built on, but all it is is tagging nsv on the url in the right place, the rest doesn't have anything custom at all. A player will either work with nsv or not. The real question I'm still trying to answer is, when will adobe plug the memory leak when streaming nsv so it will work correctly, my guess is never since it might detract from sales of a flash server which is a shame.


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Natedogg265
N8Flash Designs


Joined: 28 Jan 2007
Posts: 5866
Location: St. Louis, Missouri

Posted: 02/15/10 16:26 
The programmer can solve the memory leak when he builds the app. The one I am testing flushes ever few seconds but it's a lil buggy.


_________________
Modules, Skins, Flash Players and more.
Exclusively for Jamroom


Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 02/15/10 20:24 

Natedogg265:
The programmer can solve the memory leak when he builds the app. The one I am testing flushes ever few seconds but it's a lil buggy.


I've seen a couple that do that, I think minicaster is the closest to solving the issue but it still has the same issue, it just takes about 1/4 the amount of time longer for it to become apparent Sad

I'd love to see a working proof of concept sometime if anyone gets one going!


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
whodaniel



Joined: 26 Jun 2006
Posts: 627

Posted: 02/15/10 23:01 
Interesting string, I'd like to hear more...

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Third Party Products and Support

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.