react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

remove buggy url encoding

Open KnowYourLines opened this issue 1 year ago • 6 comments

Fixes https://github.com/zmxv/react-native-sound/issues/500

KnowYourLines avatar Jul 15 '23 06:07 KnowYourLines

How much will it take to merge this fix? it worked for me locally but i would love if it's available in the package.

Reda1337 avatar Jul 15 '23 12:07 Reda1337

Could you please give some example of context working after and before? Is it still working on with filename with spaces?

RomualdPercereau avatar Nov 09 '23 08:11 RomualdPercereau

This look like to be the opposite of this fix https://github.com/zmxv/react-native-sound/commit/3fe5480fce935e888d5089d94a191c7c7e3aa190

@KnowYourLines @Reda1337

RomualdPercereau avatar Nov 09 '23 09:11 RomualdPercereau

This look like to be the opposite of this fix 3fe5480

@KnowYourLines @Reda1337

Yes that fix causes this problem. https://github.com/zmxv/react-native-sound/pull/628#issuecomment-1179426688 from that PR points this out.

Frankly, I don't believe URI encoding should be done by this library to begin with as there are very likely more effective libraries that accomplish URI encoding and would allow encoded URIs to be passed to this library.

It would make more sense for the users of this library to be responsible for passing an appropriate URI to this library rather than have default URI encoding in this library that enables some inputs to work but prevents others from working.

The current URI encoding in this library seems like a premature optimization since it arguably causes as many if not more more problems than it solves.

@RomualdPercereau

KnowYourLines avatar Dec 06 '23 00:12 KnowYourLines

Can we merge it?

OlivierCo avatar May 03 '24 12:05 OlivierCo

@RomualdPercereau I had to revert the change made in this 3fe5480. and now it works perfectly fine. So Could we merge please

OlivierCo avatar May 03 '24 12:05 OlivierCo