HelloHuDi / ScreenCapture

Implement screen capture without root on Android 5.0+ by using MediaProjectionManager, VirtualDisplay, AudioRecord, MediaCodec and MediaMuxer APIs
https://github.com/yrom/ScreenRecorder
Apache License 2.0
23 stars 12 forks source link

And how to disable auto stop? Can it record in service (in background)? #1

Closed anonym24 closed 5 years ago

anonym24 commented 6 years ago

auto stop according to the activity lifecycle by default

And how to disable auto stop? Can it record in service (in background)?

anonym24 commented 6 years ago

also where can we set video path (.mp4 file)?

HelloHuDi commented 6 years ago

maybe you can set :


new ScreenCaptureConfig.Builder().

//...

//relevance the activity lifecycle ,if false not auto stop
.setRelevanceLifecycle(true)
//set video path
.setFile("your file")

//...
.create();