Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloHuDi committed Jun 8, 2018
1 parent db9c476 commit 26c1a92
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

## [screen record tool][3]

## screenshot

<img src="art/screen.gif" width="300px" height="500px"/>

## Usage:

### dependencies :
Expand All @@ -34,12 +38,15 @@ ScreenCapture.with(activity).startCapture();

```
ScreenCaptureConfig captureConfig = new ScreenCaptureConfig.Builder()
.setFile("your file")//
.setAllowLog(BuildConfig.DEBUG)
//init default video config
.setVideoConfig(VideoConfig.initDefaultConfig(activity))
//if it is not set, then the voice will not be supported
.setAudioConfig(AudioConfig.initDefaultConfig())
.setCaptureCallback((ScreenCaptureStreamCallback) activity)
//relevance the activity lifecycle ,if false not auto stop
.setRelevanceLifecycle(true)
//default false
.setAutoMoveTaskToBack(true)
.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ private void initConfig() {
}
captureConfig = new ScreenCaptureConfig.Builder()//
.setAllowLog(BuildConfig.DEBUG)//
.setFile(setSelfFile()).setVideoConfig(videoConfig)//
//set your file
.setFile(setSelfFile())//
.setVideoConfig(videoConfig)//
//if it is not set, then the voice will not be supported
.setAudioConfig(audioConfig)//
//relevance the activity lifecycle ,if false not auto stop
.setRelevanceLifecycle(true)
.setCaptureCallback((ScreenCaptureStreamCallback) activity)//
.setAutoMoveTaskToBack(true)//
.create();//
Expand Down
Binary file added art/screen.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26c1a92

Please sign in to comment.