ActionScript 3.0 :: Play Streaming Audio From Shoutcast?
Nov 14, 2010
I am trying to create a simple desktop app to play a live radio stream from a shoutcast server. I cannot get it to play. I am now wondering if it is even possible using the Flex/Air platform. Here is my code:
Writing RTMP Streaming Server for streaming AVC+AAC video. And it works fine with rtmpdump. But I can't force it to work in flowplayer and other flash video players.The message sequence after handshake is similar to FMS / RED5 / erlyvideo / haxevideo servers: I've tried a lot of variations.
From Chrome debug console I can see, what all negotiating messages passed to the flowplayer. The last one is onMetaData. And after this the working sample (rtmp://flash.tvwmedia.net/LiveVideo//Live300) gets NetStream.Buffer.Full. And streaming from my server don't get it.
I'm starting with AVC Header message, containing sps/pps. After it first AVC picture passed. After - AAC header and AAC sample. And then AVC/AAC samples. This dumped OK by rtmpdump - I have working flv on exit. But flowplayer and others does not work.
Can an iphone app developed with Adobe AIR (version 2.6/2.7) play a streaming sound when it is in background? Only native application can play in background? I have not found a clearly response to this question on documentation. PS: i'm using the Adobe AS3 class Sound to play a shoutcast streaming.
I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)
Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.
I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.
I am new in action script 3.0. i am trying to build an audio player which will stream audio(mp3 etc.) from wowza media server. the player needs to have a play button, stop/pause button, a play progressbar and a volume scroll bar. i am using NetStream object to paly the audio
I am streaming to live videos with audio to our webpage, each with it's own accompanying audio. On my laptop, I could stream them without any trouble but it would overheat so I had two new computers built just for encoding. Now, on the new computers, the 2 videos stream fine but only on audio file works at a time. The other just gets hung up on one note of sound and repeats very annoyingly over and over.
I think it is loading the whole audio first into the swf, but I would like to get confirmation from someone more knowledgible.[code]I want it to stream the audio when the button is clicked only so that 100 of these swf will not slow down a whole webpage from loading.[code]I only start getting concerned when I noticed that on FF and Chrome, the page loads really quick but when I open the page in IE, it takes a very long time for the page to appear.
I have an audio player that has a custom timeline and playhead. I am using a start and stop drag to move in the time line but the only way i can make it work is to have it play when ever I release the play head. I would like it to stay stopped if the player is paused and play if the player was playing.
My server is streaming binary audio data (mostly mp3 files) to a client (a browser). This client stores the audio data in memory.
What I'm looking for is a flash audio player that I can input the binary audio data so that it can play the audio file.
Preferably, the flash client is merely a bridge to Javascript so that I can handle everything in Javascript and simply use Flash's audio features, but this is not a requirement.
I've been working on an audio streaming application for the last couple days. My current progress can be viewed at figmentmedia.ca /test.html.I've got a problem with this release. Look at the tan coloured line, near the base of the window, to the right of the control buttons (of which only play and pause work). That line is supposed to be a loading bar. As you will probably notice it does not work. The code I've attached is located in the first frame of my movie. The second last line there, "mc_loaded.width =297/(soundClip.bytes Loaded/ soundClip.bytesTotal);", is the one giving me the trouble. After troubleshooting many different options.. none of which worked, I believe.. what is loading may be the variable. Regardless of what progress the bar is showing, it's not showing the progress of the sound clip.
I'm stucked in middle of my application, where I need to implement sound spectrum on streaming audio. Does any one knows how can we add sound spectrum on streaming audio.
i am New to flex.Can any one point me to a small piece of mxml code which plays audio files(mp3,wav.....) also which has the capabilities to pause, play, stop.... the audio file. Also this file would be embedded in a html file later on..
I am interested in streaming audio on my website, but I have no clue where to begin. There are two types of streaming I hope to achieve. The first would be streaming a playlist of songs stored on the server and the second would be live audio streaming. Can anybody recomend any good sites or plugins to use?
I am streaming live content via flv but the video is lagging audio by some time. I am using netstream and video but cannot find a way to set the FPS for the video, I think i could fix it if I knew how to adjust the FPS
I wanna be able to load a .mp3 file outsideside of the library (to conserve file size) which i figured out but i am having trouble with makin a progress bar for the progress of the loading mp3....
I am trying to use some streaming video and audio inside my flash movie, but can't quite figure it out..I have the video saved as an FLV file, and this file was uploaded into my streaming folder on my server. I tried to use a sample player I found, and everything should add up, but nothing is coming through. How exactly am I supposed to do this, and does anyone have a sample video controller/viewer I could borrow to test this out?
I am researching the inclusion of Flash in a PHP/MySQL application I am building to stream audio.I have done a lot of searching, but have yet to find which audio formats that Flash can stream.I know that MP3's can be streamed.
The problem is that the progress bar is not working correctly while the music is streaming (not completely downloaded to cache).I can understand why it is so.... (sound.duration is changing untill download is complete)I have a simple progress bar... no masking etc:- .. just using the good old "_xscale"
Im making a website in flash 8 pro and would like to know how i can load the music for a particular section using streaming audio. I mean i dont want the soundtracks to occupy to much space so i want to make the website load in and then if someone clicked and navigated into contacts then i want the contacts soudntrack to load only then or preferably stream from a folder.
I have several flash based lessons that I have created that are being distributed online to several companies. Each lesson has a video that is played within the lesson through the flvplayback control. The videos were supplied by a third party and some of the videos are encoded at 384K and some are at 568K.
One company that is attempting to view the lessons is seeing the following behavior. The video plays for approximately 20 seconds then suddenly the video drops out and the audio continues to play. With the audio still playing the video scrubber rolls back and attempts to start the video again but all that comes through is the audio track again. Now there are 2 instances of the audio playing with no video. This happens a third time and finally keeps going until all the audio is played out.
The IT staff at the company has showed me a fiddler log that shows the flash player making a connection out to Akamai to retrieve the video and then rolling from port 80 to port 1935 and finally to port 443. This would explain the three audio tracks playing
I have read that the flash player will attempt to gather the stream from the stated rtmp location and then if it encounters an issue with a proxy or firewall it will attempt the other ports.So I am not sure if there is anything I can do by design or programatically to alleviate this issue. It appears to me that the company attempting to view this video has some kind of bandwidth throttling program in place that is kicking off this behavior in the flash player.
Is it possible to prevent the flash player from making the three attempts? Would a sudden cut of bandwidth prompt the player to attempt to roll to another port if a network load balancing program suddenly kicked in? If it is bandwidth is that why the audio stream continues to play because there is enough bandwidth for the audio track to get through, but not the video?
I have attached a screen shot of the sniffer output so you can see the rolling ports thing.
I have a flash program that loads an external flv dynamically. I first create an empty movie clip then I attach an instance of the FLVPlayback component using Moviclip.attachMovie();. Then i control the FLVPlayback component with AS2. I have a play and pause button, a scrubber, and a loading progress bar. None of these are components. When I publish and preview the file in Flash CS4, Adobe Flash Player 10, and all my internet browsers everything works fine, all the buttons, the multiple functions of the scrubber, and even the loading progress bar.
However when I uploaded all the files from my computer to my company's server and tested it from there, I recieved audio but no video. All of the various controls still worked for the audio but I couldn't see anything on the stage. If I waited for the loading progress bar to complete and then reloaded the external flv then I got video, but the purpose of this program is to stream the video and I cannot have the users waiting for a preloader.
If you want to look at my FLVPlayback code here it is:
Our company has a Flex application (3.0.2) that is having a problem with audio dropping out in Windows 7. The problem appears worse with a wireless connection, but it can't be consistently reproduced there, either. The only thing known for sure is that the problem has not been seen on any other version of Windows.
The application thinks the audio is playing, because it is calling the appropriate event listeners triggered when the audio completes and when any audio cue points are hit. The majority of our audio is streaming via Flash Media Server (3,0,2,201), but the problem was also seen using embedded sound effects. In one instance, several clicks of a button triggered an error saying the sound effect could not be loaded, and then about a minute later, all the sound effects played at once and the user could then continue with the application.
What parameters are required to set an Audio file to Streaming? I have imported both an mp3 file and a WAV file into the library. clicking on a keyframe, I drag either th emp3 or WAV file onto the stage. The audio file can be seen on the timeline. If I set the sync to Event, both of the audio file will play no problem.
If I set eithe of the audio files to Stream, nothing happens, no audio at all. Can I only use streaming audio files another way? I cannot find an option to link ot an external audio file as you can do with video so how do i successfully get an audio file to stream?
We have setup a brand new FMS 4.5 for http streaming to ios devices. We are feeding the source via rtmp to livepkgr application. Upon digesting the iOS feed via the url below, there is no audio being passed. I can check the stream using the rtmp protocol and there is audio. [URL]..
I'm working on an app to stream audio from shoutcast. The streaming goes well on my computer and when debugging it with an Android-configuration. But when I deploy it to an APK-file and run it on a Samsung Galaxy S, the streaming doesn't work.
My code for streaming the audio: var urlRequest:URLRequest = new URLRequest("http://.../;"); var soundContext:SoundLoaderContext = new SoundLoaderContext(2000, true); soundChannel = new SoundChannel(); sound = new Sound(urlRequest, soundContext); soundChannel = sound.play();
I've also tried an addEventListener(Event.COMPLETE), it seems my app doesn't get there when running on a Samsung Galaxy.
Suppose there is a live WAV stream that can be reached at a certain URL, and we need to stream it with as little latency as possible. Using HTML5 <audio> for this task is a no-go, because browsers attempt to pre-buffer several seconds of the stream, and the latency goes up accordingly. That's the reason behind using Flash for this task. However, due to my inexperience with this technology, I only managed to get occasional clicks and white noise. What's wrong in the code below?
var soundBuffer: ByteArray = new ByteArray(); var soundStream: URLStream = new URLStream(); soundStream.addEventListener(ProgressEvent.PROGRESS, readSound);[code]....