File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,17 @@ export class AudioDemo extends Observable {
40
40
let androidEncoder ;
41
41
if ( platform . isAndroid ) {
42
42
// m4a
43
- if ( android . media . MediaRecorder ) {
44
- for ( let key in android . media . MediaRecorder ) {
45
- console . log ( key ) ;
46
- }
47
- }
43
+ // static constants are not available, using raw values here
48
44
// androidFormat = android.media.MediaRecorder.OutputFormat.MPEG_4;
49
45
androidFormat = 2 ;
50
46
// androidEncoder = android.media.MediaRecorder.AudioEncoder.AAC;
51
47
androidEncoder = 3 ;
52
48
}
53
49
50
+ let recordingPath = `${ audioFolder . path } /recording.${ this . platformExtension ( ) } ` ;
54
51
let recorderOptions : AudioRecorderOptions = {
55
52
56
- filename : ` ${ audioFolder . path } /recording. ${ this . platformExtension ( ) } ` ,
53
+ filename : recordingPath ,
57
54
58
55
format : androidFormat ,
59
56
You can’t perform that action at this time.
0 commit comments