HBiSoft / HBRecorder

Lightweight screen recording Android library
MIT License
402 stars 137 forks source link

Screen record permission request #143

Closed BorisSomoff closed 1 year ago

BorisSomoff commented 1 year ago

At now, Screen record permission requested every time at record start As I know, it is no problem to make this request only first time of start record in current session. Is it possible to implement this feature in settings?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed if no further activity occurs within the next 3 days. Thank you for your contributions.

HBiSoft commented 1 year ago

My apologies for the late reply. No there is no way of forcing permissions to be only asked once. Because it's a foreground service, Android itself asks for this permission and we have no control over this.

jdevp commented 1 year ago

But it should have options to check if Foreground and permission intent is running. If they are , don't start new ones. Then you can do is keep them running all the times, only stop media recorder and virtual display when you are done with recording and start new ones when with new recording.