Actually one thing to point out is, it only happens after I take a picture. If I don't take a picture the switch works fine.
On Mar 22, 10:15 pm, Shao <shaoy...@gmail.com> wrote: > Hi all, > > I'm seeing a failure with the fast switch from still camera to video > camera on the Atrix using the method described in the Android SDK: > > "To quickly switch to video recording mode, use these steps: > > 1. Obtain and initialize a Camera and start preview as described > above. > 2. Call unlock() to allow the media process to access the camera. > 3. Pass the camera to setCamera(Camera). See MediaRecorder information > about video recording." > > This process works fine on my Droid, but on the Atrix I get this > instead: > > 03-22 22:04:30.692: ERROR/NvOmxCamera(1364): switchFromStillToVideo: > wait for port enable failed [0x80001011] > 03-22 22:04:30.692: ERROR/NvOmxCamera(1364): UseHintForVideoCapture: > switch to video mode failed [0x80001011] > 03-22 22:04:30.692: ERROR/NvOmxCamera(1364): ApplyUserSettings: using > hint for Video mode failed: [0x80001011] > > At this point, all I've done in my code is: > > mCamera.unlock(); > mRecorder = new MediaRecorder(); > mRecorder.setCamera(mCamera); > > I then do some MediaRecorder settings and the execute the start() but > will get something like this: > > 03-22 22:04:30.729: ERROR/NvOmxCamera(1364): switchFromStillToVideo: > cannot disable capture port [0x8000100a] > 03-22 22:04:30.729: ERROR/NvOmxCamera(1364): startRecording: switch to > video mode failed [0x8000100a] > 03-22 22:04:30.729: ERROR/CameraService(1364): mHardware->startRecording() > failed with status -16 > > 03-22 22:04:30.729: ERROR/NvOmxMediaRecorder(1364): > NvOmxMediaRecorder::start -> mCamera->startRecording error -- > > Again, this is fine on my Droid but fails on the Atrix. I don't have > any other phones to test with. Anyone else use this feature and have > tested on Atrix? The built-in camera app doesn't seem to have a > problem, so I get the feeling they're not using this method. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en