我正在尝试提取的muxer部分MediaRecorder
,所以我现在正在学习Android 4.2.2的源代码,无论如何,这并不重要。我在这里有一个问题。大约setOutputFile(String path)
是MediaRecorder.java
.
的调用结果MediaRecorder.java
是
MediaRecorder.java
+- android_media_MediaRecorder.cpp
+- MediaRecorder.cpp
+- MediaPlayerService.cpp
+- MediaRecorderClient.cpp
+- StagefrightRecorder.cpp
但在 中StagefrightRecorder.cpp
,它说
status_t StagefrightRecorder::setOutputFile(const char *path) {
ALOGE("setOutputFile(const char*) must not be called");
// We don't actually support this at all, as the media_server process
// no longer has permissions to create files.
return -EPERM;
}
那我们怎样才能继续使用setOutputFile(String path)
呢MediaRecorder
?我真的不明白。