File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
app/src/main/java/io/appium/settings/recorder Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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
329329adb shell pm grant io.appium.settings android.permission.RECORD_AUDIO
Original file line number Diff line number Diff line change 3030import android .os .Build ;
3131import android .os .Handler ;
3232import android .os .Looper ;
33- import android .util .DisplayMetrics ;
3433import android .util .Log ;
3534import 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 );
You can’t perform that action at this time.
0 commit comments