-
Notifications
You must be signed in to change notification settings - Fork 191
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
iOS does not work #151
Comments
Why would you create the controls 10 times? What does this solve exactly? In my experience the HTML5 audio tag doesn't work with this plugin, it will override the audio session with the default info from the browser which will be the URL and will hijack the controls. Try using the cordova media plugin and you should see it working as expected. I have been using it on iOS for multiple apps for years with no issue when using the native media plugin. Note that the background mode plugin also screws with the audio session as it plays a fake "silent" audio track continuously to simulate activity which has been known to steal the audio session. Try using the ionic webview with the wksuspendinbackground setting configured as "false" in your config.xml. |
@ghenry22 your comment here has been the MOST helpful! I've been stuck on this for a long time. I have a current app in the wild that I built several years ago that works with HTML5 audio and this plugin and the background mode plugin. I wonder what's changed that this configuration no longer works? I like the html5 audio because I have a lot more control over the stream, there are many listeners that I don't think are available if I use the media plugin. Regarding the suspend in background option, is this something I can toggle on and off? If the podcast the user is listening to ends I'd like the app to eventually be able to be suspended. |
Oh and problem #3, my app is being built for the browser and iOS and android ... blerg. This is going to keep me really busy. |
@pvandrunen Everything is OK if you upgrade ionic-webview plugin to v4.0.1. |
I have an ionic v1 and an ionic v4 project, this plugin does not work on either project. I've looked through the backlog of issues but I am unable to get this working consistently.
Maybe my approach is wrong.
I'm using this plugin with html5 audio. Once the audio starts playing I attempt to update the lock screen. Listeners for play/pause don't work. The info doesn't work. Maybe it's because my album art is wrong? There is no feedback from within the plugin that I am doing something wrong, it just doesn't work. Nothing happens.
I am also running the background module so that when music is playing it will continue to play in the background.
The text was updated successfully, but these errors were encountered: