[jira] [Created] (CB-7717) Cordova Media Plugin Record as mp4

2014-10-06 Thread Tom Krones (JIRA)
Tom Krones created CB-7717:
--

 Summary: Cordova Media Plugin Record as mp4
 Key: CB-7717
 URL: https://issues.apache.org/jira/browse/CB-7717
 Project: Apache Cordova
  Issue Type: New Feature
Reporter: Tom Krones


It would be nice to be able to record audio in other formats like mp4.  Here's 
code that allows you to change the recording type.  It would be great if the 
option could be added to the record call.

here's the code

Step 1: add this to the startRecordingAudio method on SDVSound.m before 
audioFile.recorder =

NSDictionary *recordSettings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt: 
kAudioFormatMPEG4AAC], AVFormatIDKey,
[NSNumber numberWithFloat:16000.0], 
AVSampleRateKey,
[NSNumber numberWithInt: 1], 
AVNumberOfChannelsKey,
nil];
Then I replaced:

audioFile.recorder = [[CDVAudioRecorder alloc] 
initWithURL:audioFile.resourceURL settings:nil error:error]; // Default PCM 
recording
With:

audioFile.recorder = [[CDVAudioRecorder alloc] 
initWithURL:audioFile.resourceURL settings:recordSettings error:error];
This records directly in M4A, mono in a relatively low fi (16K) format. For my 
application, which is just capturing words, not music this is just what I 
needed.

from:

https://github.com/keenan/cordova-phonegap-audio-encode/issues/4



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

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



[jira] [Commented] (CB-7517) [Media][iOS 8] returns an error and app becomes unresponsive when playing some mp3 fiiles

2014-10-06 Thread Tom Krones (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14161313#comment-14161313
 ] 

Tom Krones commented on CB-7517:


Any update on this?  

 [Media][iOS 8] returns an error and app becomes unresponsive when playing 
 some mp3 fiiles
 -

 Key: CB-7517
 URL: https://issues.apache.org/jira/browse/CB-7517
 Project: Apache Cordova
  Issue Type: Sub-task
  Components: Plugin Media
Affects Versions: 3.5.0
 Environment: iOS 8 GM
Reporter: Tom Krones
 Attachments: chart-1-6-1-bad.mp3, chart-1-6-1-good.mp3


 You can read more about the issue here:
 https://groups.google.com/forum/?hl=en?hl%3Den#!topic/phonegap/Zb7NQsr6wCQ
 I just upgraded my device to iOS 8 and started getting a decode error with 
 some of my mp3 files that are being played using the media plugin.  They 
 played fine with iOS 6 and iOS 7.  Here are the two files one plays fine the 
 other gives the MediaError.MEDIA_ERR_DECODE = 3 error.
 Anyone know why this is happening and if there is any software I can use to 
 re-encode the files and to see if it fixes them?
 attached files.



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

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



[jira] [Commented] (CB-7517) Media plugin returns an error and app becomes unresponsive when playing some mp3 fiiles on iOS 8

2014-09-11 Thread Tom Krones (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14130961#comment-14130961
 ] 

Tom Krones commented on CB-7517:


This issue, I think, has to do with the mp3 length.  If it's short it throws 
the error after the file is played and the app becomes unresponsive.  Longer 
audio files don't have this issue.  I haven't testing it with anything other 
than mp3 files.

 Media plugin returns an error and app becomes unresponsive when playing some 
 mp3 fiiles on iOS 8
 

 Key: CB-7517
 URL: https://issues.apache.org/jira/browse/CB-7517
 Project: Apache Cordova
  Issue Type: Sub-task
  Components: Plugin Media
Affects Versions: 3.5.0
 Environment: iOS 8 GM
Reporter: Tom Krones
 Attachments: chart-1-6-1-bad.mp3, chart-1-6-1-good.mp3


 You can read more about the issue here:
 https://groups.google.com/forum/?hl=en?hl%3Den#!topic/phonegap/Zb7NQsr6wCQ
 I just upgraded my device to iOS 8 and started getting a decode error with 
 some of my mp3 files that are being played using the media plugin.  They 
 played fine with iOS 6 and iOS 7.  Here are the two files one plays fine the 
 other gives the MediaError.MEDIA_ERR_DECODE = 3 error.
 Anyone know why this is happening and if there is any software I can use to 
 re-encode the files and to see if it fixes them?
 attached files.



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


[jira] [Created] (CB-7517) Media plugin returns an error and app becomes unresponsive when playing some mp3 fiiles on iOS

2014-09-10 Thread Tom Krones (JIRA)
Tom Krones created CB-7517:
--

 Summary: Media plugin returns an error and app becomes 
