Skip to content

Commit 1fafbbe

Browse files
committed
io.appium.settings: recording: Final touches
Signed-off-by: sirmordred <[email protected]>
1 parent c279b9e commit 1fafbbe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ error will be returned and the corresponding log message would be written into l
323323

324324
## Internal Audio & Video Recording
325325

326-
REQUIRED STEPS to activate recording:
326+
Required steps to activate recording:
327327

328328
```bash
329329
adb shell pm grant io.appium.settings android.permission.RECORD_AUDIO

app/src/main/java/io/appium/settings/recorder/RecorderThread.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import android.os.Build;
3131
import android.os.Handler;
3232
import android.os.Looper;
33-
import android.util.DisplayMetrics;
3433
import android.util.Log;
3534
import android.view.Surface;
3635

@@ -343,7 +342,6 @@ public void run() {
343342
MediaCodec videoEncoder = null;
344343
MediaCodec audioEncoder = null;
345344
Surface surface = null;
346-
AudioRecord audioRecord = null;
347345
Thread audioRecordThread = null;
348346
MediaMuxer muxer = null;
349347
try {
@@ -380,7 +378,7 @@ public void run() {
380378
audioEncoder = initAudioCodec(sampleRate);
381379
audioEncoder.start();
382380

383-
audioRecord = initAudioRecord(this.mediaProjection, sampleRate);
381+
AudioRecord audioRecord = initAudioRecord(this.mediaProjection, sampleRate);
384382

385383
muxer = new MediaMuxer(this.outputFilePath,
386384
MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4);

0 commit comments

Comments
 (0)