# 设备操作

# 禁用音频输入

使用Promise (opens new window)Manis.disableLocalAudio()禁用本地音频输入,

返回一个Promise对象实例

示例:

Manis.disableLocalAudio().then(res => {
    console.log('mute audio response: ', res)
}).catch(err => {
    console.error('mute audio failed: ', err)
})

# 启用音频输入

使用Promise (opens new window)Manis.enableLocalAudio()启用本地音频输入,

返回一个Promise对象实例

示例:

Manis.enableLocalAudio().then(res => {
    console.log('unmute audio response: ', res)
}).catch(err => {
    console.error('unmute audio failed: ', err)
})

# 禁用视频输入

使用Promise (opens new window)Manis.disableLocalVideo()禁用本地视频输入,

返回一个Promise对象实例

示例:

Manis.disableLocalVideo().then(res => {
    console.log('mute video response: ', res)
}).catch(err => {
    console.error('mute video failed: ', err)
})

# 启用视频输入

使用Promise (opens new window)Manis.enableLocalVideo()启用本地视频输入,

返回一个Promise对象实例

示例:

Manis.enableLocalVideo().then(res => {
    console.log('unmute video response: ', res)
}).catch(err => {
    console.error('unmute video failed: ', err)
})