unresponsive when playing some mp3 fiiles on iOS
 Key: CB-7517
 URL: https://issues.apache.org/jira/browse/CB-7517
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.5.0
Reporter: Tom Krones


You can read more about the issue here:

https://groups.google.com/forum/?hl=en?hl%3Den#!topic/phonegap/Zb7NQsr6wCQ



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


[jira] [Created] (CB-7506) Media Plugin doesnt play in iOS 8

2014-09-09 Thread Tom Krones (JIRA)
Tom Krones created CB-7506:
--

 Summary: Media Plugin doesnt play in iOS 8
 Key: CB-7506
 URL: https://issues.apache.org/jira/browse/CB-7506
 Project: Apache Cordova
  Issue Type: Bug
Reporter: Tom Krones






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


[jira] [Updated] (CB-7506) Media Plugin doesnt play in iOS 8

2014-09-09 Thread Tom Krones (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-7506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Krones updated CB-7506:
---
  Component/s: iOS
Affects Version/s: 3.5.0

 Media Plugin doesnt play in iOS 8
 -

 Key: CB-7506
 URL: https://issues.apache.org/jira/browse/CB-7506
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.5.0
Reporter: Tom Krones





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


[jira] [Commented] (CB-6195) Mark file with the do not back up attribute not working.

2014-04-07 Thread Tom Krones (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13961787#comment-13961787
 ] 

Tom Krones commented on CB-6195:


Hey Simon,

I found a work around.  Check the fullPath attribute of the file you pass to 
setMetadata().  It's not getting set to the correct full path so you just need 
to set the fullpath attribute before calling setMetadata().

Tom

 Mark file with the do not back up attribute not working.
 --

 Key: CB-6195
 URL: https://issues.apache.org/jira/browse/CB-6195
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Tom Krones
Assignee: Shazron Abdullah
Priority: Critical

 I've been using the Cordova File Plugin for a while and in the past I've set 
 files I stored to the documents folder with the do not back up attribute 
 using the following code:
 theFile.setMetadata(function(){}, function(){}, { com.apple.MobileBackup: 
 1});
 I just submitted an app which was denied from apple because that attribute 
 wasn't being set correctly and iCloud was trying to back up those files. 
 I don't know objective c very well but I set a few breakpoints to check that 
 I was at least calling the plugin correctly.  From what I can tell it's 
 calling the setMetadata function in the CDVFile.m file but the 
 setMetadataForURL function never gets called.  
 Any help with this would be great.  Right now apple is blocking my 
 application from being approved.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-6195) Mark file with the do not back up attribute not working.

2014-03-12 Thread Tom Krones (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13931670#comment-13931670
 ] 

Tom Krones commented on CB-6195:


The fault might be with the file transfer download function.  The file it 
returns doesn't have the correct full path.

 Mark file with the do not back up attribute not working.
 --

 Key: CB-6195
 URL: https://issues.apache.org/jira/browse/CB-6195
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Tom Krones
Assignee: Shazron Abdullah
Priority: Critical

 I've been using the Cordova File Plugin for a while and in the past I've set 
 files I stored to the documents folder with the do not back up attribute 
 using the following code:
 theFile.setMetadata(function(){}, function(){}, { com.apple.MobileBackup: 
 1});
 I just submitted an app which was denied from apple because that attribute 
 wasn't being set correctly and iCloud was trying to back up those files. 
 I don't know objective c very well but I set a few breakpoints to check that 
 I was at least calling the plugin correctly.  From what I can tell it's 
 calling the setMetadata function in the CDVFile.m file but the 
 setMetadataForURL function never gets called.  
 Any help with this would be great.  Right now apple is blocking my 
 application from being approved.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CB-6195) Mark file with the do not back up attribute not working.

2014-03-07 Thread Tom Krones (JIRA)
Tom Krones created CB-6195:
--

 Summary: Mark file with the do not back up attribute not working.
 Key: CB-6195
 URL: https://issues.apache.org/jira/browse/CB-6195
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Tom Krones
Priority: Blocker


I've been using the Cordova File Plugin for a while and in the past I've set 
files I stored to the documents folder with the do not back up attribute 
using the following code:

theFile.setMetadata(function(){}, function(){}, { com.apple.MobileBackup: 1});

I just submitted an app which was denied from apple because that attribute 
wasn't being set correctly and iCloud was trying to back up those files. 

I don't know objective c very well but I set a few breakpoints to check that I 
was at least calling the plugin correctly.  From what I can tell it's calling 
the setMetadata function in the CDVFile.m file but the setMetadataForURL 
function never gets called.  

Any help with this would be great.  Right now apple is blocking my application 
from being approved.



--
This message was sent by Atlassian JIRA
(v6.2#6252)