[問題] Camera錄影 使用scene mode
大家好 (最下面有完整程式碼專案跟錯誤訊息)
我在寫camera錄影時都沒有問題,順利在onResume錄影,onPause停止錄影
後來我想要使用Camera的 Parameters 來使用 scene mode
部分程式碼如下:
Camera.Parameters params = camera.getParameters();
if( params.getSupportedSceneModes().contains(
Camera.Parameters.SCENE_MODE_NIGHT)){
params.setSceneMode( Camera.Parameters.SCENE_MODE_NIGHT);
}
camera.setParameters(params);
但是這樣就會發生在錄影時出現 MediaRecorder start failed -19 error 錯誤
我測試的手機是 Galaxy S2 跟 htc new one mini
都是在加上 scene mode後發生不能錄影的問題QQ
想請問這是哪邊出問題呢?
或是我哪邊沒搞清楚?
謝謝!!!
我寫的程式(完整程式碼)
https://dl.dropboxusercontent.com/u/110205128/camera.zip
錯誤訊息log
http://ppt.cc/fgJZ
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.161.157.222
※ 文章網址: http://www.ptt.cc/bbs/AndroidDev/M.1399124528.A.E40.html
推
05/03 22:48, , 1F
05/03 22:48, 1F
→
05/04 00:39, , 2F
05/04 00:39, 2F
→
05/04 00:40, , 3F
05/04 00:40, 3F
→
05/04 00:41, , 4F
05/04 00:41, 4F
→
05/04 02:12, , 5F
05/04 02:12, 5F