[
https://issues.apache.org/jira/browse/CB-10723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208600#comment-15208600
]
ASF GitHub Bot commented on CB-10723:
-------------------------------------
Github user ThunderTech-Avisolve commented on the pull request:
https://github.com/apache/cordova-plugin-media/pull/85#issuecomment-200395570
@ghenry22, I've been trying to follow all of this -- but, I'm having an
issue where my app is correctly using [avPlayer play] to stream a MP3 file over
https. Is there a bit rate requirement? For some reason it seems like certain
files won't load with the avPlayer.
https://storage.googleapis.com/boc-audio/sermons_mp3/16722.mp3 is an
example.
Here is some details from FFProbe:
Duration: 00:26:36.16, start: 0.000000, bitrate: 126 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 125 kb/s (default)
If you could point me in the right direction, I don't want to give up and
have to use the default media plugin which freezes my app for 10 seconds while
it downloads the MP3 for playback.
Thanks!!
> iOS9.2 no audio
> ---------------
>
> Key: CB-10723
> URL: https://issues.apache.org/jira/browse/CB-10723
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Media
> Affects Versions: 2.2.0
> Environment: IonicFramework | ngCordova | cordova-plugin-media
> Reporter: Johnny Dong
> Assignee: Omar Mefire
> Labels: easyfix, iOS, pendingPR, triaged
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> Found an issue with the latest cordova.plugin.media whilst i was putting
> together a IonicFramework app for iOS 9.2.1 (iPhone 6s) to play an M4A file.
> The iOS logs would show:
> - Found resource '[path].m4a' in the web folder.
> Playing audio sample '[path].m4a'
> - Playing stream with AVPlayer & custom rate
> but no sound (both simulator + device)
> Debugging in Xcode, ./cordova-plugin-media/src/ios/CDVSound.m,ln 352 + 355
> appears to be the culprit.
> Instead of using "avPlayer" which doesn't appear to have a handle to the
> sound resource, switching to "audioFile.player" appears to resolve the sound
> issue.
> *** ./cordova-plugin-media/src/ios/CDVSound.m,ln 352
> from:
> [avPlayer setRate:customRate];
> to:
> [audioFile.player setRate:customRate];
> *** ./cordova-plugin-media/src/ios/CDVSound.m,ln 355
> from:
> [avPlayer play];
> to:
> [audioFile.player play];
> NOTE: I've yet to create a PR as I have not signed the Apache ICLA, however
> i've committed a code in my personal fork and happy for somebody to have a
> look at it and submit on my behalf:
> https://github.com/spudmashmedia/cordova-plugin-media/commit/946ffcf569cbaa22241e8ec00f11b4a52a0c6809
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]