https://github.com/gabrielbmoro/screen-share-recorder
Screen recorder sample - Android
https://github.com/gabrielbmoro/screen-share-recorder
android-app sample-code screenrecorder
Last synced: 8 months ago
JSON representation
Screen recorder sample - Android
- Host: GitHub
- URL: https://github.com/gabrielbmoro/screen-share-recorder
- Owner: gabrielbmoro
- Created: 2023-05-26T18:38:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-10T23:03:53.000Z (almost 3 years ago)
- Last Synced: 2024-11-27T16:35:01.852Z (over 1 year ago)
- Topics: android-app, sample-code, screenrecorder
- Language: Kotlin
- Homepage:
- Size: 4.44 MB
- Stars: 24
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Screen Share Recorder
## Use case
- Record the screen

---
## Components
### Activity
The place where we will create the screen capture intent. This intent result is used to create the foreground service `ScreenCaptureForegroundService`.
### Foreground Service
This component will support two actions (triggered by `MainActivity`): *start recording*, and *stop recording*.
### Recorder components
The code provides two recorder approaches: sync, and async.
#### Sync
This approaches is using `MediaMuxer` to write the buffer info, and the `MediaCodec` to encode the video streamings.
#### Async
Uses `MediaRecorder` API, we don't need to deal with all the complexity of the previous approach.
---
### Run
- To record your screen you just need to tap in Start button, the Stop button will be enabled after you start a recording. Currently we are **saving** the **recording** inside of the **Downloads** directory.
