开发者

How to pause capturing video in android?

开发者 https://www.devze.com 2023-02-15 05:53 出处:网络
I am completing video recording in android application, but I want to pause the recording while 开发者_如何学运维capturing, can anyone help me.

I am completing video recording in android application, but I want to pause the recording while 开发者_如何学运维capturing, can anyone help me.

code for start recording is as follow

MediaRecorder recorder;

startRecording.setOnClickListener(new OnClickListener() 
        {
            @Override
            public void onClick(View v) 
            {
                recorder.start();               
            }
        });


You haven't shown the code that you're using to record video. Looking at the MediaRecorder class, it doesn't seem to provide pause functionality. So you'd have to use some other class or add code to join media files.

0

精彩评论

暂无评论...
验证码 换一张
取 消