forked from HBiSoft/HBRecorder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Constants.java file to capture values used within HBRecorder
Modified HBRecorder to utilize the above mentioned Constants Added maxFileSize property to HBRecorder, allowing it to be set from calling programs and having it passed along to ScreenRecordService. Updated HBRecorder to utilize int values for error codes as specified in Constants.java, including a new code indicating that the specified max file size has been reached (and have it automatically stop recording). Updated ScreenRecordService to utilize values from Constants.java Updated ScreenRecordService to implement setting a max file size on the media recorder. Added a string.xml resource to the hbrecorder module to capture strings used there. Updated gradle to target version 30.
- Loading branch information
1 parent
78d5967
commit b21fbe1
Showing
5 changed files
with
107 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
hbrecorder/src/main/java/com/hbisoft/hbrecorder/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.hbisoft.hbrecorder; | ||
|
||
public class Constants { | ||
public final static String MAX_FILE_SIZE_KEY = "maxFileSize"; | ||
public final static String ERROR_REASON_KEY = "errorReason"; | ||
public final static String ERROR_KEY = "error"; | ||
public final static String ON_COMPLETE_KEY = "onComplete"; | ||
public final static String ON_START_KEY = "onStart"; | ||
public final static String ON_COMPLETE = "Uri was passed"; | ||
public final static int SETTINGS_ERROR = 38; | ||
public final static int MAX_FILE_SIZE_REACHED_ERROR = 48; | ||
public final static int GENERAL_ERROR = 100; | ||
public final static int ON_START = 111; | ||
public final static int NO_SPECIFIED_MAX_SIZE = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<resources> | ||
<string name="app_name">HBRecorder</string> | ||
<string name="max_file_reached">File size max has been reached.</string> | ||
<string name="stop_recording_notification_message">Drag down to stop the recording</string> | ||
<string name="stop_recording_notification_title">Recording your screen</string> | ||
</resources> |