RaSan147 / pixi-live2d-display

A PixiJS plugin to display Live2D models of any kind (With lip-sync from audio)
https://guansss.github.io/pixi-live2d-display/
MIT License
75 stars 16 forks source link

how to fix this,it can't play in chrome #6

Closed Xiobio closed 6 months ago

Xiobio commented 6 months ago

MediaElementAudioSource outputs zeroes due to CORS access restrictions for https://cdn.jsdelivr.net/gh/RaSan147/pixi-live2d-display@v1.0.3/playground/test.mp3

RaSan147 commented 6 months ago

There is a crossOrigin param there. You need to set that to crossOrigin = "anonymous"

Will update the docs ASAP

On Tue, Apr 30, 2024, 8:09 AM Xiobio @.***> wrote:

MediaElementAudioSource outputs zeroes due to CORS access restrictions for @.***/playground/test.mp3

— Reply to this email directly, view it on GitHub https://github.com/RaSan147/pixi-live2d-display/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIDNL2Z4G756LF33HDK2G2LY734PLAVCNFSM6AAAAABG7L5RAKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TAMZUGY2TIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Xiobio commented 6 months ago

if i tatally use this in html file ,how should i add the setting of 'crossOrigin = "anonymous"‘ in ?thank you

RaSan147 commented 6 months ago

Check the updated doc and let me know

https://github.com/RaSan147/pixi-live2d-display/blob/master/README.md#fix-mediaelementaudiosource-outputs-zeroes-due-to-cors-access-restrictions-for

Xiobio commented 6 months ago

many thanks ,it fix

RaSan147 commented 6 months ago

Thanks for reminding me. Closing the issue