public class MediaRecoderActivity extends AppCompatActivity { private SurfaceView sv_recoder; private MediaRecorder mediaRecorder; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_media_recoder); sv_recoder = (SurfaceView) findViewById(R.id.sv_recoder); //实例化媒体录制器 mediaRecorder = new MediaRecorder(); } public void start(View view){ mediaRecorder.reset();
android之相机 VideoSource和AudioSource
最新推荐文章于 2024-06-24 09:31:45 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)