Skip to content
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

Added callback to play method #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added callback to play method #73

wants to merge 1 commit into from

Conversation

otari
Copy link

@otari otari commented Apr 1, 2016

i have added possibility to path callback method in ion.sound.play() method which is triggered if this.file_not_found flag is set to true during fetching data from server. and it only works if you set preload:true during plugin initialization.

example usage:

$('.trigger').on('click',function(e) {
     ion.sound.play("bell_ringoo", {
          callback:function(result) {
               console.log(result);
         }
    });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant