问题
I got the follow error when I run setAudioSource and setVideoSource.
03-16 10:26:25.302: ERROR/audio_input(52): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
03-16 10:26:25.302: ERROR/audio_input(52): VerifyAndSetParameter failed
03-16 10:26:25.302: ERROR/CameraInput(52): Unsupported parameter(x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value)
03-16 10:26:25.302: ERROR/CameraInput(52): VerifiyAndSetParameter failed on parameter #0
This error happen on both emulator and the device. (I am using Google nexus one)
I have set the CAMERA and RECORD_AUDIO user permission already. I spent many days but I still cannot figure out what is the cause of this runtime error.
回答1:
You're probably requesting camera and/or sound input parameters that the system doesn't support. You can use Camera.Parameters.getSupportedXX() functions to query for supported parameters.
来源:https://stackoverflow.com/questions/2451763/android-sdk-2-1-getting-error-when-i-use-setaudiosource-and-setvideosource