ActionScript 2.0 :: MP3 Streaming Player - Audio Buffering Visual?
Nov 28, 2009
I have written a little MP3 streaming player. Nothing big. But on some file, it takes longer to fill enough of the buffer before starting to play. My construct is fairly simple...
var player:Sound = new Sound();
player.onLoad = function(success:Boolean):Void {
if (success) {
// do something;
}}
player.loadSound(musicURL,true);
Since I have specified streaming, this will auto play as soon as the buffer is full. What I'd like to do is play a little animation or something while the buffer is filling so the user won't think the player has hung.
View 9 Replies
Similar Posts:
Oct 24, 2010
I have a music player playing a live radio stream. Everytime the player loads the radio stream, it has a stutter start and then it buffers for a few seconds (how long depends on your internet connection speed) and then it continues playing. I want a buffering icon to appear during this brief buffering period. Watching the sound.position, I see that its increasing pauses at approximately the 0.4 second mark when the stream buffers.
When buffering finished it continues counting up to infinity as the stream plays. I thought maybe it would be possible to write an IF statement saying if the current sound.position is equal to what it was a second or split-second ago (i.e., it's not increasing, the stream is stopped for buffering), display the buffering icon. But I don't know how to write this IF statement.
View 5 Replies
Feb 24, 2011
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
View 1 Replies
Oct 23, 2010
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..
View 1 Replies
May 25, 2010
I started with a XML driven 3d Carousel and a XML driven streaming MP3 player, mixed them both up, and made a mess.I can't seem to be able to modify the mp3 player to be able to select separate 'banks' of songs.I tried one method of loading mulitple XML files, each one being a single song 'bank'. But that didn't work as the previously loaded 'bank' would stay in the memory. (When I clicked the second tape, both the first track of bank1 and the first track of bank2 would play simultaneously.)
Now what I think I need to do, is load in one XML file that contains all the 'banks' wrapped in an <Album> tag like so:
Code: Select all<Album index="tape1" title="LA Tool and Die" artist="LA Tool and Die" imageURL="images/tape1.jpg">
<Tracks>
<Track
[code]....
then when a tape is selected, point the audio player to the selected <album> node.But working that into the working streaming audio player is a bit over my head, as is building a audio streamer from scratch.Included is the file that compiles to the sample with the exception of having the 'multiple XML files' bit taken out.
View 1 Replies
Aug 2, 2010
I am trying to stream audio to my flash application. I got it working with a test MP3 file. But the problem is that MP3 encoders are protected by patents and require license fees.(I am living in Canada) Isn't there a open audio file format supported by flash?
View 1 Replies
May 26, 2011
When my streaming videos start they will buffer and begin to play as normal. However, as soon as the vid starts buffering again a problem arises. Basically what is happening is that Flash is buffering the video to a certain point, but instead of resuming playback from the point where the vid paused it now jumps instantly to the end of the newly buffered area without playing the vid portion in between. Which essentially means that it skips merrily through the video and never stops buffering.
View 3 Replies
May 26, 2011
When my streaming videos start they will buffer and begin to play as normal. However, as soon as the vid starts buffering again a problem arises. Basically what is happening is that Flash is buffering the video to a certain point, but instead of resuming playback from the point where the vid paused it now jumps instantly to the end of the newly buffered area without playing the vid portion in between. Which essentially means that it skips merrily through the video and never stops buffering. That said i'd prefer to get to the root of the prob, particularly if this is a codec/keyframe issue, since i could then re-export the vids appropriately.
View 2 Replies
May 26, 2011
I am pretty new to scripting and Flash and streaming vid is proving a massive headache at the mo. Have bashed through most of my problems but this one has got me stumped, scripting skills not up to the task. When my streaming videos start they will buffer and begin to play as normal. However, as soon as the vid starts buffering again a problem arises. Basically what is happening is that Flash is buffering the video to a certain point, but instead of resuming playback from the point where the vid paused it now jumps instantly to the end of the newly buffered area without playing the vid portion in between. Which essentially means that it skips merrily through the video and never stops buffering. That said I'd prefer to get to the root of the prob, particularly if this is a codec/keyframe issue, since I could then re-export the vids appropriately. I am using mpg4 (.mov) with H264 compression and keyframes at 1 sec intervals.
View 2 Replies
Aug 19, 2007
Any dynamic buffering strategy solution for streaming video from the FMS server? I am following the Adobe Tutorial but i get confused where to place all of the files as I am not using the Management Console...I'm using flv hosting and all i have access to is just the ftp servers.
View 1 Replies
Feb 10, 2012
I am developing a video player that is almost done, but there is a problem in Bufferbar
I am using a flvplayback for video playing when I use http path for video it show bufferbar working perfectly like below:
Code:
_flvPlayback.source = "http://flash.projectstatus.in/fmsvid/sample.flv";
If I use rtmp path from the fms the bufferbar does not work it shows already full like below:
Code:
_flvPlayback.source = "rtmp://75.126.73.138/vod/flv:sample.flv";
In both case video playing perfectly. Only problem regarding buffering bar.
View 2 Replies
May 10, 2009
creating a button within a movie clip that will pause both the images (bmps) on the screen and the sound, which is being loaded by AS3.Here's the code for my sound.
Code:
//This assigns an abreviated name to the StorySongBook class which is inside the StorySongBook.mp3 properties.
var sbs:StorybookSong = new StorybookSong();[code].....
How do I assign this to a button on the stage though (event listener?) and get the button to stop both audio and visual?
View 2 Replies
May 26, 2011
I'm working on the development of a tool that plays two audio files and one video file simutaneously.All the files need to play together at the exact same time, so that the audio syncs with the video.
Our situation right now is that each one of the files start playing at different times depending on how fast they are loading. The problem is, my programmer is telling me that there is no way to track the buffer of the audio, so for example, the video only starts playing when at least 30% of the audio is loaded. Is it possible to do this?
The video player would then display something like:
[Code]...
View 4 Replies
Oct 31, 2006
I'm working on a Flash Projector CDROM with around 10 FLVs. These FLVs are loaded dynamically into the SWF projector using actionscript from the CD. There are 10 buttons to load each movie into the same FLVPlayback instance.
However, when I click the button to view/load the FLV, sometimes the video does not display but the audio can be heard playing. Furthermore this is happenning erratically and on randomly. It seems to get worse as the CD has been playing for a longer period.
This sounds like an issue of Flash clogging the computer's memory. Is there a way to get around this without using a 3rd-party software like Jugglor? [URL]
View 2 Replies
Dec 12, 2003
I'm working on a Flash Projector CDROM with around 10 FLVs. These FLVs are loaded dynamically into the SWF projector using actionscript from the CD. There are 10 buttons to load each movie into the same FLVPlayback instance.However, when I click the button to view/load the FLV, sometimes the video does not display but the audio can be heard playing. Furthermore this is happenning erratically and on randomly. It seems to get worse as the CD has been playing for a longer period.This sounds like an issue of Flash clogging the computer's memory. Is there a way to get around this without using a 3rd-party software like Jugglor?
View 1 Replies
Aug 25, 2009
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.
View 8 Replies
Sep 13, 2011
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.
View 2 Replies
Jan 28, 2012
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.
View 3 Replies
Jul 15, 2004
Just wondering if anyone had a good tutorial for making a buffering video player, with scrubber etc that lets the viewer see how much of the video has loaded whilst they watch it. I've been searching for ages but to of no avail!The kind of thing I'm after can be found at www.hi-res.net on the 'showreel' section in bottom right corner.
View 2 Replies
Oct 14, 2010
I have an AS3.0 XML flv player that uses a flv component skin/controls. Everything works great, but now the client wants it so that when ever the movie stops to buffer, it automatically starts playing again. Right now, I guess if it has to stop and buffer, you have to hit play to start it again.
[Code]...
View 1 Replies
Jul 15, 2004
tutorial for making a buffering video player, with scrubber etc that lets the viewer see how much of the video has loaded whilst they watch it. I've been searching for ages but to of no avail!I'm using MX, not MX 2004
View 2 Replies
Dec 27, 2011
I am trying to make a Flash player plugin using Visual C# 2008 language
View 1 Replies
Mar 11, 2010
Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?
A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.
View 1 Replies
Aug 25, 2009
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.
[Code]...
View 5 Replies
Apr 13, 2011
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.
View 1 Replies
May 15, 2007
I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).
View 7 Replies
Sep 30, 2008
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.
View 10 Replies
Apr 15, 2010
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.
View 4 Replies
Oct 28, 2010
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?
View 2 Replies
Feb 10, 2011
I'm trying to create an application in flash that will record the sound from the user and will save the data on the server.
View 1 Replies