Flash Player 10.3 Advanced Echo Cancellation(AEC) Errors
VerifyError: Error #1014: Class flash.media::MicrophoneEnhancedOptions could not be found
TypeError: Error #1006: getEnhancedMicrophone is not a function
Add following line to your compiler arguments window in Flash Builder:
Project > Properties > Additional compiler arguments:
-swf-version=12
Just to be sure, here you can get the SDK. You will need 4.5
VerifyError: Error #1014: Class flash.media::MicrophoneEnhancedOptions could not be found
TypeError: Error #1006: getEnhancedMicrophone is not a function
Add following line to your compiler arguments window in Flash Builder:
Project > Properties > Additional compiler arguments:
-swf-version=12
Just to be sure, here you can get the SDK. You will need 4.5
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer10-3/flashplayer10-3_playerglobal_052011.swc
----- Conditional code ---
if ((getFlashPlayerVersion() >= 10.3) && (phoneOptions.enabledEchoCancel)) {
mic = Microphone(Microphone["getEnhancedMicrophone"]());
var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
options.mode = MicrophoneEnhancedMode.FULL_DUPLEX;
options.autoGain = false;
options.echoPath = 128;
options.nonLinearProcessing = true;
}
public static function getFlashPlayerVersion():Number {
var versionString:String = Capabilities.version;
var pattern:RegExp = /^(\w*) (\d*),(\d*),(\d*),(\d*)$/;
var result:Object = pattern.exec(versionString);
if (result != null) {
return Number(result[2] + "." + result[3]);
} else {
return 0;
}
}
Reference : http://www.eliatlas.com/blog/2011/06/19/flash-player-10-3-echo-cancellation-errors/