有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

安卓 java。lang.RuntimeException:MediaMuxer创建失败

以下错误发生在安卓 9版本中,但所有其他版本都能正常工作

java.lang.RuntimeException: MediaMuxer creation failed

这是我的java代码

String outputPath = mOutputPath;
Log.d(TAG, "output file is " + outputPath);

try {
    mMuxer = new MediaMuxer(outputPath, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4);
} catch (IOException ioe) {
    throw new RuntimeException("MediaMuxer creation failed", ioe);
}

共 (0) 个答案