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

Audio Asset already exists #69

Open
matudelatower opened this issue Oct 26, 2022 · 8 comments
Open

Audio Asset already exists #69

matudelatower opened this issue Oct 26, 2022 · 8 comments

Comments

@matudelatower
Copy link

Describe the bug

Audio Asset already exists

image

To Reproduce
Steps to reproduce the behavior:
Where to place audios asset, npx cap copy doesnt copy to public asset, when i place de file on android/app/src/main/assets

Expected behavior
Playd audios

Desktop (please complete the following information):

  • OS: Android
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Moto G6
  • OS: Android 9

Additional context
Capacitor 4
Ionic 6
Angular 13

@HarelM
Copy link

HarelM commented Oct 27, 2022

I get the same error from time to time, I'm not sure why.
I looked at the code and can't figure out why.
Let me know if you find the solution for this...

@Lucas-Wanat
Copy link

image
I have the same problem, I'm using capacitor 3 because I have to use it in order to use serial bluetooth (cordova plug-in). This audio error is delaying my project, if you find something let me know.

@HarelM
Copy link

HarelM commented Jan 18, 2023

Can any of you reproduce this "always"?
Can you share a project that can reproduce this?
I have this sometimes and it doesn't reproduce on my simulator...

@Lucas-Wanat
Copy link

Can any of you reproduce this "always"? Can you share a project that can reproduce this? I have this sometimes and it doesn't reproduce on my simulator...

@HarelM I have my project, but it's private and also part of it is in Portuguese because that's what the team asked for.

@HarelM
Copy link

HarelM commented Jan 18, 2023

Can you narrow it down somehow to make a reproducible example (P.S. I'm not the maintainer of this package)

@HarelM
Copy link

HarelM commented Jan 18, 2023

Coming to think about it, I haven't seen this issue lately since I switched to use @capgo/native-audio so it's worth a shot.
It also fixes another issue I had with other apps (spotify for exmaple) stopping when opening my app.

@Lucas-Wanat
Copy link

Lucas-Wanat commented Jan 19, 2023

Coming to think about it, I haven't seen this issue lately since I switched to use @capgo/native-audio so it's worth a shot. It also fixes another issue I had with other apps (spotify for exmaple) stopping when opening my app.

It seems like a good option, I'm about to start using it, I got the same error that the audio already exists, but I'm trying to solve it, I'll come back here and let you know if I succeed.

@Lucas-Wanat
Copy link

Lucas-Wanat commented Jan 19, 2023

Describe the bug

Audio Asset already exists

image

To Reproduce Steps to reproduce the behavior: Where to place audios asset, npx cap copy doesnt copy to public asset, when i place de file on android/app/src/main/assets

Expected behavior Playd audios

Desktop (please complete the following information):

  • OS: Android
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Moto G6
  • OS: Android 9

Additional context Capacitor 4 Ionic 6 Angular 13

dear friends @HarelM and @matudelatower , a possible solution is to use after the play() method is to trigger the unload() method, other information, make each file name and id be written with single quotes (ie leave them all in single quotes or double quotes).

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

No branches or pull requests

3 participants