An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Screen Share Recorder

## Use case

- Record the screen

![Image](img/screen_recorder_flow.jpg)

---

## 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.

![Teaser](img/Screen-Recording-2023-05-28-at-19.24.51.gif)