Skip to content

Commit

Permalink
fix!: remove deprecated platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Aug 31, 2023
1 parent 957249b commit a7be5b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 478 deletions.
11 changes: 0 additions & 11 deletions README.md
Expand Up @@ -54,7 +54,6 @@ cordova plugin add cordova-plugin-media

- Android
- iOS
- Windows
- Browser

## Media
Expand Down Expand Up @@ -516,7 +515,6 @@ Starts recording an audio file.

- Android
- iOS
- Windows

### Quick Example

Expand Down Expand Up @@ -570,14 +568,6 @@ To add this entry into the `info.plist`, you can use the `edit-config` tag in th
</edit-config>
```

### Windows Quirks

- 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).

- If a full path is not provided, the recording is placed in the `AppData/temp` directory. This can be accessed via the `File` API using `LocalFileSystem.TEMPORARY` or `ms-appdata:///temp/<filename>` URI.

- Any subdirectory specified at record time must already exist.

## media.stop

Stops playing an audio file.
Expand Down Expand Up @@ -622,7 +612,6 @@ Stops recording an audio file.

- Android
- iOS
- Windows

### Quick Example

Expand Down
6 changes: 2 additions & 4 deletions package.json
Expand Up @@ -8,8 +8,7 @@
"platforms": [
"android",
"browser",
"ios",
"windows"
"ios"
]
},
"repository": "github:apache/cordova-plugin-media",
Expand All @@ -20,8 +19,7 @@
"ecosystem:cordova",
"cordova-android",
"cordova-browser",
"cordova-ios",
"cordova-windows"
"cordova-ios"
],
"scripts": {
"test": "npm run lint",
Expand Down
2 changes: 1 addition & 1 deletion src/ios/CDVSound.m
Expand Up @@ -971,7 +971,7 @@ - (void)messageChannel:(CDVInvokedUrlCommand*)command

- (void)onStatus:(CDVMediaMsg)what mediaId:(NSString*)mediaId param:(NSObject*)param
{
if (self.statusCallbackId!=nil) { //new way, android,windows compatible
if (self.statusCallbackId!=nil) { //new way, android compatible
NSMutableDictionary* status=[NSMutableDictionary dictionary];
status[@"msgType"] = @(what);
//in the error case contains a dict with "code" and "message"
Expand Down

0 comments on commit a7be5b8

Please sign in to comment.