(Android SDk 2.1) Getting error when I use setAudioSource and setVideoSource

落爺英雄遲暮 提交于 2019-12-11 04:18:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!