Closed VineshChauhan24 closed 5 years ago
Did you set the background music?
App is crashing after setting Background Music
implementation 'com.github.yellowcath:PhotoMovie:1.6.3' Fixed crash of encoder "OMX.MTK.VIDEO.ENCODER.AVC" the encoder limited max size "1080x1920"
now its working fine
i got error
java.lang.IllegalStateException at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method) at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2637) at record.GLMovieRecorder.drainEncoderApi21(GLMovieRecorder.java:410) at record.GLMovieRecorder.drainEncoder(GLMovieRecorder.java:284) at record.GLMovieRecorder.startRecordImpl(GLMovieRecorder.java:121) at record.GLMovieRecorder$1$1.run(GLMovieRecorder.java:76) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:187) at android.os.HandlerThread.run(HandlerThread.java:65)
Updated Code throwing error java.lang.IllegalStateException at android.media.MediaCodec.native_stop(Native Method) at android.media.MediaCodec.stop(MediaCodec.java:2072) at com.hw.photomovie.record.GLMovieRecorder.releaseEncoder(GLMovieRecorder.java:275) at com.hw.photomovie.record.GLMovieRecorder.startRecordImpl(GLMovieRecorder.java:167) at com.hw.photomovie.record.GLMovieRecorder$1$1.run(GLMovieRecorder.java:87) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:187) at android.os.HandlerThread.run(HandlerThread.java:65)
app working fine in all device i have tested but getting error in Realme 1 device which has color os v5.0 with android version 8.1.0