-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android only error with NS7 #178
Comments
I'm closing this. I think it was my own code in calling the playFromURL before it was ready. |
I am reopening this with new info. This seems to throw an error anytime the audio finishes, even if it finishes on it's own. Unhandled Promise rejection: java.lang.IllegalArgumentException: Illegal null AudioFocusRequest ; Zone: ; Task: null ; Value: Error: java.lang.IllegalArgumentException: Illegal null AudioFocusRequest _abandonAudioFocus(file: node_modules\nativescript-audio\android\player.js:289:0) |
The resume function is also failing to gain audio focus. START And I'm also getting the same issue when I run the demo app. |
Confirming the issue at 6.2.0 |
@bradrice try |
I am able to get 6.5.3 to work correctly. Will there be a fix for 7 coming? |
7? I meant the version of this plugin :) |
Ah, thank you so much. I’ll check it out.
On Wed, Dec 16, 2020 at 10:59 AM Brad Martin ***@***.***> wrote:
7? I meant the version of this plugin :) 6.2.1 was just published.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACCPYBHNUTV5AWN6B5YGK3SVDKOVANCNFSM4UNSGL5A>
.
--
Brad Rice
bradrice1@gmail.com
|
I've migrated my app to NS7 and one issue I am having is on android. I have an app that has mp3 files associated with lessons. You click through the lessons and pull a new mp3 using a rest service. All of that works fine. What isn't working is I have one template in the lesson sequence that uses a carousel on the same page. When I get to the end of a track, I send a notify click even to advance the slide and start a new audio with image. It was working fine in NS6, but in NS7 I am getting this error on Android only.
ERROR ERROR Error: Uncaught (in promise): Error: java.lang.IllegalArgumentException: Illegal null AudioFocusRequest
JS: _abandonAudioFocus(file: node_modules\nativescript-audio\android\player.js:289:0)
at (file: node_modules\nativescript-audio\android\player.js:120:0)
JS: at ZoneAwarePromise(file: node_modules@nativescript\zone-js\zone-nativescript.js:902:0)
JS: at playFromFile(file: node_modules\nativescript-audio\android\player.js:83:0)
JS: at (file: node_modules\nativescript-audio\android\player.js:133:0)
JS: at ZoneAwarePromise(file: node_modules@nativescript\zone-js\zone-nativescript.js:902:0)
JS: at playFromUrl(file: node_modules\nativescript-audio\android\player.js:132:0)
JS: at playAudioTrack(file: app\core\services\player.service.ts:553:13)
JS: at (file: app\pages\player\templates\carousel\carousel.component.ts:268:35)
JS: at push.../node_modules/@nativescript/zone-js/zone-nativescript.js.ZoneDelegate.invoke(file:///data/data/com.too
The text was updated successfully, but these errors were encountered: