We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

AudioContext.mozAudioChannelType

非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

AudioContextmozAudioChannelType属性是只读的,在Firefox OS设备上可以用来设置音频在audio context中播放的声道。

该属性是AudioChannels API中定义的非标准属性,更多信息请查看Using the AudioChannels API

语法

var audioCtx = new AudioContext();
var myAudioChannelType = audioCtx.mozAudioChannelType;

只能通过下面的构造器来设置AudioContext中音频的声道:

var audioCtx = new AudioContext('ringer');

返回值

A DOMString value.

例子

TBD

规范

AudioChannels API目前没有官方规范,实现细节请查看https://wiki.mozilla.org/WebAPI/AudioChannels、WebIDL等等

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
General support 未实现 未实现 未实现 未实现 未实现
Feature Android Chrome Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
General support 未实现 未实现 未实现 1.2 未实现 未实现 未实现

另见

文档标签和贡献者

此页面的贡献者: ayqy
最后编辑者: ayqy,