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
and i get CORS error, i see that the code responsible for this behavior is from the package /state which is not shared.
currently we use; as = (t) => new Promise( (r, n) => { const i = new Audio(); i.preload = "auto", i.addEventListener("loadedmetadata", () => { const a = i.duration * 1e3; r({ duration: a }); } ), i.addEventListener("error", (a) => { n(a); } ), i.src = t, i.crossOrigin = "anonymous", i.load(); } )
the problem with this is that the header is not set to 'no-core' so it trigger the problem.
you can see above that i use the remotion way to get the duration (getAudioDurationInSeconds) and it's working good because it uses that header.
isnt it possible to open that state repo too so we can contribute in it?
PS: the CORS in my s3 bucket is open '*'
The text was updated successfully, but these errors were encountered:
I try to add an audio using
and i get CORS error, i see that the code responsible for this behavior is from the package /state which is not shared.
currently we use;
as = (t) => new Promise( (r, n) => { const i = new Audio(); i.preload = "auto", i.addEventListener("loadedmetadata", () => { const a = i.duration * 1e3; r({ duration: a }); } ), i.addEventListener("error", (a) => { n(a); } ), i.src = t, i.crossOrigin = "anonymous", i.load(); } )
the problem with this is that the header is not set to 'no-core' so it trigger the problem.
you can see above that i use the remotion way to get the duration (getAudioDurationInSeconds) and it's working good because it uses that header.
isnt it possible to open that state repo too so we can contribute in it?
PS: the CORS in my s3 bucket is open '*'
The text was updated successfully, but these errors were encountered: