Flash :: Multiple Audio To NetStream?

Sep 9, 2011

I am working on a video conferance projectthere will be a lecturer and an interpreter.interpreter will write the translated text simultaneously.what I am trying to is add vocal translation but I also want to keep the original audio is it possible to attach multiple audio to netStream or do I have to create another netStream for 2nd audio??

View 1 Replies


Similar Posts:


Flash - Modify Sound In Real-time With SampleDataEvent For Audio Within NetStream?

Jan 27, 2011

I'm streaming audio using NetConnection and NetStream. I know that you can modify sample data in real-time with the Sound object, however I cannot find the SampleDataEvent for audio playing with the NetStream object. Is there a way to pass the audio from the NetStream object to a Sound object and modify the sound at that object instead?

View 2 Replies

Flash :: Connect To Multiple Netstream In The Same Video Object?

Oct 16, 2011

Is it possible to have a same Video object ( and perhaps StageVideo) connected to multiple NetStream's objects? It's videoconferencing app, in which all members can speak ( So multiple audio sources) but should not hear themselves (that's why I don't join them in a single stream).

That's what I tried:

ns = new NetStream(nc);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.client = this;
ns.play(streamName1);
ns2 = new NetStream(nc);

[Code]...

View 1 Replies

ActionScript 2.0 :: Audio Delay Without Netstream?

Mar 17, 2011

I have been working on a voice-chat system in AS 2.0 using FMS 3.5 for a while now. I have been experiencing a lot of latency. Usually there's no latency to begin with but it grows over time to several seconds. Up until this point, I have assumed that this latency is due to a slow server/low bandwidth since I have tinkered around with all of the buffer settings (that I know about) already.However, today I decided to see what would happen if I just attached the audio of the microphone to _root. In other words, the script does not connect to FMS and there's no streaming going on at all. All I have is essentially:

myMic = Microphone.get();
_root.attachAudio(myMic);

However, even in this case I get a delay! In fact the same sort of thing happens: there's no delay to begin with, but it grows to approximately 1.5 seconds over time (very quickly in fact). In order to track down where it could be coming from, I decided to add a microphone activity clip that showed the activity of the mic. Perhaps not so surprisingly this activity clip was perfectly in sync with the actual activity of the mic (i.e. no delay). So it seems like there's a delay due to the attachAudio command.

View 4 Replies

ActionScript 3.0 :: Displaying Audio Amplitude For A NetStream?

Sep 5, 2008

instead of the audio coming from an mp3 file via aURLRequest, I want the audio to come from a NetStream originatingfrom a Flash Media Server.The ultimate goal is to have multiple netstreams coming ineach with their own audio amplitude bar being displayed.This is being written in Flex 3 using Actionscript 3."To control the audio associated with a video file, you canuse the DisplayObjectContainer.addChild() method to route the audioto an object on the display list; you can then create a Soundobject to control some aspects of the audio. For more information,see the DisplayObjectContainer.addChild() method."but theDisplayObjectContainer.addChild() method doesn'tprovide any further information and I cannot figure out how to usean AS3 Sound or SoundChannel object with a DisplayObjectContaineror a NetStream.

View 5 Replies

Flex :: Programmatically Stream Audio With NetStream?

Dec 31, 2009

In Flex you can stream microphone audio to an FMS/Red5 server using NetStream.attachAudio, which requires a Microphone object. Is it possible to stream audio through the NetStream from somewhere other than a Microphone? For example, from a file/embedded resource?

The reason I'm asking is that I'd like to be able to run automated tests that don't require using an actual microphone.

View 1 Replies

ActionScript 2.0 :: Attach Video And Audio From One Netstream To Another?

Oct 21, 2007

just wondering if it is possible to play an FLV and attach the video from that netstream to another and publish it to FM2.

is there a a way to attach video and audio from one netstream to another?
i have tried everything so far that i know of. when i think its attaching and publish it, i see nothing. publshing my cam and mic work flawlessly.

here's my code:

Quote:

nec = new NetConnection();
nec.connect(null);
nes = new NetStream(nec);
nes.play("http://testbox/transformers.flv");

[Code]....

View 1 Replies

ActionScript 3.0 :: Netstream Audio Plays While Video Loading?

Jan 14, 2009

how to get flv's to load up dynamically using xml - it all works well apart from this one problem that i have.

when the thumbnail for the flv is clicked the preloader appears and the flv starts to load - but for some reason the audio begins to play almost immediately - then when the flv actually loads then the audio plays again whilst the initial (unwanted) audio carries on playing!

this is the script for the netstream:

[Code].....

View 1 Replies

ActionScript 3.0 :: Detecting Audio In Netstream Object / Video

Jan 20, 2012

