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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL.createObjectURL not working #478

Open
jdnichollsc opened this issue Nov 20, 2019 · 10 comments
Open

URL.createObjectURL not working #478

jdnichollsc opened this issue Nov 20, 2019 · 10 comments

Comments

@jdnichollsc
Copy link

Hello guys,
We can't get the url from an audio blob object on Android, also there's issues with images: https://stackoverflow.com/questions/55007694/ionic-wont-show-blob-images

Any help is really appreciated 馃憤

@jdnichollsc
Copy link
Author

jdnichollsc commented Nov 20, 2019

Android Log:

GET blob:http://localhost/1a47cf8f-e34e-4605-8875-c0b1fed95215 net::ERR_REQUEST_RANGE_NOT_SATISFIABLE

Angular Code:

const url = URL.createObjectURL(blob);
return this.sanitizer.bypassSecurityTrustResourceUrl(url);

@ajbraudev
Copy link

We are running into the same issue

@fgilio
Copy link

fgilio commented Dec 15, 2019

Do you guys found any workaround?

@Capitaoneo3
Copy link

Capitaoneo3 commented Jan 11, 2020

Ol谩, venho usando api audio web e resolvi esse erro chamando o contexto de 谩udio antes de criar o objeto de 谩udio. Me parece que para arquivos de imagens 茅 o mesmo problema no contexto.
veja se "const url = window.URL.createObjectURL(blob);" n茫o resolve. Neste caso o contexto seria a palavra "window". Al茅m disso voc锚 deve preencher o objeto antes de dar return.

@tryhardest
Copy link

tryhardest commented Feb 7, 2020

^ I come using api audio web and solved this error by or audio context before breeding or audio object. It seems to me that for archives of images, or memory problem, not context.
we use "const url = window.URL.createObjectURL (blob);" Don't solve. This case or context would be called "window". In addition, you must fill the object before giving return.

@tryhardest
Copy link

@fgilio @ajbraudev @jdnichollsc did any of you guys resolve this?

@fgilio
Copy link

fgilio commented Feb 7, 2020

@fgilio @ajbraudev @jdnichollsc did any of you guys resolve this?

Nope, sorry :/

@jdnichollsc
Copy link
Author

Hello Ionic team, any updates with this crucial bug?

@fgilio
Copy link

fgilio commented Jun 16, 2021

Hello Ionic team, any updates with this crucial bug?

Sadly, I don't think there'll be much effort here considering Capacitor

@gwdp
Copy link

gwdp commented Mar 2, 2022

Hey guys, facing the same issue on iOS..
On iOS, I tracked down to capacitor WKWebView implementation. Still haven't touched on Android, but I believe the fix should someway how to reproduce the same behaviour I did on iOS to have this working on both platforms.

Currently, have a working solution on my side but working on creating a mergeable change to PR into Capacitor.
Changes can be followed on the capacitor project: ionic-team/capacitor#5478

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

6 participants