cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szabolcs Balogh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7454) Add support for m4a audio format to Media plugin
Date Thu, 13 Aug 2015 07:59:48 GMT

    [ https://issues.apache.org/jira/browse/CB-7454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14694857#comment-14694857
] 

Szabolcs Balogh commented on CB-7454:
-------------------------------------

I think that both Android and iOS supports recording in M4A format.

On Android:
this.recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); 

On iOS:
NSDictionary *audioSettings = @{AVFormatIDKey: @(kAudioFormatMPEG4AAC),
                                            AVSampleRateKey: @(44100),
                                            AVNumberOfChannelsKey: @(1),
                                            AVEncoderAudioQualityKey: @(AVAudioQualityMedium)
                                            };
audioFile.recorder = [[CDVAudioRecorder alloc] initWithURL:audioFile.resourceURL settings:audioSettings
error:&error];
(You can play with the settings)

The playback for the recorded M4A file work both on Android and iOS.

> Add support for m4a audio format to Media plugin
> ------------------------------------------------
>
>                 Key: CB-7454
>                 URL: https://issues.apache.org/jira/browse/CB-7454
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Media
>            Reporter: Vladimir Kotikov
>              Labels: m4a, media, wp8.1
>
> Current version doesn't support m4a audio even if platform, we're running on does.
> For example CB-7453 describes that media-capture for WP8.1 can record an m4a file when
mp3 recording fails, and the recorded file format which is fully supported by Windows platform
and IE11, can't be used with Media plugin due to current plugin limitations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message