Actionscript 3 :: Streaming Audio In Flash Is Playing Multiple Times, Overlapping?

Sep 13, 2011

The following AS3 code is sometimes causing the audio to play multiple times, almost simultaneously like a crazy echo. It usually works ok with that URL but when I use a [URL]... it always freaks out. On rare occasions I think the issue has happened with local files even. I copied this code from somewhere else so I don't entirely understand it. Do you see a problem with this implementation or is Flash just crazy?

[Code]...

View 1 Replies


Similar Posts:


Audio - Same Flash File (.swf) Downloaded Multiple Times On A Page

Jun 17, 2010

I have a page that has a table with each row corresponding to an audio file. The last cell in each row embeds a simple flash audio player. The problem is that the flash file for the player is being downloaded for each row separately and as soon as rows go beyond 40-50 it crashes the browser.

I tried using different players (1pixelout, flash-mp3-player) and the problem is still there, so its not a player specific issue.

Is there any way to cache the player so that it is only downloaded once?

View 1 Replies

Streaming Audio / Loading Audio Into Swf First / Then Playing It?

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

Media Server :: Recording And Playing Back Streaming Audio And Video?

Sep 12, 2010

I have this sample code from the e-book: "Learning Flash Media Server 3". The purpose of the code is to create a FLV. The code is not running as it should. When I click on the 'record' button, the label is to change to 'recording', that dosen't seem to happen and also when I click on the 'Stop Record' button, I get the following error:
 
"TypeError: Error #1009: Cannot access a property or method of a null object reference.at MinRecord/stopRecord()"

[Code]....
 
My deduction is that the 'if' statement in the 'startRecord' function is not resolving to 'true' and hence the label is not changing to 'Recording'. Also I feel that the assingment to the variable 'ns' of type NetStream is not being done and hence in the function 'stopRecord' I get the above mentioned error message when I click on the stop button. How do I rectify these problems?

View 3 Replies

ActionScript 3.0 :: Audio From Flash CS3 Video Overlapping?

Oct 20, 2008

audio from Flash CS3 Video overlapping stopping the FLVPlayback instance (which has an instance name of theVideo) when another button is clicked! How do I stop flv playback when user clicks a navigation button ...

I'm using the attached code to go from the main stage to one subset of .swf files (loaded movies) and I apparently have no problems with overlapping. Hell, the files even seem to unload themselves correctly. Then, when I go to my second subset of .swf files (with the exact same AS3 structure), which has a Flash Video file (made by the FLV Playback component), I get into an overlapping problem associated with the audio.How can I stop, cancel, or unload the audio when the file is clicked away from (the user selects another button on the mainstage)?

View 27 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

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

IDE :: Progress Bar For An Audio Player Streaming Audio From Wowza Server?

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

Audio Keeps Getting Stuck When Streaming Two Audio Feeds At Once

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

Actionscript 3 :: Low-latency Audio Streaming In Flash?

Mar 6, 2012

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]....

View 1 Replies

Audio Formats Supported For Streaming In Flash?

Oct 16, 2007

Is it true that the only file format that flash will stream from an external source is MP3? I know you can import other file formats into your movie etc... but thats not something that I want to get into.

View 1 Replies

ActionScript 3.0 :: Streaming Flash Audio To Ffmpeg

Jan 19, 2011

I want to capture audio from the mic and stream it to ffmpeg which takes it to RTP and to the end client. I wanted to know how do I stream audio from flash to ffmpeg? Is it possible? Do i use netstream and will it work when connecting to ffmpeg?

View 3 Replies

ActionScript 3.0 :: Overlapping Sounds With SWFs With Embedded Audio?

Aug 11, 2010

I am using an xml based slide navigation shell that uses next and back buttons to page through content.

If I use SWFs with embedded audio (which I need to do sometimes) the audio will overlap after I leave the slide, SoundMixer.stopAll() is not doing the trick. I think removeChild may be the direction I need, but I'm not sure how to implement so far.

View 3 Replies

ActionScript 3.0 :: Streaming Live Audio Without Flash Media Server?

Mar 18, 2010

I have an mp3 player, that I would like to add live streams to.
 
here is an example url of what I'd like to stream. [URL]
 
is there a way to do that in flash AS3?

View 3 Replies

Flash :: Playing Video From A Streaming Server

Aug 8, 2009

I've been trying to insert a video in a flash project that is hosted on a flash media server. I put the address wich by the way is [URL] and it doesn't work, I'm pretty sure that the address is right, am I misssing something?

View 2 Replies

Flash - Locally Cache Audio When Streaming With Sound.load() In Adobe AIR?

Sep 30, 2010

I'm building a mobile MP3 player with AIR, which streams audio using the Sound class's .load() function. I'd like to cache this audio as it's downloaded, to the the user's SD card. Is this possible without having to download the file twice??

View 2 Replies

ActionScript 3.0 :: Detect When A Playing Audio File Has Reached The End (stops Playing)?

Aug 31, 2009

I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer

View 3 Replies

Actionscript 3 :: Open Audio File Format Supported For Streaming In Flash Player

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

Flash :: Starting An Adobe AIR Application Multiple Times?

Feb 7, 2010

Adobe air runtime prevents more than one instance of an air application to be started at the same time. Is it safe to circumvent this restriction by arbitrarily changing the publisher ID? Does anyone know if Adobe plans to allow multiple concurrent instances in Air 2.0?

View 2 Replies

Actionscript 3 :: Audio Not Playing In Flash

Oct 22, 2010

I've been trying to play an external sound file in Flash and failing miserably.[code]...

