TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Web Audio API Is a W3C Recommendation

71 点作者 chrislo将近 4 年前

5 条评论

joshstrange将近 4 年前
And I'm sure iOS Safari will still keep annoying restrictions on using it. I 100% understand the reasoning behind not allowing sound to play unless it's "user initiated" but it's really frustrating how small that window is and/or how you can't ask for that "permission". I have a web app that uses the camera for scanning (don't get me started on how Chrome/FF/etc on iOS can't use the camera for streaming) and in Safari I want to play little beep noise (toggleable on/off) after a successful scan but that's impossible.
评论 #27542107 未加载
评论 #27542657 未加载
评论 #27542043 未加载
评论 #27542368 未加载
评论 #27542638 未加载
wcarss将近 4 年前
I really wish you could access audio data from across an origin. Preventing that access seems to me like it&#x27;s mostly just nice for YouTube, Spotify, SoundCloud et al to not have others do things with their audio&#x2F;video data. Why should my browser care to help them like that?<p>For example, I have built a few music visualizers and have had to run a local youtube-dl server that disables cors, just to be able to visualize music for a youtube video. I just want to draw patterns on my screen while some music plays, I&#x27;d even be fine with the ads! But I have to engage in some form of piracy to do this.<p>The music is <i>already playing through my speakers</i>, so I should be able to <i>access that data!</i><p>(edit: I want to clarify: I know that one <i>can</i> set cors options on audio elements to enable cross-origins references, but it requires the <i>server</i> to allow you to -- which is what I&#x27;m doing with the youtube-dl server. <i>That</i> is the real problem: CORS is being used by youtube for copyright protection, not for user-safety. <i>I</i> know that accessing a youtube video across origins from a page I <i>wrote myself</i> is safe, but CORS enables youtube to stop me from accessing that data, in the name of safety.)
评论 #27541941 未加载
评论 #27541964 未加载
NHQ将近 4 年前
Please please put the ScriptProcessorNode back in the spec.
评论 #27544340 未加载
评论 #27545279 未加载
rackjack将近 4 年前
What effect will this have on the web, for somebody out of the loop?
评论 #27541481 未加载
评论 #27541549 未加载
chrisseaton将近 4 年前
What practical difference does the ceremony of ‘recommending’ make?
评论 #27541890 未加载
评论 #27544354 未加载
评论 #27541865 未加载