-
Notifications
You must be signed in to change notification settings - Fork 287
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
Callback when file is done playing not working ! #147
Comments
I have the same problem when i target to browser platform, not sure if this is the same in ios and android. The plugin does not officially support browser so. Workaround: new Audio() (https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)
|
@GUEYEDSMF You probably need to implement your "onSuccessPreloading" function like this:
play function has signature
where you can optionally pass a callback to be called when the file is done playing |
This is still an issue! My non working code: this.nativeAudio
.play(uniqueId, function () {
console.log("finished");
}) Im using: ionic cordova platform add browser
ionic cordova run browser --prod (Note: doesnt work on browser, iOS and Android are fine) also seems the plugging stopped being maintained 5 years ago 😢 : |
In Ionic Native audio plugin
The callback methot when a file is done playing not working
When i trigger the playAvecIonNative() method to preload and play the audio , the audio file is playing but at the same time the lart method is showing the result.
I have tested in many ways but i’ve got the same results.
It seems to be an issue with the plugin.
???
The text was updated successfully, but these errors were encountered: