| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
Hello, this is an action script file which connects to a shoutcast server and begins transmitting a NSV format bitstream.
The files below work. They stream the text "HELLO!!" through the video channel of a shoutcast server. CHALLENGE! Send images, audio, objects, or anything cool that you want to stream to clients. Requires a Shoutcast server running on 'localhost' or a server with socket policyfile. To read and write NSV format easy, I rigged up this class from aol nsv C++ class. Package it into your workspace. ActionScript Code:
OK More code! The challenge starts at the Adobe Socket sample. ActionScript Code:
Ok now lets use that class to connect to a Shoutcast server and stream! Create a new Action script project SocketExample. ActionScript Code:
Run that file and your shoutcast server should signify connection.
__________________
What does 'int main(int argc, char** argv )' mean? Last edited by bowljoman; 06-09-2008 at 08:13 PM.. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
Now. I have a flex file which I run in debug mode and I run SocketExample regularly.
Here is the flex app which connect to the shoutcast server and streams the content. ActionScript Code:
__________________
What does 'int main(int argc, char** argv )' mean? |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
This is the per-frame data packing limits.
Ooops. ![]() ActionScript Code:
__________________
What does 'int main(int argc, char** argv )' mean? |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Jan 2007
Posts: 39
|
andy, people here are lazy to enter much simpler challenges.
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
Ha !
k, oh well. I was streaming my webcam using flash and shoutcast server last night! mmmmkay. Moving on to the Next project...
__________________
What does 'int main(int argc, char** argv )' mean? |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
ActionScript Code:
__________________
What does 'int main(int argc, char** argv )' mean? |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
First change the sendRequest() in CustomSocket to
ActionScript Code:
then use it here ActionScript Code:
__________________
What does 'int main(int argc, char** argv )' mean? |
|
|
|
|
|
#8 |
|
Registered User
Join Date: May 2009
Posts: 1
|
How Do I extract the Metadata from a Icecast2 Stream?
Anyone liek to help me, please ? Regards Marc |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Jun 2009
Posts: 1
|
I'm sorry I can't help you this time, Marc. We do have the same problem by the way. I wish that someone could answer your question.
Simulation pret |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jan 2008
Posts: 299
|
Connect to the server, and read each chunk.
Search for pattern 'icy-' 'icy-title:name' 'icy-bitrate:256' 'icy-aol:dgrtf' 'icy-icq:34135445'
__________________
What does 'int main(int argc, char** argv )' mean? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending XML data from AS3 to PHP | daemon1981 | Server-Side Scripting | 6 | 12-15-2008 08:55 PM |
| Data Stream? | stompwampa | ActionScript 3.0 | 0 | 04-15-2008 05:14 PM |
| Streaming video from server vs. locally | wendallsan | ActionScript 3.0 | 2 | 10-17-2007 08:23 PM |
| LoadVars probling with loading data from external server | keso1234567 | ActionScript 2.0 | 1 | 06-02-2007 10:16 PM |
| Passing data from sharedObject.local to web server | JDMcCoy | Server-Side Scripting | 4 | 04-30-2003 07:57 PM |