The task seems easy: I am loading a video via a netsream object (could be FLV or an h264 mp4) and I would need to check if this video has audio available (otherwhise sound control objects should be disabled or become hidden).

View 3 Replies

ActionScript 3.0 :: Single Media Player - NetStream With Audio / Video

Mar 27, 2009

I have a project I'm working where I need a single media player to be able to play either audio or video depending on what gets passed (flv or m4a).

PHP Code:
ExternalInterface.addCallback("playMedia", playMedia);
// The way a/v gets changed is from a dropdown menu in the HTMLvar av:String;
/ The param that gets passed to my playMedia function which will determine if its audio or video
var nc:NetConnection = new NetConnection();nc.connect(null);var ns:NetStream = new NetStream(nc);ns.client(this);
[Code] .....

How do I add the audio to the container in such a way that it 'replaces' the video that's in the container? I may want to add a static image as a visual representation.*/ 
ns.play(av);
}}

View 1 Replies

ActionScript 3.0 :: Flash Number Of Video - NetStream And NetConnection Instances Multiple Videos Would Require?

Dec 30, 2010

How many instances of Video, NetStream and NetConnection would be needed for multiple videos? Not sure that's the right question but essentially here's the objective:

Currently, I'm working on an interactive product tour, parts of which are to consist of short video clips, each covering a feature. While only one such clip will be playing at any given time, I'd like put them all at the application's fingertips as part of the initial preloading process before launching into it. The idea is to provide a seamless instant-play user experience without hitting the breaks before individual segments.

[Code]....

View 2 Replies

ActionScript 3.0 :: Stream AAC Audio File Stored Locally Using NetStream Class?

Jan 25, 2010

