使用easyar 官方demo 录制视频功能 崩溃,由于购买了pro版内容,应用需要上架,希望尽快提供解决方案
但是在Android 9.0的平台下出现问题
安卓版本9.0/EMUI9.0(p30 pro)
安卓版本9.0/EMUI9.0(mate 20)
安卓版本9.0/EMUI9.0(荣耀 10)
等一系列版本均出现问题。
以下为部分错误日志:
2019-06-10 17:15:59.947 8820-8844/cn.easyar.samples.helloarrecording E/HwExtendedCodec: mime: audio/mp4a-latm matching compontent failed!
2019-06-10 17:15:59.969 8820-8844/cn.easyar.samples.helloarrecording E/HwCustAudioRecordImpl: isOpenEC : false
2019-06-10 17:15:59.986 8820-8844/cn.easyar.samples.helloarrecording E/HwExtendedCodec: mime: video/avc matching compontent failed!
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] Throwing new exception 'no non-static method "Landroid/opengl/EGLSurface;.<init>(J)V"' with unexpected pending exception: java.lang.NoSuchMethodError: no non-static method "Landroid/opengl/EGLDisplay;.<init>(J)V"
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at boolean cn.easyar.engine.recorder.RecordNative.nativeInit(android.view.Surface, int, int, int) (RecordNative.java:-2)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.engine.recorder.RecordNative.<init>(android.view.Surface, int, int, int) (RecordNative.java:18)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.engine.recorder.TextureMovieEncoder.<init>(cn.easyar.engine.recorder.AVRecorderConfig) (TextureMovieEncoder.java:190)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.engine.recorder.SessionRecorder.prepareRecording() (SessionRecorder.java:114)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.engine.recorder.SessionRecorder.prepare() (SessionRecorder.java:419)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.Recorder.start() (Recorder.java:-2)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.samples.helloarrecording.HelloAR.startRecording(java.lang.String, cn.easyar.FunctorOfVoidFromRecordStatusAndString) (HelloAR.java:198)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void cn.easyar.samples.helloarrecording.GLView$3.run() (GLView.java:125)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1535)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171] at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1293)
2019-06-10 17:16:00.034 8820-8844/cn.easyar.samples.helloarrecording A/elloarrecordin: thread.cc:2171]
2019-06-10 17:16:00.214 8820-8844/cn.easyar.samples.helloarrecording A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 8844 (GLThread 8096), pid 8820 (elloarrecording)