Closed hocesjc closed 2 years ago
i fix it changing
renderPipeline.endPointRenders.find { glRender -> glRender is ISupportRecord } as? ISupportRecord
by
var recordSupported:ISupportRecord? =null for (render in renderPipeline.endPointRenders) { if (render is ISupportRecord) { recordSupported= render } }
i fix it changing renderPipeline.endPointRenders.find { glRender -> glRender is ISupportRecord } as? ISupportRecord by var recordSupported:ISupportRecord? =null for (render in renderPipeline.endPointRenders) { if (render is ISupportRecord) { recordSupported= render } }
I can't record the views
val renderPipeline = EZFilter.input(viewToRecord).addFilter(null) .enableRecord(path, true, false) .into(renderView) renderPipeline.setRenderSize(renderView.width, renderView.height) val recordSupported = renderPipeline.endPointRenders.find { glRender -> glRender is ISupportRecord } as? ISupportRecord return recordSupported
when i call
startRecording()
it return false, i debug the funcion and MediaCodec.createInputSurface() throw IllegalStateException I try with version 2.0.7 and 2.0.6 with the same result but the app crashes directly for the same