-
-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to record screen on android #1508
Comments
Hello, If you want record the screen you can use this example: If you want record instead of stream you can replace isStreaming to isRecording, startStream to startRecord and stopStream to stopRecord. isStreaming: return genericStream.isRecording startRecord: if (!genericStream.isRecording) genericStream.startRecord(filePath) And stop record: fun stopStream() {
if (genericStream.isRecording) {
genericStream.stopRecord()
notificationManager?.cancel(notifyId)
}
} In ScreenActivity you will need replace the stream url provided in the startRecord to a valid file path |
Thanks for your answer. And can I draw a watermark on surfaceview? |
You can use filters: genericStream.getGlInterface() |
Can you show me where the code for recording the screen and saving the file into local storage?
Thanks!!! 馃檹
The text was updated successfully, but these errors were encountered: