简体   繁体   中英

Stream sound source via audio element and then web audio api

Can we somehow get radio stream via audio element and do some work with web audio api?

So, "Website A" getting radio stream from "SERVER B", and then via web audio api doing their own stuff.

Error always appearing, "(index):1 Failed to load http://someserverb.com/track.mp3 : No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://somemywebsiteA.com ' is therefore not allowed access."

So main question is, how to enable Access-Control-Allow-Origin? Will be here some security problems?

Access-Control-Allow-Origin是服务器问题...请参阅CORS了解更多详细信息=> fe https://de.wikipedia.org/wiki/Cross-Origin_Resource_Sharing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM