-
Notifications
You must be signed in to change notification settings - Fork 163
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
Is there a way to implement autoplay??? #189
Comments
Maybe you can put some code in |
You can't do this via ionic audio, period. This is not an issue with this fantastic library; rather the problem is with the devices. Even if you implement something like the above you will run into the following:
Because of this I have created a new cordova plugin, called cordova-plugin-playlist that resolves both of the above issues. On Android it uses Google's own ExoPlayer, which has far superior playback and buffering capabilities, and on iOS it uses the AVQueuePlayer, which is specially designed to allow continuous playback of discontinuous audio sources. In the UI I still use I won't link to it here out of respect for arielfaur, I have used his work for almost 2 years and love it. If you're interested it is on npm. |
@codinronan Thanks for the kind words and please go ahead and post the link to the plugin. It is great that you found a way to overcome those OS limitations. |
@arielfaur i'm looking for the code to start play the sound automatically upon app launch also. |
@sansopheakh Sorry, I haven't been able to keep up with this lately. Hope I can release a new version soon. |
The plugin works well for me. I also have it working along with ionic music controls and background mode. Just wanted to know if there is a way to allow my audio to autoplay
The text was updated successfully, but these errors were encountered: