Javascript :: Access The Microphone Without Flash?
Oct 17, 2011Is there a possible way to access the computer microphone from a web document (open in a browser) without have to go through Adobe Flash ?
View 1 RepliesIs there a possible way to access the computer microphone from a web document (open in a browser) without have to go through Adobe Flash ?
View 1 RepliesHow do i disable the flash prompt that comes for microphone and camera access.
View 2 RepliesI am developing an application running in Flash Player. The applicatiosn requestes access to the camera and/or microphone available on user computer.Is there a way in the application I prevent users from seeing this question? i.e. without having user to change his/her Adobe Flash Player setting?
View 1 Repliesway to get access to sound samples coming from a microphone ?
So far I have not found such a function. In the meantime I am trying to overload alsa functions e.g: snd_pcm_readi to see if I can get the samples before flash treats them, but no success so far.
As a matter of fact, since I have no idea how both sound and microphone class work internally, I don't know exactly which alsa functions they call.
Is there a way to detect the privacy dialog box for allowing/denying microphone access has been selected/closed (so sound recording can be started)?
View 1 RepliesI'm setting up an application where I need to record users' voice every so often during the course of the users' interaction with the application. Recording is fine, and the quality is fine, but now my issue is understandng how Flash handles the microphone when it gets attached to a stream for publishing.Basically, the problem is that when I "publish" my stream, the voice gets cut off (clipped) at the beginning. So, I initially thought this may have to do with buffer settings on the FMS server side, but it wasn't. Then I investigated client side stuff. For some reason, my internal mic .activityLevel property is -1 even though I have called Microphone.getMicrophone(). According to Flash's documentation, this shouldn't be the case:
activityLevel propertyactivityLevel:Number [read-only]Language Version : ActionScript 3.0Player Version : Flash Player 9The amount of sound the microphone is detecting. Values range from 0 (no sound is detected) to 100 (very loud sound is detected). The value of this property can help you determine a good value to pass to the Microphone.setSilenceLevel() method.If the microphone is available but is not yet being used because Microphone.getMicrophone() has not been called, this property is set to -1.I am using a timer to investigate the microphone .activityLevel property every 50 milliseconds:
package
{
import fl.controls.Button;
import fl.controls.TextInput;[code].....
I have the following class, I want to do what is in the comments.I know I can do it with conditionals.I'd like to know if there is a way of doing that dinamicaly.This code is in AS3, but I know maybe this is related to javascript because AS3 is based on ECMAScript
public class ClientStatus
{
public static const INVITED:int = 0;[code].....
I am setting up a Flash based MP3 player control (The standalone version of WordPress Standalone Player). I have a situation of multiple windows with players open. One window opens the other, so I have the window.opener property available. When the child window is opened, I want to programmatically mute the audio player in the parent window.
This works in Firefox, but not in IE 7 and 8. I know little about Flash/Javascript interaction and I'm stuck. I am not getting any error messages. To do this, the player SWF object has a setVolume() and close() function. These functions are not defined anywhere in Javascript so I guess that those are provided by the Flash object. This is supported by the following lines I found in the Flash source code of the player:
[Code]...
Can i use javascript to check whether the video is running or stopped? I have to loop the video but putting loop='true' in the embed doesnt work out well. Is there a javascript method to check if the video is running or stopped?
View 1 RepliesI have an html page with a flash movie embded in it, that flash movie contains a button. I want to pass the id of an element on the containing html page to the flash movie so that when the button is clicked, I get the text of that element in flash (i.e. innerHTML).
So, my question is basically two questions:
How to pass something from HTML/Javascript to flash? How to access an element on the containing html page from flash? (What ActionScript code is needed to do that?)
I am trying to access a javascript function through flash player and the code is working for twitter. But in case of facebook, when i post the swf file and try to access the code, the flash player doesn't work. I think there is a problem of script access. But i have set the code:allow script access to alwaysin the php file where i embedd the flash player. But in case of facebook i am unable to embedd my php file. So, is there any way by which i can set allow script access to my swf file in facebook?
View 1 RepliesI have to call an ActionScript method via Javascript, but I have a problem accessing the flash object itself. I embed the flash file via the help of swfobject.
Previously, when I use the static publishing approach, I could easily get the flash object by calling these methods:
swfobject.registerObject("flash_object", "9", "expressInstall.swf");
var flash_object = swfobject.getObjectById("flash_object");
For some technical reasons, now I have to use the dynamic publishing approach (using swfobject.embedSWF). But, as mentioned in the documentation, the method getObjectById can only be used if you use static publishing approach.
Now, how can I access the flash object?
I had a somewhat weird setup for a site here, which goes as follows: Server A holds a SWF Server B holds a HTML document with the SWF Embedded, along with SwfAddress.js I can't seem to get any Flash-to-javascript to work here through External Interface calls. SwfAddress fails and I see this error in Firebugs Console: "Error calling method on NPObject!" This also occurs with another JS function I'm trying to call with the MouseWheel. I've set up my crossdomains and deployed all Security.allowDomain("")'s where applicable. Has anyone embedded an external SWF and had issues with AS-JS communication before??
View 1 RepliesI would like to be able to access all the components of say a Flash image gallery on someone else's site. I want to be able to find the images, image coordinates, action script code, audio files, video, etc. I do not want to manipulate these elements, I just want to view them and their related information.
View 2 RepliesI have the need to change a variable in a child Flash file.
The setup is a parent Flash file, that has called a child Flash, and placed it in a movieClip.
I can send a variable using Javascript to the parent Flash file, but not directly to the child Flash file. Is there a way that I can access the child Flash file directly with Javascript?
Or do I need to send the variable to the parent Flash file, and then have the parent send the variable to the child Flash file? Is there a sort of dot notation that I can use with Javascript to get to the child Flash file without first accessing the parent, when the child is added to the parent using the loadClip function in flash?
I'd like to gain read only access to the following parameters of embedded Flash videos located on sites that I do not own through my own custom browser extension/add-on:
Time location of playback head (so I can display the current time in the browser extension via HTML5/JavaScript) Frames (so I can make capture them to an image file, save it and display image in browser extension) Original Dimensions in pixels (so I can display the original video dimensions via JS/HTML5 in browser extension)
Is this possible by using Javascript and HTML5 from a browser extension?
Would I have to use something like the SWFObject Javascript API [URL]
It appears that if one has a mic available, then one can add an event listener for the StatusEvent. However, this only tells you if the mic has been allowed or disallowed.
What I'd really like to do is detect if the static Microphone.names property changes. I would have expected this property to be bindable.
If I right click and select "settings" immediately after plugging in a mic, I can see that flash has updated their list of available microphones. However, there seems to be no way in code for me to receive the same update.
The docs say "Calling Microphone.names requires an extensive examination of the hardware, and it may take several seconds to build the array." So I think polling this every few seconds is not a feasible option.
In the following why is that the camera does not show up in the div.Is that am i doing anything wrong here
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="swfobject.js"></script>
[code]....
I am looking for advice how to set web pages where user can interact with it using microphone. The aim would be that user can say word and the word would be recorder and the file compared on server with another sound (word) and then the result (the searched word) would be displayed. It would be a spoken dictionary.
View 2 RepliesWe're trying to get microphone input in a Flash movie and the post it to the server so it can be saved in a file.
Currently, we're using PHP in the server, but I guess the key thing here is: How to post the audio to the server?
After a post is made, then I guess it'd be a matter of handling the encoding and saving to a file, which can be done with pretty much any server-side language.
exporting a bytearray to a wav or mp3 (or anything that runs!) from my flash code to my php page. I am using microphone recorder to record voice, i use a a url request to send my ByteArray to my PHP page.i send the bye array from flash like this:
var url = "http://localhost/wordswesay/uploads/testrec.php";
var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
var request:URLRequest = new URLRequest(url);
[code]....
at the server side (the sime file as the php script) i get the test.wav with about 200kb of size but i can not play it! media players says it can't play this file as the codec might not be supported.
In my project i need to get the data from the microphone and webcam to upload in the webserver. how to get the data from those devices
View 1 Repliesis it possible to access smartcard reader connected to a computer from a web browser running on the same machine, i.e. from an ActionScript, JavaScript or whatsoever script running therein? For example, I read something about the flash.external.ExternalInterface class in ActionScript. Can it be used for accessing a smartcard reader or is the Sandbox impenetrabl
View 4 RepliesI'm loading website by using htmlLoader.loadString(someHtml). There are included JS sources.Is there any chance to get access to functions which are inside this JS file?
I also set property placeLoadStringContentInApplicationSandbox to true.
I'm working on a project for my Flash class that seems to be above everyone's heads. What I'm trying to do is figure out how to take sound from a microphone, register the level/volume of that sound in flash. So if the level is 25 then a movieclip and a different sound is played back. Problem is I don't know what coding I can use to register a microphone and take whatever sound is put into the microphone and display a movieclip.
View 13 RepliesI'm trying to write a flash application which takes a Microphone stream and applies realtime effects and outputs this back to the speakers. I'm finding I'm having problems with stuttering when taking the output from the mic, copying this into a ByteArray amd then using a seperate
sound = new Sound();
sound.addEventListener(SampleDataEvent.SAMPLE_DATA, processSound);
sound.play();
to read from this ByteArray and play back the sound.I have noticed that the input from the mic's bytesAvailable changes, and also that the two events (the mic's SAMPLE_DATA and the sound's SAMPLE_DATA) aren't firing A B A B A B A B like would be needed but is more random.
Am I right in thinking that the mic.SAMPLE_DATA event fires at different intervals with different amounts of data and a working implementation would need to read the available data in and buffer the input so that the Sound SampleDataEvent would always have something to play back to avoid the stuffering?
We need send h264 from flash to Wowza and after to vlc by RTSP protocol. But if we send sound in Speex codec, we not listens sound. what it is possible to make?
View 1 RepliesI am trying to create a Flash application(more like a game) where a user can add sounds to a timeline and then play the resulting "song". That is not really hard to do, and the resulting track can be saved and played within my app, but the problem is that I would like to export the created track as a .wav(or .mp3). I know that recording from a microphone with MicRecorder is possible and then the record can be exported with WaveEncoder, but I didn't find a way to create a custom sound stream from multiple sounds and than export it. Is this possible?
View 1 RepliesIs it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?
View 1 Repliesbeen playing around with the video and microphone-in functions on flash. As far as playstation eye toy-style games are concerned was wondering if there was anyway of measuring motion in a video, or maybe colour in certain areas of the video.
View 1 Replies