简体   繁体   中英

Trying to make a audio visualizer and Having Youtube CORS problem when getting used as Source

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文简体   中文繁体   中英对照 版本,有任何建议请联系yoyou2525@163.com。

Im trying to make a visualizer for a youtube player. I have...

<audio id="aplayer" preload="auto" crossorigin>
       <source src="https://sample.googlevideo.com/videoplayback?..." type="audio/webm">
</audio>

When trying to audioCtx.createMediaElementSource(aplayer); i face the

blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present...

by googleChrome, i just the network in dev tools and seems im getting a 302 Error and the headers look like this for request

Request URL: ...
Request Method: GET
Status Code: 302 
Referrer Policy: strict-origin-when-cross-origin

and in response

content-type: text/html
cross-origin-resource-policy: cross-origin
...
vary: Origin
x-content-type-options: nosniff

Doesnt that response cors policy: cross-origin telling im supposed to be able to Read that data, what am i missing here? i know there are lots of youtube visulizer extensions for chrome so this should not be something impossible, hope someone can point me what is it that im missing here.

Thank you

No answers.You can refer to the related questions on the right.
3 Audio Visualizer for WebRTC

I am trying to use www.rtcmulticonnection.org, spefically: http://www.rtcmulticonnection.org/docs/onstream/ I want to be able to grab the video eleme ...

4 Audio visualizer on led matrix

My need is to play an audio file and have its contents on a 8x8 matrix in equalizer aspect as done in Piccolo quite like spectrum analyzer adapted for ...

暂无
暂无

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-2022 STACKOOM.COM