HTML5 getUserMedia - Disable Microphone Feedback - html

Seems that this is a big problem and I couldnt find anything in the documentations, but how do I disable the microphone feebdack? I know there is an option to disable individual tracks, etc .. but nothing related to output.
Any ideas?
Thanks,

I just had this issue and this is how I got to disable the microphone feedback in my web app (my web app is recording the mic with Matt Diamond recorder js).
First I realized I had in my code something that was telling the app to produce the feedback :)
input.connect(audio_context.destination);
So I just commented this line ... but still got the feedback on my Jabra headset but no more feedback when I use external speakers (while still using the Jabra headset mic).
I then realized there was a setting in my Windows 8.1 control panel > sound > playback tab > properties for the Jabra device I use. The setting is called sidetone and once I got this setting to 0 I could record without any feedback with my headset.
You also need to make sure your microphone is not in "Listen to this device" mode.
Thanks

Do this:
try {
yourSteam.getTracks()[0].stop();
} catch (ex) {
// This fails in some older versions of chrome. Nothing we can do about it.
}
I got that code from https://github.com/saebekassebil/microphone-stream and it is the only way that works for me.

Related

AS3: Recording sound as they are output/played

I understand how to record microphone input in AS3 from this doc.
Is it possible to record sound exactly as they are being output/played?
The reason is I applied some sound transform (via the global SoundMixer) to sounds that are currently playing; and I also want to record this sound data while it is being played.
I just saw this question, to clarify, I am not trying to record just all sounds on the user's computer (which is not possible). My flash app has a Youtube player in it (via their AS3 API), and it's playing some sounds. I applied transforms using SoundMixer.soundTransform, and I want to record what's being played when the user is playing it.
Thanks in advance.
Just a passing suggestion.. on my desktop it seems ABLE to record sound into Flash from a different tab playing Youtube (HTML5).. I don't know how it's doing that!!
I allow microphone here.. (none actually plugged in, and speaker out has in-ear headphones)
http://code.tutsplus.com/tutorials/create-a-useful-audio-recorder-app-in-actionscript-3--active-5836
PS: Anyone trying this must reduce Windows volume since anything above 10-20% is distorted audio into the Flash app.
And this HTML5 youtube trailer was recorded fine into the Wav file produced by Flash app above
http://www.youtube.com/watch?v=MVt32qoyhi0
So after a quick search it seems my Realtek Audio is classed as a Full-Duplex soundcard and also within its own control panel I have an option called "Multi-streaming" which is enabled/ticked. I think Full-Duplex is enough to do this though. Try options within your soundcard's own settings software. Don't know about your end-users. Some hardware will do it, some wont, there is no all-round solution outside of AIR (which makes desktop apps out of your AS3 code).

Launch a phonecall with windowsPhone

I add a page Support in my WindowsPhone Application.
I would like when the user click on Support to launch a phone call.
Do you know how is it possible, i don't find related documentation on it.
[UPDATE]
I try to add this and display in a texblock. doesn't work.
On Android : making a phonecall using a browser application
[UPDATE]
I found http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025(v=vs.105).aspx and it works correctly enjoy :)
[Update]
It's a task action as send a mail http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025(v=vs.105).aspx this link is really good
Best regards,
Alexandre
One solution is to add a PhoneCallTask:
PhoneCallTask callTask = new PhoneCallTask();
callTask.PhoneNumber = "999999";
callTask.DisplayName = "Support";
callTask.Show();
Remember to enable ID_CAP_PHONEDIALER in your WMAppManifest.xml

How do you make an embedded flash player open the little window telling them to update it?

The flash player has a little window that can be opened (similar to flash->settings) telling the user to update the player if the movie loaded is for a more recent version. How can you instruct the player to do this? ITV have managed it with their catchup-tv player.
Context: I am allowing users to copy flash into their PowerPoint presentations and would like to tell them to update their flash player if necessary. I am not embedding a web page in the power point so no JS can be run for checking etc (because I know this is not necessary).
Thanks in advance
For getting the current version of flash:
var version:String = Capabilities.version;
I don't know what ITV has done, but I don't know of any way of forcing the player to show that box, although it may do it automatically.
EDIT:
I just found a complete blog post that answers this.
There is no way to force the window to open itself. It's a user defined setting:
Have a look at the Security class. I have used it in some Flash to prompt users to increase storage limits. The panels that you can show are found in SecurityPanel. However, this may not be the way to prompt for outdated Flash version. (If you are looking to customize these panels, that is off limits.)
You can actually test the browser/Flash version in Javascript, so there really is no point in loading Flash to tell the user to upgrade Flash.

Opening a URL from Flash using navigateToURL (AS3)

Been pulling my hair out for hours today over this.
I can't open another website from my already opened flash site.
Here is the code:
GotoFB.addEventListener(MouseEvent.CLICK, gotoFB);
function gotoFB(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.facebook.com"), "_blank");
}
This works from the flash player but not from chrome/ie/firefox..
Had some problems with navigateToUrl in recent chrome-update in my Flex-app. Had to use this workaround:
ExternalInterface.call("window.open", url, target);
Some popup blockers blocks navigateToURL(..., "_blank"), there is a bunch of workarounds of varying quality out there, mainly involving calling JavaScript's window.open via ExternalInterface instead of using navigateToURL(..., "_blank"). If you google for it, you may find one that works in your case.
File->Publish Settings->Local playback security->Access network only
Voila...

AS3 Camera selection

Has anyone build a AS3 Camera-Select-algorithm, ready to use?
With MacBooks you have the problem that the build-in webcam is not rightly choosen from the webplayer.
You have to select the USP-Cam by youself from the list
DV Video
IIDC FireWire Video
USB Video Class Video
by
camera = Camera.getCamera("2");
THNX!
I found kind of a workaround here
You cant actually set the camera programatically. The best you can do is prompt the user to set it next to a video panel to show them if the camera they've chosen actually works. example here: http://www.neave.com/webcam/
to prompt them to change cameras you use:
Security.showSettings(SecurityPanel.CAMERA)
there is no event to wait for, though you can poll your video panel's bitmap data for changes and prompt the user behind the security panel when you think they've chosen the right camera.
Having done battle with this problem, I would suggest that everyone use this library.
https://github.com/cataclysmicrewind/CameraDetection/
Flash + webcam should = easy + awesome.
Unfortunately, it is pain + suffering.