You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
hello thank you for your support!
I'm writing a music application and I'm using howler.js as a sound library. I do not have a problem with the player, but I think I am using the music control plugin incorrectly. my problem is as follows;
As you mentioned in the documentation, first I call the "CapacitorMusicControls.create" function from within a service that I created. As far as I understand we can only update the "isPlaying" parameter. Therefore, I tried calling the "CapacitorMusicControls.create" function again every time the song starts, or rather when there is a "play" event because I need to update the "track", "artist" and "cover" information. I destroyed the previous one before recalling its function. however, multiple "eventListeners" occur and the previous function is not deleted so it tries to play the song consecutively for the number of events. What should I do to prevent it from generating "CapacitorMusicControls" over and over every time a song is played, and also how do I update the "track", "artist" and "cover" information if the method I tried is wrong. Thank you.
The text was updated successfully, but these errors were encountered:
hello thank you for your support!
I'm writing a music application and I'm using howler.js as a sound library. I do not have a problem with the player, but I think I am using the music control plugin incorrectly. my problem is as follows;
As you mentioned in the documentation, first I call the "CapacitorMusicControls.create" function from within a service that I created. As far as I understand we can only update the "isPlaying" parameter. Therefore, I tried calling the "CapacitorMusicControls.create" function again every time the song starts, or rather when there is a "play" event because I need to update the "track", "artist" and "cover" information. I destroyed the previous one before recalling its function. however, multiple "eventListeners" occur and the previous function is not deleted so it tries to play the song consecutively for the number of events. What should I do to prevent it from generating "CapacitorMusicControls" over and over every time a song is played, and also how do I update the "track", "artist" and "cover" information if the method I tried is wrong. Thank you.
The text was updated successfully, but these errors were encountered: