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
Similar Posts:
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
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
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
Jun 18, 2009
I am doing video.attachNetstream(ns) in the videoContainer's parent movieclip. How do I access the netstream object of the video inside the container. Basically, I want something like this : video.getNetstream(). Does any equivalent exist?
View 0 Replies
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
Feb 16, 2009
I have a video object inside a flash file. I am using NetStream to attach a video to the video object. How can I add cue points to the video ? Should I add a cue point to the video object or to the NetStream ? (I am using Flash 8.)
View 3 Replies
Jan 11, 2010
I have created a FLV video player using the AS3 flash.media.Video object (not the FLV playback component) and I am trying to listen for meta events and Cue Points embedded in the FLV video but I am not receiving any when I trace the movie. The cue points are not being created dynamically, they are in the FLV video.
Video embed code:
// Initialize net stream
nc = new NetConnection();
nc.connect (null); // Not using a media server.
[Code]....
Is there anything I am missing have wrong to capture events from my net stream?
View 2 Replies
Oct 27, 2010
I'm trying to attach a single NetStream Object to two separate Video objects instead of pulling redundant streams from the server. The expected behavior would be for both Video's to display the same content. However, it seems that the last video I attach the NetStream to is the only Video that will display the content.Has anyone else run into this? I'd rather not go to the inelegant steps of using BitmapData to clone pixels if I don't have to.
View 2 Replies
Apr 1, 2006
I'm having a problem loading an FLV file via the NetStream object.
The following is on frame 1 of my root timeline:
Code:
loadMovieClip();
function loadMovieClip():Void {
// Create new NetConnection object
[Code]....
The code is EXACTLY the same, except it isn't within a function, yet the latter example plays the video correctly, and the first example doesn't.
View 2 Replies
Nov 22, 2011
I have a Net Stream object that I am using to stream video from an Amazon Flash Media Streaming service.The video makes a connection and plays fine but randomly it seems to just freeze and the only way to get it to work again is to re-establish the connection. I have tried to put other videos in that amazon bucket as well and they seem to play fine. this happens when it is in .FLV form and .mp4 format.
I have set the buffer time to be 5 seconds and i watch the output of the buffer to see the % of full it is. when the problem occurs the buffer 5 goes from 100 to 0 and then it throws a Buffer fail error (i'm using OVP framework).I have come to the conclusion that it is either a video encoding problem or perhaps there is a firewall issue that blocks the data from getting through.
View 1 Replies
Jun 17, 2009
I'm brininging in external .flv's into my swf using the NetStream method, I can't seem to detect when the flv has finished playing so I can reset the buttons in my video playlist.
View 11 Replies
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
Jan 7, 2010
I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:
var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);
[code]........
View 0 Replies
Mar 20, 2012
In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws
[Code]...
View 1 Replies
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
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
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
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
Mar 1, 2011
In an ideal world, I could do this through a browser in real-time and send a notification that would include the DOM information needed to remove the ad. In this type of model, I could theoretically then use all clients (web visitors) as test subjects. I believe that this might be far fetched, and thus will need to rely on a smaller subset of users. I'm looking for any way to do this. I have even thought about using speakers and a microphone to detect when a sound is playing, and then some how capture a screenshot and the DOM information.
View 1 Replies
Jul 18, 2011
The stop button plays as expected. The play/pause button plays as expected. The issue is when you press pause which will cause the play button to appear, then press stop. the video automatically plays and it shouldn't. I have bolded the control button script for convenience.
[Code]...
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
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
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
Sep 14, 2010
Ok. So heres what I am trying to do. I want one movie clip to follow another one that I move around with actions on the main timeline.The problem is that the follower clip is linked to a class file and I cannot find a way to find the players position.
[Code]...
View 8 Replies
Jun 2, 2010
I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.
View 3 Replies
Nov 3, 2009
how to catch the end of FLV playback. I have an SWF which is loading a number of FLVs dynamically, based on user interaction with a main menu. I am NOT using the FLVPlayback Component. I wanted to create my own buttons and interface, so I am using the basic Video Symbol that is added directly from the library.
I have already read about using listeners to catch the complete property, but that seems specific to using the FLV Playback component. I have thought about using cue points, but I didn't create the FLVs, and I don't have access to them, to edit them. I have also tried comparing the duration of the current FLV to the time played, but that breaks when a new FLV is being loaded.
View 4 Replies
Apr 5, 2012
I'm making a video player in AS3 and was wondering how to find out how much of the video is currently cached/buffered. I'm not sure what the correct terminology is, so I haven't been able to find it in the documentation.
NetStream.time gives me the current location of the video, so based on that I can display a progressbar.
Underneath the progressbar, I want to display how much of the video has been loaded already. How do I find this value?
View 1 Replies
Jun 23, 2010
It's a simple video player that opens a netStream which setups a client callback object onMetaData.The size is off when video is scaled.Example 1:
ActionScript Code:
trace("width: " + data.width, "height: " + data.height);
if(data.height > 240)
[code].....
View 0 Replies
Aug 27, 2007
Using netstream to load in a video and have the buffer to basically load the entire video before it starts playing. So the video doesn't begin to play until the buffer is full but while the buffer is filling up, the cue points are being read and triggering actions.
View 4 Replies