ScreenRecorder
ScreenRecorder copied to clipboard
Implement screen capture without root on Android 5.0+ by using MediaProjectionManager, VirtualDisplay, AudioRecord, MediaCodec and MediaMuxer APIs
Hi Please anyone can help me how to pause and resume screen recording?
Logcat: **2019-07-30 15:04:57.215 909-3862/? E/InputDispatcher: Window handle Window{7faca60 u0 Sys2003:com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity} has no registered input channel** 2019-07-30 15:04:57.233 28983-28983/? D/AndroidRuntime: Shutting down VM 2019-07-30 15:04:57.241 28983-28983/? E/AndroidRuntime: FATAL EXCEPTION: main Process:...
java.lang.IllegalStateException: writeSampleData returned an error at android.media.MediaMuxer.nativeWriteSampleData(Native Method) at android.media.MediaMuxer.writeSampleData(MediaMuxer.java:714) at com.hisense.screenrecord.recorder.ScreenRecorder.writeSampleData(ScreenRecorder.java:446) at com.hisense.screenrecord.recorder.ScreenRecorder.muxVideo(ScreenRecorder.java:290) at com.hisense.screenrecord.recorder.ScreenRecorder.access$500(ScreenRecorder.java:59) at com.hisense.screenrecord.recorder.ScreenRecorder$2.onOutputBufferAvailable(ScreenRecorder.java:541) at com.hisense.screenrecord.recorder.BaseEncoder$1.onOutputBufferAvailable(BaseEncoder.java:197) at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1706) at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1653) at android.os.Handler.dispatchMessage(Handler.java:112) at android.os.Looper.loop(Looper.java:216) at android.os.HandlerThread.run(HandlerThread.java:65)
存在延迟3秒至10秒的情况
录屏直播延迟问题
录屏直播的时候。延迟比较严重。这种有方法解决么。
我试过在弹出的权限框选择不再提醒后,再一次录屏就会报系统界面已停止的问题,有大佬知道这个是什么引起的吗?
2020-07-09 14:42:19.943 8163-8216/net.yrom.screenrecorder E/AndroidRuntime: FATAL EXCEPTION: AudioSenderThread Process: net.yrom.screenrecorder, PID: 8163 java.lang.IllegalStateException: Deque full at java.util.concurrent.LinkedBlockingDeque.addLast(LinkedBlockingDeque.java:335) at java.util.concurrent.LinkedBlockingDeque.add(LinkedBlockingDeque.java:633) at net.yrom.screenrecorder.task.RtmpStreamingSender.sendFood(RtmpStreamingSender.java:141) at net.yrom.screenrecorder.ui.activity.ScreenRecordActivity$2.collect(ScreenRecordActivity.java:112) at net.yrom.screenrecorder.task.AudioSenderThread.sendRealData(AudioSenderThread.java:112) at net.yrom.screenrecorder.task.AudioSenderThread.run(AudioSenderThread.java:70)
how to add watermark on video file ?
Media projection requires a foreground service of type serviceinfo. Getting this error when try to run the app. ANY IDEA?????