The problem with this code is, I can only run it while it's on a live server (the link is obtained from a MySQL database via XML), so I can't tell if any error when it's being run. Then again, I can't see how the above code can lead to any problems.

View 1 Replies

Flash :: AIR 2.7 For IOS Playing Audio In The Background?

Jun 23, 2011

Update: With the latest Adobe AIR 3 Beta, Adobe added this functionality to their SDK.

http:[url]....iOS Background Audio Playback Support — Developers can now write multitasking iOS applications that can play audio while in the background, including music or voice chat from a conferencing application.

With the new release of AIR SDK 2.7 and Flash Builder 4.5.1 you can "Take advantage of new features in iOS 4 like multitasking..." (from http:[url].....Searching a bit I found out that this "multitasking" does not include true background process, like playing audio while the app is in the background.I know this is new but does someone knows if it is possible to keep audio playing in the background?

View 3 Replies

Flash :: Duplicate Loader's Content Multiple Times Via AddChild()?

Aug 18, 2011

I'm dynamically loading JPG file using Loader class. Everything works except if I want to tile the image few more times using addChild(loader.content) it just doesn't work. It always removes previous instance and leaves only the last one. I've tried everything but with no luck. Here's my code:

var loaderContext:LoaderContext = new LoaderContext(true);
var imageLoader:Loader = new Loader();
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaderDone);

[Code]....

View 2 Replies

Javascript :: Streaming Radio Station Audio In Flex/flash Builder 4.6 Multi-platform Mobile App

Mar 2, 2012

<?xml version="1.0" encoding="utf-8"?>
import flash.display.Sprite;
import flash.events.Event;

[Code].....

View 1 Replies

Flash :: Unloading Swf's With Embeded Flv's, Audio Keeps Playing?

Nov 13, 2010

so I have 3 swf's that im loading with buttons into the main swf. The thing is that these 3 external swf's have embeded flv's. when switching between the swf's with the buttons, im using vid1loader.unload();the only thing is that while the video switched to the other video like it should, the audio keeps running on any number of videos(swf's) that are loaded. My question is how do you stop the audio when using simple Loader and URLRequest to load the swf's?

View 1 Replies

ActionScript 3.0 :: Flash Displaying Externally Loaded Image Multiple Times

Mar 6, 2012

What I'm trying to do is quite simple. Load an image externally, then display it (addChild it) multiple times, in different places, without loading it again and again. (Granted, caching means the image won't be downloaded multiple times, but I'd like to avoid those annoying disk accesses as well.) I know that flash doesn't actually support this. A while ago I was trying this same thing, I dug around for hours, and there was no real solution.

View 2 Replies

Flash :: Player Keeps Playing Audio After Leave Page?

May 31, 2009

I deployed a website a couple of days ago which is written entirely in Flash.  On one of the pages there is a video which plays in the Flash Player.  I have noticed that when I leave the video playing and select a button to take me to another page, the other page comes up but the audio keeps playing from the prior page. Worse yet, if I go back to the page with the Flash Player, it now relaods again and there are two audio tracks.  Can someone tell me how this code is solved?  There must be some Actionscript 3.0, which I'm using, which kills the player whenever you enter a different page? 

View 1 Replies

Playing Local Audio Files With Flash And/or HTML5

Jul 9, 2011

I realize it is possible to play audio with Flash and HTML5 by passing a URL.

However, is it possible to get a reference to an audio file using a file browser (either with HTML5 or Flash), to then play this local file, again using either Flash or HTML5?

Of course, this should happen without the interference of a server. Since the file is already on the local system, it does not make sense to route it through a server only to receive the same file again.

View 1 Replies

Flash :: Calling Geonames.org Service Multiple Times Adding Each Result To An ArrayCollection

Nov 14, 2011

I am using a service that returns JSON (geonames.org) and I'm putting the result in an array and dumping it to a datagrid. Now that works fine for one city like this [URL].. However, I want to call this service multiple times with different city names, so I created an XML list ad figured I would iterate over the city list and get the results.

My question is how do I do this such that 1) all the lists are combined into one arraycollection and 2) this seems like I will have to chain the calls and wait for results which may or may not come back, so I thought I would ask the group about the best practice, and or resources to read and examples to build from.

View 1 Replies

Professional :: Get Flash To Stop Playing Audio When Previewing While Working?

Nov 25, 2011

For a class project I have to make kinetic typography and so I need text to go along with some audio from a movie (in Flash). Every time I press enter to preview what I've done and what I have to do next, the audio starts and doesn't stop till it's done and this is a little over a minute long, and it's really annoying. If I don't start from the first keyframe, I can't even hear the audio, it doesn't play if I play from the middle. How do I press enter to play and have it stop when I press enter again? I can load the swf by CTRL+ENTER but then I can't see what frame I'm on and what frame I want. :|

View 4 Replies

Actionscript 3 :: Adobe Flash : Playing Speex Audio From A File

Aug 5, 2010

I have tried really hard to find an example showing how to play speex encoded audio in flash. I tried the following code -

var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);

[Code]....

I tested the above code with .flv videos and AAC encoded audio files and it works just fine. But when I try stream_ns.play("sample.spx") I get a stream not found exception.

Am I using the wrong container (.spx) for speex audio. Is playing speex audio from a file supported?

View 4 Replies

Actionscript 3 :: Make Flash Button Disappear When Playing Audio

Aug 12, 2011

I have a flash document (Actionscript-3) with play button on top of a image, and an audio is played when the button is clicked. How do I make the play button disappear when it is clicked and audio is playing. The button should reappear after the audio has finished playing.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved