cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-10723) iOS9.2 no audio
Date Thu, 03 Mar 2016 08:20:18 GMT


ASF GitHub Bot commented on CB-10723:

Github user ghenry22 commented on the pull request:
    The code is there for playing from remote sources as a stream, it will only
be triggered if the source starts with http or https.
    If the file is local an avPlayer object is not created and avaudioplayer is used through
the audiofile object.  You can see the play statement for this being triggered in the follow
code block underneath this change.
    This change will break streaming playback from what I can see.

> iOS9.2 no audio
> ---------------
>                 Key: CB-10723
>                 URL:
>             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 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:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message