Hi
Did u able to record a video in android emulator , could you please
help to share the code for recording the video
I am new to android development , from the snippet here i dont know
what package to import.
CAn u please send the source for the video record
BTW i am newbi to the android
I think you don't have to open and set parameters for the camera when
recording video, at least it never work for me, try to remove this
code:
camera = Camera.open();
Camera.Parameters parameters = camera.getParameters();
parameters.setPreviewSize(352, 288);
parameters.set(orientation, portrait);
when i add video source and video encoder, it gives error in
recoreder.prepare() (prepare failed) while the same code is working
only for audio.
i am not finding what i am doing wrong.Please help
setContentView(R.layout.camera);
preview=(SurfaceView)findViewById(R.id.surface);
3 matches
Mail list logo