Android开发遇到的视频录制问题,部分手机报错java.lang.RuntimeException: start failed.

2025-04-14 00:06:55
推荐回答(1个)
回答1:

问题应该是这里:threadid=1: thread exiting with uncaught exception (group=0x40a8a1f8)

在mMediaRecorder.start()前加:
mMediaRecorder.setOnInfoListener(this);
mMediaRecorder.setOnErrorListener(this);

主要是Activity要实现OnInfoListener和OnErrorListener接口