You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ function recordAudio() {
312
312
313
313
// Pause Recording after 5 seconds
314
314
setTimeout(function() {
315
-
my_media.pauseRecord();
315
+
mediaRec.pauseRecord();
316
316
}, 5000);
317
317
}
318
318
```
@@ -427,12 +427,12 @@ function recordAudio() {
427
427
428
428
// Pause Recording after 5 seconds
429
429
setTimeout(function() {
430
-
my_media.pauseRecord();
430
+
mediaRec.pauseRecord();
431
431
}, 5000);
432
432
433
433
// Resume Recording after 10 seconds
434
434
setTimeout(function() {
435
-
my_media.resumeRecord();
435
+
mediaRec.resumeRecord();
436
436
}, 10000);
437
437
}
438
438
```
@@ -563,6 +563,14 @@ function recordAudio() {
563
563
564
564
var myMedia = new Media("documents://beer.mp3")
565
565
566
+
- Since iOS 10 it's mandatory to add a `NSMicrophoneUsageDescription` entry in the info.plist.
567
+
568
+
`NSMicrophoneUsageDescription` describes the reason that the app accesses the user’s microphone. When the system prompts the user to allow access, this string is displayed as part of the dialog box. To add this entry you can pass the variable `MICROPHONE_USAGE_DESCRIPTION` on plugin install.
If you don't pass the variable, the plugin will add an empty string as value.
573
+
566
574
### Windows Quirks
567
575
568
576
- Windows devices can use MP3, M4A and WMA formats for recorded audio. However in most cases it is not possible to use MP3 for audio recording on _Windows Phone 8.1_ devices, because an MP3 encoder is [not shipped with Windows Phone](https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.mediaproperties.mediaencodingprofile.createmp3.aspx).
0 commit comments