I would like use NetStream class to stream AAC audio file stored locally on server (because i can't use Sound class, AAC not compatible) How can i do this ? (without flash media server)
 
I have tried using http protocol, no errors occured, but i receive no audio data.

View 13 Replies

Flash :: NetStream.Buffer.Full Not Fired After Call To NetStream.pause?

Jul 6, 2011

I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:

_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....

View 1 Replies

Multiple Flash Audio Players Embeded In Tooltip?

May 17, 2009

I am trying to embed audio players in a drop-down content tooltip. I will eventually have lots of these on a page.My problem is this:When I close the div the sound continues to playI can also make them play at the same time.I would like them to autostart when you open the div, but when I do that they both start at once before you've even activated the drop-down content. I would rather not do the whole site in flash.

View 4 Replies

Flash :: Multiple Audio Files One Sound Object?

Nov 11, 2010

Is it possible to play multiple sound files using a single sound object? (I've looked into this back when I was using Flash CS3, but I want to know if anything has changed.)

(I'm trying to make a playlist which will play music in the background of my SWF movie and then have a frame where users can change the song and the volume.)

View 2 Replies

ActionScript 3.0 :: Visualizing Multiple Audio Streams Within Flash

Feb 16, 2011

I'm currently working on a project which involves importing audio streams and visualising them within Flash. At the moment I have two files, one which can import all of the streams at once, continuously and another which visualises just one of the streams using an example animation I found which will be replaced at a later date. My problem is connecting the array to the visualisation so that all of the streams interact with it and affect the animation. Below is the code I have for the multiple streams with no visualisation file.

Code:
var stream_arr:Array = new Array(
"mtl2.liveatc.net/kbur",
"bos.liveatc.net/6b6",
"m1.liveatc.net/kbwi_belay",
"aus.liveatc.net/kccr",
"mso.liveatc.net/zob_cle",
[Code] .....
Note that I have removed the "http" from all stream addresses due to my low post count.

And here is the code I currently have for the file which can visualise only one stream, rather than the multiple I would like.
Code:
stop();
function goBack(evt):void {
gotoAndStop(1);
this.removeEventListener(Event.ENTER_FRAME,spectrum);
} var snd:Sound = new Sound();
[Code] .....

View 1 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

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

ActionScript 3.0 :: Multiple Instances Of Same FLV Using Netstream?

Aug 4, 2009

As you can see, after all the items in the Carousel have loaded, a function called fadeItemIn() is called which displays each of them one by one. I am looking to call a small "swoosh" particle effect flv I made in AfterEffects so that as each item tweens in, it instead looks like it is sparkling in from the left.

The problem I have is that using the code below, the swoosh.flv file tends to freeze before it finishes. In this case the swooshIn() function is called three times because there are three items being loaded into the Carousel.

I am wondering why the FLV freezes when multiple instances of it are loaded through AS3 using NetStream.

Code:

private function fadeItemIn(item:CarouselItem):void {
trace("fadeItemIn");
this.tweens.push(new Tween(item, "altitude", Regular.easeOut, item.altitude, 2.5, 0.50, true));

[Code].....

View 1 Replies

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

Media Server :: Multiple NetStream Creation?

Mar 23, 2010

I have an FMIS 3.5 app where I am attempting to publish multiple streams to an edge server.I have found that if I loop through my list of streams and attempt to publish to the edge server (i.e. as fast as possible), the publishing will fail  They succeed if I have some delay between the publish calls.

View 4 Replies

Actionscript 3.0 :: NetStream.Play.Start Fires Multiple Times

Jul 28, 2009

I'm working on a project using a MVC design pattern where flvs are played form a xml playlist. I noticed something strange in the Output window. For the first flv the NetStatusEvent NetStream.Play.Start fires once, the second one fires twice, the third one three times....

Here is the part of the code where I load the video :

Code: Select allpublic function loadVideo(url:String):void
{
_nextBtn.mouseEnabled = true;
_playHead.x = 0;

[Code].....

View 1 Replies

ActionScript 3.0 :: Main Swf Loading Multiple Swf's Containing Netstream Video Clips?

Sep 6, 2011

I have this Main swf that is supposed (via buttons) load external swf's. These external swf's play single videos with code that follows ie:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[Code]....

When this video clip has ended I want the main swf to be loaded again.

View 2 Replies

Actionscript :: Use NetStream.Publish To Publish AAC Audio

Jun 22, 2011

I'm using Flash to play a RTMP stream to a Wowza server.

I publish my microphone with
m_MicStream.publish ("mic_user1", "live");

Unfortunately, my receiving end only supports AAC audio. Is there a way to publish AAC audio with Flash?

Note : I tried the mp4:mic_user1, but it does not work. The stream negociation seems ok, but the received audio is garbage

View 1 Replies

ActionScript 3.0 :: Number Of Video / NetStream And NetConnection Instances Multiple Videos Would Require?

Dec 27, 2010

How many instances of Video, NetStream and NetConnection would be needed for multiple videos?Not sure that's the right question but essentially here's the objective:Currently, I'm working on an interactive product tour, parts of which are to consist of short video clips, each covering a feature. While only one such clip will be playing at any given time, I'd like put them all at the application's fingertips as part of the initial preloading process before launching into it. The idea is to provide a seamless instant-play user experience without hitting the breaks before individual segments.Honestly, I hate pre-caching crap into user's memory, especially when some of that content may be potentially ignored. However, given the target audience, it is reasonable to predict that all features will be explored most of the time, so it's a fair compromise to me. Besides, I went to great lengths to keep the mp4s' sizes to the minimum.Anyway, I'm guessing you don't really need more than one instance of the Video class but how many NetStreams and NetConnections do I you need, probably one of each per video, ha?

View 0 Replies

Html :: Flash - Play A Background Audio Across Multiple HTML Pages.?

Nov 17, 2010

Is there a solution to have the background audio/music play across multiple page on a website, WITHOUT restarting on every page load.The website currently uses a frameset, but I'm looking for an alternative.

View 2 Replies

ActionScript 3.0 :: Error On BitMapData.draw() After NetStream.pause() Then NetStream.seek()

Feb 25, 2010

I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.

I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.

I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.

Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.

View 5 Replies

ActionScript 3.0 :: Prevent Multiple Audio Stream?

Dec 20, 2008

I used source code I found for a sound stream visualization (By Peter Dehaan). I added a play and stop button, but when a user clicks on play more then once it loads the stream multiple times. I don't quite know what I should do to prevent this.

View 3 Replies

Audio Played From Timeline In Multiple Scenes?

Sep 14, 2009

I just started using CS4. I have one problem with audio played from timeline in multiple scenes. The first 2 sceense work fine but the 3rd one has problem. The audio would pick up the last brief second of the audio before the current one and then plays the current audio. The pick up includes the last second of the last audio of the previous scene or the clip from the current scene.

If I copy all the frames in the problem scene into a new file, audio plays perfectly.
 
Have anyone seen something like this and what is the cure?

View 4 Replies

Professional :: Muting Audio On Multiple Embedded MCs?

Jul 19, 2011

I have a file with one main mc called "clip" that contains 9 different embedded audio tracks (all inside their own separate mc) on the first keyframe. They span the entire length of the mc - 10 frames in this case. Essentially what this does is creates a full song with 9 separate tracks that I want to mute (and unmute) when I arrive at a specific keyframe.I am using a slider (called "aSlider") on the main timeline to navigate between the keyframes.Everything starts out muted and as we progress, tracks are unmuted and the song starts to build. It is working great right now in that direction. However, if I move the slider backwards, it seems to be re-creating the audio clips so that I am overlaying more and more audio on top of each other.. which is quite the mess. Here's the AS for the slider.

aSlider.width = 324;
aSlider.move(309, 681);
addChild(aSlider);

[code].....

View 1 Replies







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