ActionScript 1/2 :: Non Streaming Audio Recording On Local File
Jun 18, 2006
I'm a pretty new in a flash programming. All I need is to capture the microphone and to record a voice on the local file. I know how can I do that using a stream to the Flash Media Server, but the storing local file seems to me a hard job.
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?
I have an assignment to create an mp3/wav file using flash. This player is expected to record voice from a speech mic and also be controlled by a foot pedal. How to record voice data and convert it into .mp3 file but haven't found anything yet.
Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:
1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.
2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.
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.
I would like to play AAC audio format file from local disk. I got example to play through netstreaming but I need to play it from local disk. I got an example to play mp3 file from local disk using Sound class.URL...
Is there a way to make external streaming audio sound file "mp3" loop. my understanding is that streaming audio won't loop, only works for attached sounds...
var my_sound:Sound = new Sound(); my_sound.loadSound("jazz.mp3", true); my_sound.start.(0, 99)
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?
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
How would I go about this? any one know of any good tutorials of how to stream sounds from a recording? any special type of server i would HAVE to use?
the webcam feed must be local, and not local sent to server... this is to maintain image quality, and supress high network traffic of multiple users of one flash movie.
I am currently an English teacher and I am familiar with programming in DOT.Net platform. I am completely new to Flash. I turned to this platform because I thought that would be the best way to prepare interactive computer based exams in English. My real problem is, I don't have the slightest idea as to how I can create a Flash application which records the sound through the microphone and saves it on the local disk.
I am trying to figure out how to make a flash Application which can allow users to Record Audio from their Microphone. The recording needs to then be uploaded to a web server.I think the best way to do it would be to store the .flv or .mp3 file locally, and then submit the file to the server after the recording is completed.I have read in some places that this is impossible to do, however websites such as livevideo.com allow this too be done with Video as well, so I think Audio should be simple if it can be done with video.
I have got success in making live streaming with telecast at different pc. The application which I have made has the features: I' am publishing live stream using the connection like: nc.connection("rtmp://10.8.4.56:1935/live"); publishing the stream like: ns.publish("mycamera","live"); now, on other pc I am running the file for telecast using the following code: making connection with server: nc.connection("rtmp://10.8.4.56:1935/live"); playing the live stream: ns.play("mycamera"); vid.attachNetStream(ns);
Now, that was for the live stream for publish and view. But I want little more than that.I want to record the live stream at the publish end simultaneously. I have tried the code at publish side like: nc.connection("rtmp://10.8.4.56:1935/live"); ns.publish("mycamera","live"); ns.publish("mycamera","record"); But it is giving me error: NetStream.Record.NoAccess when I am changing the connection point to tmp://10.8.4.56:1935/dvr", t is giving me the result but then effecting the live telecast.
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'm building a website that is supposed to record and upload audio to a server and also be able to play said audio. Currently I have a BB app that does the same, I record the audio in .amr format, send the bytes over to the server and convert it to an .mp3 file with ffmpeg. How can I manage to record audio and save it in .mp3 format? With Flash, HTML or any other means. My website is being built with PHP under the CakePHP framework.
I'm very new to FMS and I have been experimenting around with it as a part of my job. I already have the encoder, FMS, and my AIR application all talking, so that portion is going well.The problem that I want to tackle next though is to have the FMS server record the live stream to it's hard drive. All of the guides that I've found talk about how to make a DVR stream, but that's not what I want. I want to be able to have the live stream, and then separately I would like to have it recorded.
I'm currently working on a webcam recorder to record high quality video. I had the recorder working before, but the video quality was quite poor. Instead I'm trying to use a client side buffer and then upload the buffer after recording has stopped. I thought after I unattached the video and audio from the NetStream that either a NetStream.Buffer.Empty or NetStream.Record.Stop event would be sent when the buffer was finished uploading.
What is actually happening after I start recording is two NetStream.Record.Stop events are being sent in a row, so recording never really happens. Also, on the server side I'm trying to save a user name and password into a variable, but I'm not sure how to go about doing that since the application script is just a bunch of callback functions.
I want my users to record audio/video and post that to other users.
Is it possible to record video through Flash's and receive encoded video on server side without any further processing (i.e. just saving the stream to a file)? I did some Google search and found that it's possible with new microphone API [URL] Did anyone tried that already? How easy is to use Red5 server for recording? How can i get the recorded video/audio file(s) from it? DO i've to write some logic for this?
I am having a problem trying to record internal sounds made from the flash file.I can record sound from the microphone no problem,What i want is to be able to record the sounds from the flash file without isung the microphone etc.
We use a Flash component to allow a user on our web site to record from a Webcam on to our own Flash Media Server. The problem we are having is that the video in a 30 second FLV freezes at the 7th second but the audio continues. The video unfreezes after a couple of seconds but never catches up with the audio. At the very end there's a "Fast-forwarding" of video for the last few seconds so that at literally the last moment, everything's in sync. This happens for almost all of our recordings. Has anyone experienced this type of behavior?
I'm currently able to record audio and video (from a webcam) to a Flash Media Server. However, in some cases users have a webcam with no builtin microphone. In that case the flash client uses the default microphone with 'Microphone.getMicrophone();' and possibly selects the micrphone of the PC.
A delay between audio and video is caused in cases with a separated webcam and microphone. There isn't a lot of delay on an internal network (e.g. LAN) however, there is a very large delay between audio and video on an external network (e.g. WAN).
This isn't another one of those "How can I record audio in the browser?" questions... I know that the HTML5 Stream API is around the corner and Flash can already access the user's microphone and camera. I'm simply wondering, as a Javascript developer with little knowledge of Flash, if anyone has developed a JS library that hooks into Flash's device capabilities for recording but sends the results back to javascript (presumably using ExternalInterface).
In other words... libraries like SoundManager2 utilize a Flash fallback for audio playback, but they don't seem to allow for recording. Has anyone written a JS library that uses an invisible Flash movie to allow audio recording?
I would like to record sound that is currently played on the local computer (i.e. form winamp or youtube). I saw some codes that use the microphone, but this is undesired. The client machine may not have a microphone hardware or may play the sound on headphones. I think this must be possible but may be not a common task so that's
I am developing (well, trying to anyway) a service where a member can record themselves on our website using their webcam. We need to be able to record that entire webcam session they had on our website for judges to determine whether they've cheated or not (it's a competition-based service). But, I can find no documentation, articles or even a sign that this is possible (other than knowing I've seen it in use many times). And I'm not sure what kind of hosting would be most appropriate for this type of service, and what steps would be required for me to get started on this.
I'm trying to record a stream from a webcam using FMS4 developer edition. The streams are recording on a linux box in .flv files. These files though have problems.
1 - The video quality is terrible. Fuzzy/blocky. Any kind of motion looks awful. Is there any way to improve this?
2 - The sound jumps/skips and goes out of time with the video.
As it is now this is useless. I am trying to make a system where a user records a short video from the camera and then I upload it to YouTube from my server. If you use Youtube's webcam page the video quality is quite acceptable and the audio is obviously in sync too, so they must know something I don't. [URL]..