在javascript中播放音频时更改左/右平衡 [英] Change left/right balance on playing audio in javascript

查看:144
本文介绍了在javascript中播放音频时更改左/右平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道html5音频的东西都很新,但有没有办法改变声音的左/右平衡?

I know the html5 audio stuff is all very new, but is there a way to change the left/right balance on a sound?

这样的东西:

var snd = new Audio("test.mp3");
snd.balance = -1; // only left
snd.play();


推荐答案

目前,这不受支持。

您可以查看w3c规范以获取支持的属性和方法。请注意,浏览器通常提供更多/更少或不同的东西。但在这种情况下:没有浏览器支持音频平衡更改。

You can check the w3c spec for supported properties and methods. Note that browsers often provide more / less or different things. But in this case: no browser supports audio balance changes.

http://dev.w3.org/html5/spec/Overview.html#audio

这篇关于在javascript中播放音频时更改左/右平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